xref: /illumos-gate/usr/src/test/util-tests/tests/dis/Makefile (revision d1aea6f139360e9e7f1504facb24f8521047b15c)
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.avx		\
30	32.avx2		\
31	32.aes 		\
32	32.bmi1 	\
33	32.bmi2 	\
34	32.f16c 	\
35	32.fma-pd 	\
36	32.fma-ps 	\
37	32.fma-sd 	\
38	32.fma-ss 	\
39	32.lzcnt 	\
40	32.movbe	\
41	32.pclmulqdq	\
42	32.popcnt 	\
43	32.sha		\
44	32.sse-3	\
45	32.sse-4.1 	\
46	32.sse-4.2 	\
47	32.ssse3 	\
48	32.xsave 	\
49	64.avx		\
50	64.avx2		\
51	64.adx 		\
52	64.aes 		\
53	64.bmi1 	\
54	64.bmi2 	\
55	64.ept 		\
56	64.f16c 	\
57	64.fma-pd 	\
58	64.fma-ps 	\
59	64.fma-sd 	\
60	64.fma-ss 	\
61	64.lzcnt 	\
62	64.movbe	\
63	64.pclmulqdq	\
64	64.popcnt 	\
65	64.random 	\
66	64.sha		\
67	64.sse-3	\
68	64.sse-4.1 	\
69	64.sse-4.2 	\
70	64.ssse3 	\
71	64.vmx 		\
72	64.xsave 	\
73	tst.cpuid	\
74	tst.fence	\
75	tst.msr		\
76	tst.mwait 	\
77	tst.random	\
78	tst.smap	\
79	tst.sep		\
80	tst.tsc		\
81	tst.vmx
82
83I386_FILES = $(I386_TESTS:%=%.s) $(I386_TESTS:%=%.out)
84ROOTI386 = $(I386_FILES:%=$(TESTDIR)/i386/%)
85
86SPARC_FILES = $(SPARC_TESTS:%=%.s) $(SPARC_TESTS:%=%.out)
87ROOTSPARC = $(SPARC_FILES:%=$(TESTDIR)/sparc/%)
88
89include $(SRC)/cmd/Makefile.cmd
90include $(SRC)/test/Makefile.com
91
92ARCHDIRS = $(ARCHS:%=$(TESTDIR)/%)
93CMDS = $(PROG:%=$(TESTDIR)/%)
94$(CMDS) := FILEMODE = 0555
95
96install: $(CMDS) $(ROOTI386) $(ROOTSPARC)
97
98lint:
99
100clobber: clean
101
102clean:
103
104$(CMDS) $(ROOTI386) $(ROOTSPARC): $(TESTDIR) $(ARCHDIRS)
105
106$(TESTDIR) $(ARCHDIRS):
107	$(INS.dir)
108
109$(TESTDIR)/%: %
110	$(INS.file)
111
112$(TESTDIR)/%: %.ksh
113	$(INS.rename)
114