xref: /illumos-gate/usr/src/lib/ssp_ns/Makefile.com (revision 6f1fa39e3cf1b335f342bbca41590e9d76ab29b7)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2020 Oxide Computer Company
14#
15
16LIBRARY =	libssp_ns.a
17VERS =		.1
18OBJECTS =	ssp_ns.o
19
20include ../../Makefile.lib
21
22#
23# We need to build an archive file; however, this is going to show up
24# and be used in libraries and otherwise. So we need to still build it
25# as position independent code. The Makefile system doesn't want to
26# build a PIC file that's going into a .a file by default, so we have to
27# do a little bit here.
28#
29LIBS =		$(LIBRARY)
30SRCDIR =	../common
31CFLAGS +=	$($(MACH)_C_PICFLAGS)
32
33#
34# Disable stack protection for the things providing the stack
35# protection.
36#
37STACKPROTECT = none
38
39CLOBBERFILES +=	$(LIBRARY)
40
41.KEEP_STATE:
42
43all:	$(LIBS)
44
45
46include ../../Makefile.targ
47