dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / test / zfs-tests / tests / functional / ctime / Makefile
blobfc36e31e5ff1e2911cb3e5b65ae4500d56086a95
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.
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.
13 # Copyright (c) 2013 by Delphix. All rights reserved.
16 include $(SRC)/Makefile.master
18 ROOTOPTPKG = $(ROOT)/opt/zfs-tests
19 TESTDIR = $(ROOTOPTPKG)/tests/functional/ctime
21 PROG = ctime_001_pos
23 SCRIPTS = cleanup \
24 setup
26 include $(SRC)/cmd/Makefile.cmd
27 include $(SRC)/test/Makefile.com
29 ROOTOPTPKG = $(ROOT)/opt/zfs-tests
31 OBJS = $(PROG:%=%.o)
32 SRCS = $(OBJS:%.o=%.c)
34 CMDS = $(PROG:%=$(TESTDIR)/%) $(SCRIPTS:%=$(TESTDIR)/%)
35 $(CMDS) := FILEMODE = 0555
37 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
39 all: $(PROG)
41 $(PROG): $(OBJS)
42 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
43 $(POST_PROCESS)
45 %.o: ../%.c
46 $(COMPILE.c) $<
48 install: all $(CMDS)
50 clobber: clean
51 -$(RM) $(PROG)
53 clean:
54 -$(RM) $(OBJS)
56 $(CMDS): $(TESTDIR) $(PROG)
58 $(TESTDIR):
59 $(INS.dir)
61 $(TESTDIR)/%: %
62 $(INS.file)
64 $(TESTDIR)/%: %.ksh
65 $(INS.rename)