Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/expr/Makefile
+++ new/usr/src/cmd/expr/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 #
24 24 # Copyright (c) 2018, Joyent, Inc.
25 25
26 26 PROG= expr
27 27 XPG4PROG= expr
28 28 XPG6PROG= expr
29 29
↓ open down ↓ |
29 lines elided |
↑ open up ↑ |
30 30 EXPROBJ= exprobjs/expr.o exprobjs/compile.o
31 31 XPG4EXPROBJ= exprobjs.xpg4/expr.o exprobjs.xpg4/compile.o
32 32 XPG6EXPROBJ= exprobjs.xpg6/expr.o exprobjs.xpg6/compile.o
33 33
34 34 OBJS= $(EXPROBJ) $(XPG4EXPROBJ) $(XPG6EXPROBJ)
35 35 SRCS= expr.c compile.c
36 36
37 37 include ../Makefile.cmd
38 38
39 39 CFLAGS += $(CCVERBOSE)
40 -CERRWARN += -_gcc=-Wno-uninitialized
40 +CERRWARN += $(CNOWARN_UNINIT)
41 41 CERRWARN += -_gcc=-Wno-extra
42 42 # "missing type for func"
43 43 SMATCH=off
44 44 $(XPG4) := CFLAGS += -DXPG4
45 45 $(XPG6) := CFLAGS += -DXPG6
46 46
47 47 XGETFLAGS += -a -x expr.xcl
48 48
49 49 LDLIBS += -lgen
50 50
51 51 MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
52 52 LDFLAGS += $(MAPFILES:%=-M%)
53 53
54 54 .KEEP_STATE:
55 55
56 56 all: $(PROG) $(XPG4) $(XPG6)
57 57
58 58 install: all $(ROOTPROG) $(ROOTXPG4PROG) $(ROOTXPG6PROG)
59 59
60 60 $(PROG): exprobjs $(EXPROBJ) $(MAPFILES)
61 61 $(LINK.c) $(EXPROBJ) -o $@ $(LDLIBS)
62 62 $(POST_PROCESS)
63 63
64 64 $(XPG4): exprobjs.xpg4 $(XPG4EXPROBJ) $(MAPFILES)
65 65 $(LINK.c) $(XPG4EXPROBJ) -o $@ $(LDLIBS)
66 66 $(POST_PROCESS)
67 67
68 68 $(XPG6): exprobjs.xpg6 $(XPG6EXPROBJ) $(MAPFILES)
69 69 $(LINK.c) $(XPG6EXPROBJ) -o $@ $(LDLIBS)
70 70 $(POST_PROCESS)
71 71
72 72 exprobjs/%.o: %.c
73 73 $(COMPILE.c) -o $@ $<
74 74
75 75 exprobjs.xpg4/%.o: %.c
76 76 $(COMPILE.c) -o $@ $<
77 77
78 78 exprobjs.xpg6/%.o: %.c
79 79 $(COMPILE.c) -o $@ $<
80 80
81 81 exprobjs:
82 82 -@mkdir -p $@
83 83
84 84 exprobjs.xpg4:
85 85 -@mkdir -p $@
86 86
87 87 exprobjs.xpg6:
88 88 -@mkdir -p $@
89 89
90 90 clean:
91 91 $(RM) $(OBJS)
92 92
93 93 lint: lint_PROG
94 94
95 95 include ../Makefile.targ
↓ open down ↓ |
45 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX