141 # 1. Make sure that the -D/-U defines in CPPFLAGS below are in sync
142 # with usr/src/cmd/ksh/Makefile.com
143 # 2. We use "=" here since using $(CPPFLAGS.master) is very tricky in our
144 # case - it MUST come as the last element but future changes in -D options
145 # may then cause silent breakage in the AST sources because the last -D
146 # option specified overrides previous -D options so we prefer the current
147 # way to explicitly list each single flag.
148 CPPFLAGS = \
149 $(DTEXTDOM) $(DTS_ERRNO) \
150 $(LIBSHELLCPPFLAGS)
151
152 CFLAGS += \
153 $(ASTCFLAGS)
154 CFLAGS64 += \
155 $(ASTCFLAGS64)
156
157 CERRWARN += -_gcc=-Wno-parentheses
158 CERRWARN += -_gcc=-Wno-unused-value
159 CERRWARN += -_gcc=-Wno-unused-variable
160 CERRWARN += -_gcc=-Wno-unused-function
161 CERRWARN += -_gcc=-Wno-uninitialized
162 CERRWARN += -_gcc=-Wno-clobbered
163 CERRWARN += -_gcc=-Wno-char-subscripts
164
165 # smatch gets out of memory on common/sh/macro.c
166 SMATCH = off
167
168 pics/sh/macro.o := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
169 pics/sh/nvdisc.o := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
170
171 .KEEP_STATE:
172
173 all: mkpicdirs .WAIT $(LIBS)
174
175 #
176 # libshell is not lint-clean yet; fake up a target. (You can use
177 # "make lintcheck" to actually run lint; please send all lint fixes
178 # upstream (to AT&T) so the next update will pull them into ON.)
179 #
180 lint:
181 @ print "usr/src/lib/libshell is not lint-clean: skipping"
|
141 # 1. Make sure that the -D/-U defines in CPPFLAGS below are in sync
142 # with usr/src/cmd/ksh/Makefile.com
143 # 2. We use "=" here since using $(CPPFLAGS.master) is very tricky in our
144 # case - it MUST come as the last element but future changes in -D options
145 # may then cause silent breakage in the AST sources because the last -D
146 # option specified overrides previous -D options so we prefer the current
147 # way to explicitly list each single flag.
148 CPPFLAGS = \
149 $(DTEXTDOM) $(DTS_ERRNO) \
150 $(LIBSHELLCPPFLAGS)
151
152 CFLAGS += \
153 $(ASTCFLAGS)
154 CFLAGS64 += \
155 $(ASTCFLAGS64)
156
157 CERRWARN += -_gcc=-Wno-parentheses
158 CERRWARN += -_gcc=-Wno-unused-value
159 CERRWARN += -_gcc=-Wno-unused-variable
160 CERRWARN += -_gcc=-Wno-unused-function
161 CERRWARN += $(CNOWARN_UNINIT)
162 CERRWARN += -_gcc=-Wno-clobbered
163 CERRWARN += -_gcc=-Wno-char-subscripts
164
165 # smatch gets out of memory on common/sh/macro.c
166 SMATCH = off
167
168 pics/sh/macro.o := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
169 pics/sh/nvdisc.o := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
170
171 .KEEP_STATE:
172
173 all: mkpicdirs .WAIT $(LIBS)
174
175 #
176 # libshell is not lint-clean yet; fake up a target. (You can use
177 # "make lintcheck" to actually run lint; please send all lint fixes
178 # upstream (to AT&T) so the next update will pull them into ON.)
179 #
180 lint:
181 @ print "usr/src/lib/libshell is not lint-clean: skipping"
|