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