xref: /illumos-gate/usr/src/test/elf-tests/tests/sections/shf-exclude/Makefile (revision 430062b0bc38ddbe5eda3921705af71cd2c44260)
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 2021, Richard Lowe.
13
14include $(SRC)/cmd/Makefile.cmd
15include $(SRC)/test/Makefile.com
16
17PROG =	exclude-kmod	\
18	exclude-so	\
19	exclude-exec	\
20	include-reloc
21
22DATAFILES =	Makefile.test exclude.s stub.c
23
24ROOTOPTPKG = $(ROOT)/opt/elf-tests
25TESTDIR = $(ROOTOPTPKG)/tests/sections/shf-exclude
26
27CMDS = $(PROG:%=$(TESTDIR)/%)
28$(CMDS) := FILEMODE = 0555
29
30DATA = $(DATAFILES:%=$(TESTDIR)/%)
31$(DATA) := FILEMODE = 0444
32
33all:
34
35install: all $(CMDS) $(DATA)
36
37clobber: clean
38
39clean:
40	-$(RM) $(CLEANFILES)
41
42$(CMDS): $(TESTDIR)
43
44$(DATA): $(TESTDIR)
45
46$(TESTDIR):
47	$(INS.dir)
48
49$(TESTDIR)/%: %
50	$(INS.file)
51
52$(TESTDIR)/%: %.sh
53	$(INS.rename)
54