xref: /illumos-gate/usr/src/test/net-tests/tests/forwarding/Makefile (revision 8119dad84d6416f13557b0ba8e2aaf9064cbcfd3)
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 2019 Joyent, Inc.
14#
15include $(SRC)/Makefile.master
16include $(SRC)/cmd/Makefile.cmd
17
18ROOTOPTPKG = $(ROOT)/opt/net-tests
19TESTDIR = $(ROOTOPTPKG)/tests/forwarding
20
21PROG = \
22	ip_forwarding \
23	ip_fwd_suite \
24	ip_fwd_001 \
25	ip_fwd_002 \
26	ip_fwd_003 \
27	ip_fwd_004 \
28	ip_fwd_005 \
29	ip_fwd_006 \
30	ip_fwd_007 \
31	ip_fwd_008 \
32	ip_fwd_009 \
33	ip_fwd_010 \
34	ip_fwd_011 \
35	ip_fwd_012 \
36	ip_fwd_013 \
37	ip_fwd_014 \
38	ip_fwd_015 \
39	ip_fwd_016 \
40	ip_fwd_017 \
41	ip_fwd_018 \
42	ip_fwd_019 \
43	ip_fwd_020
44
45DOC = $(TESTDIR)/README
46
47CMDS = $(PROG:%=$(TESTDIR)/%)
48FILEMODE=0444
49$(CMDS) := FILEMODE = 0555
50
51include $(SRC)/test/Makefile.com
52
53install: $(CMDS) $(DOC)
54
55clobber: clean
56	$(RM) $(CMDS) $(DOC)
57
58$(CMDS) $(DOC): $(TESTDIR)
59
60$(TESTDIR):
61	$(INS.dir)
62
63$(TESTDIR)/%: %
64	$(INS.file)
65
66$(TESTDIR)/%: %.ksh
67	$(INS.rename)
68