xref: /illumos-gate/usr/src/test/elf-tests/tests/groups/strip-groups/Makefile (revision d227ea68051b5404410ee1880d0bba1ebb33a4cc)
1*d227ea68SRichard Lowe#
2*d227ea68SRichard Lowe# This file and its contents are supplied under the terms of the
3*d227ea68SRichard Lowe# Common Development and Distribution License ("CDDL"), version 1.0.
4*d227ea68SRichard Lowe# You may only use this file in accordance with the terms of version
5*d227ea68SRichard Lowe# 1.0 of the CDDL.
6*d227ea68SRichard Lowe#
7*d227ea68SRichard Lowe# A full copy of the text of the CDDL should have accompanied this
8*d227ea68SRichard Lowe# source.  A copy of the CDDL is also available via the Internet at
9*d227ea68SRichard Lowe# http://www.illumos.org/license/CDDL.
10*d227ea68SRichard Lowe#
11*d227ea68SRichard Lowe
12*d227ea68SRichard Lowe# Copyright 2022, Richard Lowe.
13*d227ea68SRichard Lowe
14*d227ea68SRichard Loweinclude $(SRC)/cmd/Makefile.cmd
15*d227ea68SRichard Loweinclude $(SRC)/test/Makefile.com
16*d227ea68SRichard Lowe
17*d227ea68SRichard LowePROG = strip-one-section strip-two-sections strip-all-sections
18*d227ea68SRichard Lowe
19*d227ea68SRichard LoweDATAFILES = strip-one-section.s strip-two-sections.s strip-all-sections.s \
20*d227ea68SRichard Lowe    README.md
21*d227ea68SRichard Lowe
22*d227ea68SRichard LoweROOTOPTPKG = $(ROOT)/opt/elf-tests
23*d227ea68SRichard LoweTESTDIR = $(ROOTOPTPKG)/tests/groups/strip-groups
24*d227ea68SRichard Lowe
25*d227ea68SRichard LoweCMDS = $(PROG:%=$(TESTDIR)/%)
26*d227ea68SRichard Lowe$(CMDS) := FILEMODE = 0555
27*d227ea68SRichard Lowe
28*d227ea68SRichard LoweDATA = $(DATAFILES:%=$(TESTDIR)/%)
29*d227ea68SRichard Lowe$(DATA) := FILEMODE = 0444
30*d227ea68SRichard Lowe
31*d227ea68SRichard Loweall:
32*d227ea68SRichard Lowe
33*d227ea68SRichard Loweinstall: all $(CMDS) $(DATA)
34*d227ea68SRichard Lowe
35*d227ea68SRichard Loweclobber: clean
36*d227ea68SRichard Lowe	-$(RM) $(PROG)
37*d227ea68SRichard Lowe
38*d227ea68SRichard Loweclean:
39*d227ea68SRichard Lowe	-$(RM) $(CLEANFILES)
40*d227ea68SRichard Lowe
41*d227ea68SRichard Lowe$(CMDS): $(TESTDIR)
42*d227ea68SRichard Lowe
43*d227ea68SRichard Lowe$(TESTDIR):
44*d227ea68SRichard Lowe	$(INS.dir)
45*d227ea68SRichard Lowe
46*d227ea68SRichard Lowe$(TESTDIR)/%: %.sh
47*d227ea68SRichard Lowe	$(INS.rename)
48*d227ea68SRichard Lowe
49*d227ea68SRichard Lowe$(TESTDIR)/%: %
50*d227ea68SRichard Lowe	$(INS.file)
51