8013 some leftovers after dmake clobber
[unleashed.git] / usr / src / test / os-tests / tests / secflags / Makefile
blobb4271a4b50155db2b7defea67859340f2d3323b1
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.
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 \
19 secflags_core \
20 secflags_dts \
21 secflags_elfdump \
22 secflags_forbidnullmap \
23 secflags_limits \
24 secflags_noexecstack \
25 secflags_proc \
26 secflags_psecflags \
27 secflags_syscall \
28 secflags_truss \
29 secflags_zonecfg
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
39 CLEANFILES= stacky.o
41 addrs-32: addrs.c
42 $(LINK.c) addrs.c -o $@ $(LDLIBS)
43 $(POST_PROCESS)
45 addrs-64: addrs.c
46 $(LINK64.c) addrs.c -o $@ $(LDLIBS)
47 $(POST_PROCESS)
49 stacky := MAPFILE.NES= # Will foil the test, clearly
50 stacky: stacky.o
51 $(LINK.c) stacky.o -o $@ $(LDLIBS)
52 $(POST_PROCESS)
54 secflags_syscall: secflags_syscall.c
55 $(LINK.c) secflags_syscall.c -o $@ $(LDLIBS)
56 $(POST_PROCESS)
58 all: $(PROG)
60 install: all $(CMDS)
62 lint:
64 clobber: clean
65 -$(RM) $(PROG)
67 clean:
68 -$(RM) $(CLEANFILES)
70 $(CMDS): $(TESTDIR) $(PROG)
72 $(TESTDIR):
73 $(INS.dir)
75 $(TESTDIR)/%: %
76 $(INS.file)