1*a4dd1f35SJohn Wren Kennedy# 2*a4dd1f35SJohn Wren Kennedy# This file and its contents are supplied under the terms of the 3*a4dd1f35SJohn Wren Kennedy# Common Development and Distribution License ("CDDL"), version 1.0. 4*a4dd1f35SJohn Wren Kennedy# You may only use this file in accordance with the terms of version 5*a4dd1f35SJohn Wren Kennedy# 1.0 of the CDDL. 6*a4dd1f35SJohn Wren Kennedy# 7*a4dd1f35SJohn Wren Kennedy# A full copy of the text of the CDDL should have accompanied this 8*a4dd1f35SJohn Wren Kennedy# source. A copy of the CDDL is also available via the Internet at 9*a4dd1f35SJohn Wren Kennedy# http://www.illumos.org/license/CDDL. 10*a4dd1f35SJohn Wren Kennedy# 11*a4dd1f35SJohn Wren Kennedy 12*a4dd1f35SJohn Wren Kennedy# 13*a4dd1f35SJohn Wren Kennedy# Copyright (c) 2013 by Delphix. All rights reserved. 14*a4dd1f35SJohn Wren Kennedy# 15*a4dd1f35SJohn Wren Kennedy 16*a4dd1f35SJohn Wren Kennedyinclude $(SRC)/Makefile.master 17*a4dd1f35SJohn Wren Kennedy 18*a4dd1f35SJohn Wren KennedyROOTOPTPKG = $(ROOT)/opt/zfs-tests 19*a4dd1f35SJohn Wren KennedyTESTDIR = $(ROOTOPTPKG)/tests/functional/ctime 20*a4dd1f35SJohn Wren Kennedy 21*a4dd1f35SJohn Wren KennedyPROG = ctime_001_pos 22*a4dd1f35SJohn Wren Kennedy 23*a4dd1f35SJohn Wren KennedySCRIPTS = cleanup \ 24*a4dd1f35SJohn Wren Kennedy setup 25*a4dd1f35SJohn Wren Kennedy 26*a4dd1f35SJohn Wren Kennedyinclude $(SRC)/cmd/Makefile.cmd 27*a4dd1f35SJohn Wren Kennedyinclude $(SRC)/test/Makefile.com 28*a4dd1f35SJohn Wren Kennedy 29*a4dd1f35SJohn Wren KennedyROOTOPTPKG = $(ROOT)/opt/zfs-tests 30*a4dd1f35SJohn Wren Kennedy 31*a4dd1f35SJohn Wren KennedyOBJS = $(PROG:%=%.o) 32*a4dd1f35SJohn Wren KennedySRCS = $(OBJS:%.o=%.c) 33*a4dd1f35SJohn Wren Kennedy 34*a4dd1f35SJohn Wren KennedyCMDS = $(PROG:%=$(TESTDIR)/%) $(SCRIPTS:%=$(TESTDIR)/%) 35*a4dd1f35SJohn Wren Kennedy$(CMDS) := FILEMODE = 0555 36*a4dd1f35SJohn Wren Kennedy 37*a4dd1f35SJohn Wren KennedyCPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 38*a4dd1f35SJohn Wren Kennedy 39*a4dd1f35SJohn Wren Kennedyall: $(PROG) 40*a4dd1f35SJohn Wren Kennedy 41*a4dd1f35SJohn Wren Kennedy$(PROG): $(OBJS) 42*a4dd1f35SJohn Wren Kennedy $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 43*a4dd1f35SJohn Wren Kennedy $(POST_PROCESS) 44*a4dd1f35SJohn Wren Kennedy 45*a4dd1f35SJohn Wren Kennedy%.o: ../%.c 46*a4dd1f35SJohn Wren Kennedy $(COMPILE.c) $< 47*a4dd1f35SJohn Wren Kennedy 48*a4dd1f35SJohn Wren Kennedyinstall: all $(CMDS) 49*a4dd1f35SJohn Wren Kennedy 50*a4dd1f35SJohn Wren Kennedylint: lint_SRCS 51*a4dd1f35SJohn Wren Kennedy 52*a4dd1f35SJohn Wren Kennedyclobber: clean 53*a4dd1f35SJohn Wren Kennedy -$(RM) $(PROG) 54*a4dd1f35SJohn Wren Kennedy 55*a4dd1f35SJohn Wren Kennedyclean: 56*a4dd1f35SJohn Wren Kennedy -$(RM) $(OBJS) 57*a4dd1f35SJohn Wren Kennedy 58*a4dd1f35SJohn Wren Kennedy$(CMDS): $(TESTDIR) $(PROG) 59*a4dd1f35SJohn Wren Kennedy 60*a4dd1f35SJohn Wren Kennedy$(TESTDIR): 61*a4dd1f35SJohn Wren Kennedy $(INS.dir) 62*a4dd1f35SJohn Wren Kennedy 63*a4dd1f35SJohn Wren Kennedy$(TESTDIR)/%: % 64*a4dd1f35SJohn Wren Kennedy $(INS.file) 65*a4dd1f35SJohn Wren Kennedy 66*a4dd1f35SJohn Wren Kennedy$(TESTDIR)/%: %.ksh 67*a4dd1f35SJohn Wren Kennedy $(INS.rename) 68