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
14 include $(SRC)/cmd/Makefile.cmd
15 include $(SRC)/test/Makefile.com
16
17 PROG = x64-ie-test
18
19 DATAFILES = \
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
30 ROOTOPTPKG = $(ROOT)/opt/elf-tests
31 TESTDIR = $(ROOTOPTPKG)/tests/tls/x64/ie
32
33 CMDS = $(PROG:%=$(TESTDIR)/%)
34 $(CMDS) := FILEMODE = 0555
35
36
37 DATA = $(DATAFILES:%=$(TESTDIR)/%)
38 $(DATA) := FILEMODE = 0444
39
40 all: $(PROG)
41
42 install: all $(CMDS) $(DATA)
43
44 lint:
45
46 clobber: clean
47 -$(RM) $(PROG)
48
49 clean:
50 -$(RM) $(CLEANFILES)
51
52 $(CMDS): $(TESTDIR) $(PROG)
53
54 $(TESTDIR):
55 $(INS.dir)
56
57 $(TESTDIR)/%: %
58 $(INS.file)