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
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.
12 # Copyright 2015, Richard Lowe.
15 include $(SRC
)/cmd
/Makefile.cmd
16 include $(SRC
)/test/Makefile.com
18 PROG
= secflags_aslr \
22 secflags_forbidnullmap \
24 secflags_noexecstack \
31 PROG
+= addrs-32 addrs-64 stacky
33 ROOTOPTPKG
= $(ROOT
)/opt
/os-tests
34 TESTDIR
= $(ROOTOPTPKG
)/tests
/secflags
36 CMDS
= $(PROG
:%=$(TESTDIR
)/%)
37 $(CMDS
) := FILEMODE
= 0555
42 $(LINK.c
) addrs.c
-o
$@
$(LDLIBS
)
46 $(LINK64.c
) addrs.c
-o
$@
$(LDLIBS
)
49 stacky
:= MAPFILE.NES
= # Will foil the test, clearly
51 $(LINK.c
) stacky.o
-o
$@
$(LDLIBS
)
54 secflags_syscall
: secflags_syscall.c
55 $(LINK.c
) secflags_syscall.c
-o
$@
$(LDLIBS
)
70 $(CMDS
): $(TESTDIR
) $(PROG
)