xref: /illumos-gate/usr/src/test/elf-tests/tests/tls/amd64/ie/Makefile (revision d0b3c59ba652f183eeec1414dd9fbdc56bf05cc8)
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 2018, Richard Lowe.
13
14include $(SRC)/cmd/Makefile.cmd
15include $(SRC)/test/Makefile.com
16
17PROG =	amd64-ie-test
18
19DATAFILES =			\
20	Makefile.test		\
21	style1-func-with-r12.s	\
22	style1-func-with-r13.s	\
23	style1-func.s		\
24	style1-main.s		\
25	style2-with-badness.s	\
26	style2-with-r12.s	\
27	style2-with-r13.s	\
28	style2.s
29
30ROOTOPTPKG = $(ROOT)/opt/elf-tests
31TESTDIR = $(ROOTOPTPKG)/tests/tls/amd64/ie
32
33CMDS = $(PROG:%=$(TESTDIR)/%)
34$(CMDS) := FILEMODE = 0555
35
36
37DATA = $(DATAFILES:%=$(TESTDIR)/%)
38$(DATA) := FILEMODE = 0444
39
40all: $(PROG)
41
42install: all $(CMDS) $(DATA)
43
44lint:
45
46clobber: clean
47	-$(RM) $(PROG)
48
49clean:
50	-$(RM) $(CLEANFILES)
51
52$(CMDS): $(TESTDIR) $(PROG)
53
54$(TESTDIR):
55	$(INS.dir)
56
57$(TESTDIR)/%: %
58	$(INS.file)
59