145818ee1SMatthew Ahrens# 245818ee1SMatthew Ahrens# This file and its contents are supplied under the terms of the 345818ee1SMatthew Ahrens# Common Development and Distribution License ("CDDL"), version 1.0. 445818ee1SMatthew Ahrens# You may only use this file in accordance with the terms of version 545818ee1SMatthew Ahrens# 1.0 of the CDDL. 645818ee1SMatthew Ahrens# 745818ee1SMatthew Ahrens# A full copy of the text of the CDDL should have accompanied this 845818ee1SMatthew Ahrens# source. A copy of the CDDL is also available via the Internet at 945818ee1SMatthew Ahrens# http://www.illumos.org/license/CDDL. 1045818ee1SMatthew Ahrens# 1145818ee1SMatthew Ahrens 1245818ee1SMatthew Ahrens# 1345818ee1SMatthew Ahrens# Copyright (c) 2015 by Delphix. All rights reserved. 1445818ee1SMatthew Ahrens# 1545818ee1SMatthew Ahrens 1645818ee1SMatthew Ahrensinclude $(SRC)/cmd/Makefile.cmd 1745818ee1SMatthew Ahrens 1845818ee1SMatthew AhrensROOTOPTPKG = $(ROOT)/opt/zfs-tests 1945818ee1SMatthew AhrensTESTDIR = $(ROOTOPTPKG)/tests/functional/checksum 2045818ee1SMatthew Ahrens 2145818ee1SMatthew AhrensOBJS = $(PROG:%=%.o) 2245818ee1SMatthew AhrensSRCS = $(OBJS:%.o=../%.c) 2345818ee1SMatthew Ahrens 2445818ee1SMatthew AhrensCMD32 = $(PROG:%=$(TESTDIR)/%.$(MACH)) 2545818ee1SMatthew AhrensCMD64 = $(PROG:%=$(TESTDIR)/%.$(MACH64)) 2645818ee1SMatthew AhrensCMDS = $(CMD32) $(CMD64) 2745818ee1SMatthew Ahrens$(CMDS) := FILEMODE = 0555 2845818ee1SMatthew Ahrens 29*7f11fd00SRichard LoweC99MODE = $(C99_ENABLE) 30*7f11fd00SRichard LoweCFLAGS += -I $(SRC)/uts/common -D_KERNEL 3145818ee1SMatthew AhrensLDLIBS += -lmd 3245818ee1SMatthew AhrensLINTFLAGS += -u 3345818ee1SMatthew AhrensLINTFLAGS64 += -u 3445818ee1SMatthew Ahrens 3545818ee1SMatthew Ahrensall: $(PROG) $(TESTDIR) 3645818ee1SMatthew Ahrens 3745818ee1SMatthew Ahrenslint: lint_SRCS 3845818ee1SMatthew Ahrens 3945818ee1SMatthew Ahrensclobber: clean 4045818ee1SMatthew Ahrens 4145818ee1SMatthew Ahrensclean: 4245818ee1SMatthew Ahrens $(RM) $(PROG) 4345818ee1SMatthew Ahrens 4445818ee1SMatthew Ahrensinclude $(SRC)/cmd/Makefile.targ 4545818ee1SMatthew Ahrens 4645818ee1SMatthew Ahrens$(TESTDIR): 4745818ee1SMatthew Ahrens $(INS.dir) 4845818ee1SMatthew Ahrens 4945818ee1SMatthew Ahrens$(TESTDIR)/%.$(MACH): % 5045818ee1SMatthew Ahrens $(INS.rename) 5145818ee1SMatthew Ahrens 5245818ee1SMatthew Ahrens$(TESTDIR)/%.$(MACH64): % 5345818ee1SMatthew Ahrens $(INS.rename) 5445818ee1SMatthew Ahrens 5545818ee1SMatthew Ahrens%: ../%.c 5645818ee1SMatthew Ahrens $(LINK.c) -o $@ $< $(LDLIBS) 5745818ee1SMatthew Ahrens $(POST_PROCESS) 58