xref: /illumos-gate/usr/src/test/util-tests/tests/dis/Makefile (revision 898c3fec4c1cbcd45754042f6635b76a9067abd6)
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#
13# Copyright 2016 Joyent, Inc.
14#
15
16include $(SRC)/Makefile.master
17
18ROOTOPTPKG = $(ROOT)/opt/util-tests
19TESTDIR = $(ROOTOPTPKG)/tests/dis
20ARCHS = i386 sparc
21
22PROG = distest
23
24SPARC_TESTS = \
25	tst.regs
26
27I386_TESTS =		\
28	32.adx 		\
29	32.aes 		\
30	32.bmi1 	\
31	32.bmi2 	\
32	32.fma-pd 	\
33	32.fma-ps 	\
34	32.fma-sd 	\
35	32.fma-ss 	\
36	32.lzcnt 	\
37	32.popcnt 	\
38	32.sha		\
39	32.sse-4.2 	\
40	32.ssse3 	\
41	32.xsave 	\
42	64.adx 		\
43	64.aes 		\
44	64.bmi1 	\
45	64.bmi2 	\
46	64.ept 		\
47	64.fma-pd 	\
48	64.fma-ps 	\
49	64.fma-sd 	\
50	64.fma-ss 	\
51	64.lzcnt 	\
52	64.popcnt 	\
53	64.random 	\
54	64.sha		\
55	64.sse-4.2 	\
56	64.ssse3 	\
57	64.vmx 		\
58	64.xsave 	\
59	tst.mwait 	\
60	tst.random	\
61	tst.smap	\
62	tst.vmx
63
64I386_FILES = $(I386_TESTS:%=%.s) $(I386_TESTS:%=%.out)
65ROOTI386 = $(I386_FILES:%=$(TESTDIR)/i386/%)
66
67SPARC_FILES = $(SPARC_TESTS:%=%.s) $(SPARC_TESTS:%=%.out)
68ROOTSPARC = $(SPARC_FILES:%=$(TESTDIR)/sparc/%)
69
70include $(SRC)/cmd/Makefile.cmd
71include $(SRC)/test/Makefile.com
72
73ARCHDIRS = $(ARCHS:%=$(TESTDIR)/%)
74CMDS = $(PROG:%=$(TESTDIR)/%)
75$(CMDS) := FILEMODE = 0555
76
77install: $(CMDS) $(ROOTI386) $(ROOTSPARC)
78
79lint:
80
81clobber: clean
82
83clean:
84
85$(CMDS) $(ROOTI386) $(ROOTSPARC): $(TESTDIR) $(ARCHDIRS)
86
87$(TESTDIR) $(ARCHDIRS):
88	$(INS.dir)
89
90$(TESTDIR)/%: %
91	$(INS.file)
92
93$(TESTDIR)/%: %.ksh
94	$(INS.rename)
95