Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libshell/Makefile.com
+++ new/usr/src/lib/libshell/Makefile.com
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 #
23 23 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 # Copyright (c) 2019, Joyent, Inc.
25 25 #
26 26
27 27 SHELL=/usr/bin/ksh93
28 28
29 29 LIBRARY= libshell.a
30 30 VERS= .1
31 31
32 32 OBJECTS= \
33 33 bltins/alarm.o \
34 34 bltins/cd_pwd.o \
35 35 bltins/cflow.o \
36 36 bltins/enum.o \
37 37 bltins/getopts.o \
38 38 bltins/hist.o \
39 39 bltins/misc.o \
40 40 bltins/poll_solaris.o \
41 41 bltins/print.o \
42 42 bltins/read.o \
43 43 bltins/regress.o \
44 44 bltins/shiocmd_solaris.o \
45 45 bltins/sleep.o \
46 46 bltins/test.o \
47 47 bltins/trap.o \
48 48 bltins/typeset.o \
49 49 bltins/ulimit.o \
50 50 bltins/umask.o \
51 51 bltins/whence.o \
52 52 data/aliases.o \
53 53 data/builtins.o \
54 54 data/keywords.o \
55 55 data/lexstates.o \
56 56 data/limits.o \
57 57 data/msg.o \
58 58 data/options.o \
59 59 data/signals.o \
60 60 data/strdata.o \
61 61 data/testops.o \
62 62 data/variables.o \
63 63 edit/completion.o \
64 64 edit/edit.o \
65 65 edit/emacs.o \
66 66 edit/hexpand.o \
67 67 edit/history.o \
68 68 edit/vi.o \
69 69 sh/args.o \
70 70 sh/arith.o \
71 71 sh/array.o \
72 72 sh/defs.o \
73 73 sh/deparse.o \
74 74 sh/expand.o \
75 75 sh/fault.o \
76 76 sh/fcin.o \
77 77 sh/init.o \
78 78 sh/io.o \
79 79 sh/jobs.o \
80 80 sh/lex.o \
81 81 sh/macro.o \
82 82 sh/main.o \
83 83 sh/name.o \
84 84 sh/nvdisc.o \
85 85 sh/nvtree.o \
86 86 sh/nvtype.o \
87 87 sh/parse.o \
88 88 sh/path.o \
89 89 sh/streval.o \
90 90 sh/string.o \
91 91 sh/subshell.o \
92 92 sh/tdump.o \
93 93 sh/timers.o \
94 94 sh/trestore.o \
95 95 sh/waitevent.o \
96 96 sh/xec.o
97 97
98 98 # We are storing the object files into subdirs avoid the
99 99 # confusion with having too many object files in the toplevel pics/
100 100 # directory (this matches the way how the original AST build system
101 101 # deals with this "logistic" issue) - the rules below ensure that
102 102 # the destination directory is available.
103 103 OBJDIRS = \
104 104 bltins \
105 105 data \
106 106 edit \
107 107 sh
108 108 PICSDIRS= $(OBJDIRS:%=pics/%)
109 109 mkpicdirs:
110 110 @mkdir -p $(PICSDIRS)
111 111
112 112 # Specify the MACH we currently use to build and test ksh
113 113 LIBSHELLMACH= $(TARGETMACH)
114 114 LIBSHELLBASE=..
115 115
116 116 include ../../Makefile.astmsg
117 117
118 118 include ../../Makefile.lib
119 119
120 120 # mapfile-vers does not live with the sources in in common/ to make
121 121 # automated code updates easier.
122 122 MAPFILES= ../mapfile-vers
123 123
124 124 # Set common AST build flags (e.g. C99/XPG6, needed to support the math stuff)
125 125 include ../../../Makefile.ast
126 126
127 127 LIBS = $(DYNLIB) $(LINTLIB)
128 128
129 129 LDLIBS += \
130 130 -lcmd \
131 131 -ldll \
132 132 -last \
133 133 -lsocket \
134 134 -lm \
135 135 -lc
136 136
137 137 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
138 138
139 139 SRCDIR = ../common
140 140
141 141 # 1. Make sure that the -D/-U defines in CPPFLAGS below are in sync
142 142 # with usr/src/cmd/ksh/Makefile.com
143 143 # 2. We use "=" here since using $(CPPFLAGS.master) is very tricky in our
144 144 # case - it MUST come as the last element but future changes in -D options
145 145 # may then cause silent breakage in the AST sources because the last -D
146 146 # option specified overrides previous -D options so we prefer the current
147 147 # way to explicitly list each single flag.
148 148 CPPFLAGS = \
149 149 $(DTEXTDOM) $(DTS_ERRNO) \
150 150 $(LIBSHELLCPPFLAGS)
↓ open down ↓ |
150 lines elided |
↑ open up ↑ |
151 151
152 152 CFLAGS += \
153 153 $(ASTCFLAGS)
154 154 CFLAGS64 += \
155 155 $(ASTCFLAGS64)
156 156
157 157 CERRWARN += -_gcc=-Wno-parentheses
158 158 CERRWARN += -_gcc=-Wno-unused-value
159 159 CERRWARN += -_gcc=-Wno-unused-variable
160 160 CERRWARN += -_gcc=-Wno-unused-function
161 -CERRWARN += -_gcc=-Wno-uninitialized
161 +CERRWARN += $(CNOWARN_UNINIT)
162 162 CERRWARN += -_gcc=-Wno-clobbered
163 163 CERRWARN += -_gcc=-Wno-char-subscripts
164 164
165 165 # smatch gets out of memory on common/sh/macro.c
166 166 SMATCH = off
167 167
168 168 pics/sh/macro.o := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
169 169 pics/sh/nvdisc.o := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
170 170
171 171 .KEEP_STATE:
172 172
173 173 all: mkpicdirs .WAIT $(LIBS)
174 174
175 175 #
176 176 # libshell is not lint-clean yet; fake up a target. (You can use
177 177 # "make lintcheck" to actually run lint; please send all lint fixes
178 178 # upstream (to AT&T) so the next update will pull them into ON.)
179 179 #
180 180 lint:
181 181 @ print "usr/src/lib/libshell is not lint-clean: skipping"
182 182
183 183 include ../../Makefile.targ
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX