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