xref: /illumos-gate/usr/src/test/elf-tests/tests/sections/shf-exclude/Makefile (revision b8052df9f609edb713f6828c9eecc3d7be19dfb3)
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	unknown-os
22
23DATAFILES =	Makefile.test exclude.s stub.c
24
25ROOTOPTPKG = $(ROOT)/opt/elf-tests
26TESTDIR = $(ROOTOPTPKG)/tests/sections/shf-exclude
27
28CMDS = $(PROG:%=$(TESTDIR)/%)
29$(CMDS) := FILEMODE = 0555
30
31DATA = $(DATAFILES:%=$(TESTDIR)/%)
32$(DATA) := FILEMODE = 0444
33
34all:
35
36install: all $(CMDS) $(DATA)
37
38clobber: clean
39
40clean:
41	-$(RM) $(CLEANFILES)
42
43$(CMDS): $(TESTDIR)
44
45$(DATA): $(TESTDIR)
46
47$(TESTDIR):
48	$(INS.dir)
49
50$(TESTDIR)/%: %
51	$(INS.file)
52
53$(TESTDIR)/%: %.sh
54	$(INS.rename)
55