Print this page
6648 illumos build should be explicit about C standards
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/test/zfs-tests/tests/functional/checksum/Makefile.subdirs
+++ new/usr/src/test/zfs-tests/tests/functional/checksum/Makefile.subdirs
1 1 #
2 2 # This file and its contents are supplied under the terms of the
3 3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 4 # You may only use this file in accordance with the terms of version
5 5 # 1.0 of the CDDL.
6 6 #
7 7 # A full copy of the text of the CDDL should have accompanied this
8 8 # source. A copy of the CDDL is also available via the Internet at
9 9 # http://www.illumos.org/license/CDDL.
10 10 #
11 11
12 12 #
13 13 # Copyright (c) 2015 by Delphix. All rights reserved.
14 14 #
15 15
16 16 include $(SRC)/cmd/Makefile.cmd
17 17
18 18 ROOTOPTPKG = $(ROOT)/opt/zfs-tests
↓ open down ↓ |
18 lines elided |
↑ open up ↑ |
19 19 TESTDIR = $(ROOTOPTPKG)/tests/functional/checksum
20 20
21 21 OBJS = $(PROG:%=%.o)
22 22 SRCS = $(OBJS:%.o=../%.c)
23 23
24 24 CMD32 = $(PROG:%=$(TESTDIR)/%.$(MACH))
25 25 CMD64 = $(PROG:%=$(TESTDIR)/%.$(MACH64))
26 26 CMDS = $(CMD32) $(CMD64)
27 27 $(CMDS) := FILEMODE = 0555
28 28
29 -C99MODE = -xc99=%all
30 -CFLAGS = -I $(SRC)/uts/common -D_KERNEL
29 +C99MODE = $(C99_ENABLE)
30 +CFLAGS += -I $(SRC)/uts/common -D_KERNEL
31 31 LDLIBS += -lmd
32 32 LINTFLAGS += -u
33 33 LINTFLAGS64 += -u
34 34
35 35 all: $(PROG) $(TESTDIR)
36 36
37 37 lint: lint_SRCS
38 38
39 39 clobber: clean
40 40
41 41 clean:
42 42 $(RM) $(PROG)
43 43
44 44 include $(SRC)/cmd/Makefile.targ
45 45
46 46 $(TESTDIR):
47 47 $(INS.dir)
48 48
49 49 $(TESTDIR)/%.$(MACH): %
50 50 $(INS.rename)
51 51
52 52 $(TESTDIR)/%.$(MACH64): %
53 53 $(INS.rename)
54 54
55 55 %: ../%.c
56 56 $(LINK.c) -o $@ $< $(LDLIBS)
57 57 $(POST_PROCESS)
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX