xref: /illumos-gate/usr/src/test/elf-tests/tests/mapfiles/assert/Makefile (revision 8222814ef8560ee0ba222eca8ca5acffc6cd0e44)
1*8222814eSRichard Lowe#
2*8222814eSRichard Lowe# This file and its contents are supplied under the terms of the
3*8222814eSRichard Lowe# Common Development and Distribution License ("CDDL"), version 1.0.
4*8222814eSRichard Lowe# You may only use this file in accordance with the terms of version
5*8222814eSRichard Lowe# 1.0 of the CDDL.
6*8222814eSRichard Lowe#
7*8222814eSRichard Lowe# A full copy of the text of the CDDL should have accompanied this
8*8222814eSRichard Lowe# source.  A copy of the CDDL is also available via the Internet at
9*8222814eSRichard Lowe# http://www.illumos.org/license/CDDL.
10*8222814eSRichard Lowe#
11*8222814eSRichard Lowe
12*8222814eSRichard Lowe# Copyright 2019, Richard Lowe.
13*8222814eSRichard Lowe
14*8222814eSRichard Loweinclude $(SRC)/cmd/Makefile.cmd
15*8222814eSRichard Loweinclude $(SRC)/test/Makefile.com
16*8222814eSRichard Lowe
17*8222814eSRichard LowePROG = test-assert
18*8222814eSRichard Lowe
19*8222814eSRichard LoweDATAFILES=				\
20*8222814eSRichard Lowe	mapfile.alias-with-others	\
21*8222814eSRichard Lowe	mapfile.circalias		\
22*8222814eSRichard Lowe	mapfile.guidance		\
23*8222814eSRichard Lowe	mapfile.no-extern		\
24*8222814eSRichard Lowe	mapfile.no-parent		\
25*8222814eSRichard Lowe	mapfile.not-alias		\
26*8222814eSRichard Lowe	mapfile.true			\
27*8222814eSRichard Lowe	mapfile.unknown-alias		\
28*8222814eSRichard Lowe	mapfile.unknown-assert		\
29*8222814eSRichard Lowe	mapfile.unknown-bind		\
30*8222814eSRichard Lowe	mapfile.unknown-shattr		\
31*8222814eSRichard Lowe	mapfile.unknown-type		\
32*8222814eSRichard Lowe	mapfile.wrongalias		\
33*8222814eSRichard Lowe	mapfile.wrongbits		\
34*8222814eSRichard Lowe	mapfile.wrongbits2		\
35*8222814eSRichard Lowe	mapfile.wrongscope		\
36*8222814eSRichard Lowe	mapfile.wrongsize		\
37*8222814eSRichard Lowe	mapfile.wrongtype		\
38*8222814eSRichard Lowe	mapfile.wrongtype-alias	\
39*8222814eSRichard Lowe	mapfile.wrongtype2		\
40*8222814eSRichard Lowe	object.c
41*8222814eSRichard Lowe
42*8222814eSRichard LoweROOTOPTPKG = $(ROOT)/opt/elf-tests
43*8222814eSRichard LoweTESTDIR = $(ROOTOPTPKG)/tests/mapfiles/assert
44*8222814eSRichard Lowe
45*8222814eSRichard LoweCMDS = $(PROG:%=$(TESTDIR)/%)
46*8222814eSRichard Lowe$(CMDS) := FILEMODE = 0555
47*8222814eSRichard Lowe
48*8222814eSRichard LoweDATA = $(DATAFILES:%=$(TESTDIR)/%)
49*8222814eSRichard Lowe$(DATA) := FILEMODE = 0444
50*8222814eSRichard Lowe
51*8222814eSRichard Loweall: $(PROG)
52*8222814eSRichard Lowe
53*8222814eSRichard Loweinstall: all $(CMDS) $(DATA)
54*8222814eSRichard Lowe
55*8222814eSRichard Loweclobber: clean
56*8222814eSRichard Lowe	-$(RM) $(PROG)
57*8222814eSRichard Lowe
58*8222814eSRichard Loweclean:
59*8222814eSRichard Lowe	-$(RM) $(CLEANFILES)
60*8222814eSRichard Lowe
61*8222814eSRichard Lowe$(CMDS): $(TESTDIR) $(PROG)
62*8222814eSRichard Lowe
63*8222814eSRichard Lowe$(TESTDIR):
64*8222814eSRichard Lowe	$(INS.dir)
65*8222814eSRichard Lowe
66*8222814eSRichard Lowe$(TESTDIR)/%: %
67*8222814eSRichard Lowe	$(INS.file)
68