xref: /illumos-gate/usr/src/test/util-tests/tests/dis/Makefile (revision 66582b606a8194f7f3ba5b3a3a6dca5b0d346361)
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 2018 Joyent, Inc.
14#
15
16include $(SRC)/Makefile.master
17
18ROOTOPTPKG = $(ROOT)/opt/util-tests
19TESTDIR = $(ROOTOPTPKG)/tests/dis
20ARCHS = i386 risc-v risc-v-c sparc
21
22PROG = distest
23
24I386_FILES :sh= (cd i386; print *)
25RISCV_FILES :sh= (cd risc-v; print *)
26RISCV_C_FILES :sh= (cd risc-v-c; print *)
27SPARC_FILES :sh= (cd sparc; print *)
28
29ROOTFILES = \
30	$(I386_FILES:%=$(TESTDIR)/i386/%)		\
31	$(RISCV_FILES:%=$(TESTDIR)/risc-v/%)		\
32	$(RISCV_C_FILES:%=$(TESTDIR)/risc-v-c/%)	\
33	$(SPARC_FILES:%=$(TESTDIR)/sparc/%)
34
35include $(SRC)/cmd/Makefile.cmd
36include $(SRC)/test/Makefile.com
37
38ARCHDIRS = $(ARCHS:%=$(TESTDIR)/%)
39CMDS = $(PROG:%=$(TESTDIR)/%)
40FILEMODE=0444
41$(CMDS) := FILEMODE = 0555
42
43install: $(CMDS) $(ROOTFILES)
44
45lint:
46
47clobber: clean
48
49clean:
50
51$(CMDS) $(ROOTFILES): $(TESTDIR) $(ARCHDIRS)
52
53$(TESTDIR) $(ARCHDIRS):
54	$(INS.dir)
55
56$(TESTDIR)/%: %
57	$(INS.file)
58
59$(TESTDIR)/%: %.ksh
60	$(INS.rename)
61