1c61a1653SRyan Zezeski# 2c61a1653SRyan Zezeski# This file and its contents are supplied under the terms of the 3c61a1653SRyan Zezeski# Common Development and Distribution License ("CDDL"), version 1.0. 4c61a1653SRyan Zezeski# You may only use this file in accordance with the terms of version 5c61a1653SRyan Zezeski# 1.0 of the CDDL. 6c61a1653SRyan Zezeski# 7c61a1653SRyan Zezeski# A full copy of the text of the CDDL should have accompanied this 8c61a1653SRyan Zezeski# source. A copy of the CDDL is also available via the Internet at 9c61a1653SRyan Zezeski# http://www.illumos.org/license/CDDL. 10c61a1653SRyan Zezeski# 11c61a1653SRyan Zezeski 12c61a1653SRyan Zezeski# 13c61a1653SRyan Zezeski# Copyright 2019 Joyent, Inc. 14*44749cf0SAndy Fiddaman# Copyright 2024 Oxide Computer Company 15c61a1653SRyan Zezeski# 16c61a1653SRyan Zezeskiinclude $(SRC)/Makefile.master 17c61a1653SRyan Zezeskiinclude $(SRC)/cmd/Makefile.cmd 18c61a1653SRyan Zezeski 19*44749cf0SAndy FiddamanSUBDIRS = forwarding ipv6 20c61a1653SRyan ZezeskiSCRIPTS = net_common 21c61a1653SRyan ZezeskiROOTOPTPKG = $(ROOT)/opt/net-tests 22c61a1653SRyan ZezeskiTESTDIR = $(ROOTOPTPKG)/tests 23c61a1653SRyan ZezeskiCMDS = $(SCRIPTS:%=$(TESTDIR)/%) 24c61a1653SRyan ZezeskiFILEMODE=0444 25c61a1653SRyan Zezeski$(CMDS) := FILEMODE = 0555 26c61a1653SRyan Zezeski 27c61a1653SRyan Zezeskiinclude $(SRC)/test/Makefile.com 28c61a1653SRyan Zezeski 29c61a1653SRyan Zezeskiinstall: $(CMDS) 30c61a1653SRyan Zezeski 31c61a1653SRyan Zezeskiclobber: clean 32c61a1653SRyan Zezeski $(RM) $(CMDS) 33c61a1653SRyan Zezeski 34c61a1653SRyan Zezeski$(CMDS): $(TESTDIR) 35c61a1653SRyan Zezeski 36c61a1653SRyan Zezeski$(TESTDIR): 37c61a1653SRyan Zezeski $(INS.dir) 38c61a1653SRyan Zezeski 39c61a1653SRyan Zezeski$(TESTDIR)/%: % 40c61a1653SRyan Zezeski $(INS.file) 41c61a1653SRyan Zezeski 42c61a1653SRyan Zezeski$(TESTDIR)/%: %.ksh 43c61a1653SRyan Zezeski $(INS.rename) 44