xref: /illumos-gate/usr/src/test/elf-tests/tests/sections/shf-exclude/Makefile (revision c9d20e659e1e8b7bc9bd0d5c3ff5fe49be65bc6a)
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