xref: /illumos-gate/usr/src/test/elf-tests/tests/mapfiles/assert/Makefile (revision 65bed588e62c7f3a0da5d65fcc588b46b470f5a7)
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# Copyright 2019, Richard Lowe.
13
14include $(SRC)/cmd/Makefile.cmd
15include $(SRC)/test/Makefile.com
16
17PROG = test-assert
18
19DATAFILES=				\
20	mapfile.alias-with-others	\
21	mapfile.circalias		\
22	mapfile.guidance		\
23	mapfile.no-extern		\
24	mapfile.no-parent		\
25	mapfile.not-alias		\
26	mapfile.true			\
27	mapfile.unknown-alias		\
28	mapfile.unknown-assert		\
29	mapfile.unknown-bind		\
30	mapfile.unknown-shattr		\
31	mapfile.unknown-type		\
32	mapfile.wrongalias		\
33	mapfile.wrongbits		\
34	mapfile.wrongbits2		\
35	mapfile.wrongscope		\
36	mapfile.wrongsize		\
37	mapfile.wrongtype		\
38	mapfile.wrongtype-alias	\
39	mapfile.wrongtype2		\
40	object.c
41
42ROOTOPTPKG = $(ROOT)/opt/elf-tests
43TESTDIR = $(ROOTOPTPKG)/tests/mapfiles/assert
44
45CMDS = $(PROG:%=$(TESTDIR)/%)
46$(CMDS) := FILEMODE = 0555
47
48DATA = $(DATAFILES:%=$(TESTDIR)/%)
49$(DATA) := FILEMODE = 0444
50
51all: $(PROG)
52
53install: all $(CMDS) $(DATA)
54
55clobber: clean
56	-$(RM) $(PROG)
57
58clean:
59	-$(RM) $(CLEANFILES)
60
61$(CMDS): $(TESTDIR) $(PROG)
62
63$(TESTDIR):
64	$(INS.dir)
65
66$(TESTDIR)/%: %
67	$(INS.file)
68