9 # http://www.illumos.org/license/CDDL.
10 #
11
12 #
13 # Copyright (c) 2015 by Delphix. All rights reserved.
14 #
15
16 include $(SRC)/cmd/Makefile.cmd
17
18 ROOTOPTPKG = $(ROOT)/opt/zfs-tests
19 TESTDIR = $(ROOTOPTPKG)/tests/functional/checksum
20
21 OBJS = $(PROG:%=%.o)
22 SRCS = $(OBJS:%.o=../%.c)
23
24 CMD32 = $(PROG:%=$(TESTDIR)/%.$(MACH))
25 CMD64 = $(PROG:%=$(TESTDIR)/%.$(MACH64))
26 CMDS = $(CMD32) $(CMD64)
27 $(CMDS) := FILEMODE = 0555
28
29 C99MODE = -xc99=%all
30 CFLAGS = -I $(SRC)/uts/common -D_KERNEL
31 LDLIBS += -lmd
32 LINTFLAGS += -u
33 LINTFLAGS64 += -u
34
35 all: $(PROG) $(TESTDIR)
36
37 lint: lint_SRCS
38
39 clobber: clean
40
41 clean:
42 $(RM) $(PROG)
43
44 include $(SRC)/cmd/Makefile.targ
45
46 $(TESTDIR):
47 $(INS.dir)
48
49 $(TESTDIR)/%.$(MACH): %
50 $(INS.rename)
|
9 # http://www.illumos.org/license/CDDL.
10 #
11
12 #
13 # Copyright (c) 2015 by Delphix. All rights reserved.
14 #
15
16 include $(SRC)/cmd/Makefile.cmd
17
18 ROOTOPTPKG = $(ROOT)/opt/zfs-tests
19 TESTDIR = $(ROOTOPTPKG)/tests/functional/checksum
20
21 OBJS = $(PROG:%=%.o)
22 SRCS = $(OBJS:%.o=../%.c)
23
24 CMD32 = $(PROG:%=$(TESTDIR)/%.$(MACH))
25 CMD64 = $(PROG:%=$(TESTDIR)/%.$(MACH64))
26 CMDS = $(CMD32) $(CMD64)
27 $(CMDS) := FILEMODE = 0555
28
29 C99MODE = $(C99_ENABLE)
30 CFLAGS += -I $(SRC)/uts/common -D_KERNEL
31 LDLIBS += -lmd
32 LINTFLAGS += -u
33 LINTFLAGS64 += -u
34
35 all: $(PROG) $(TESTDIR)
36
37 lint: lint_SRCS
38
39 clobber: clean
40
41 clean:
42 $(RM) $(PROG)
43
44 include $(SRC)/cmd/Makefile.targ
45
46 $(TESTDIR):
47 $(INS.dir)
48
49 $(TESTDIR)/%.$(MACH): %
50 $(INS.rename)
|