230 CERRWARN += -_smatch=-p=illumos_kernel
231 include $(SRC)/Makefile.smatch
232
233 #
234 # Unfortunately, _IOWR() is regularly used with a third argument of 0,
235 # so we have to disable all these smatch checks.
236 #
237 SMOFF += sizeof
238
239 CSTD = $(CSTD_GNU99)
240
241 CFLAGS_uts =
242 CFLAGS_uts += $(STAND_FLAGS_$(CLASS))
243 CFLAGS_uts += $(CCVERBOSE)
244 CFLAGS_uts += $(ILDOFF)
245 CFLAGS_uts += $(XAOPT)
246 CFLAGS_uts += $(CTF_FLAGS_$(CLASS))
247 CFLAGS_uts += $(CERRWARN)
248 CFLAGS_uts += $(CCNOAUTOINLINE)
249 CFLAGS_uts += $(CCNOREORDER)
250 CFLAGS_uts += $(CGLOBALSTATIC)
251 CFLAGS_uts += $(EXTRA_CFLAGS)
252 CFLAGS_uts += $(CSOURCEDEBUGFLAGS)
253 CFLAGS_uts += $(CUSERFLAGS)
254
255 #
256 # Declare that $(OBJECTS) and $(LINTS) can be compiled in parallel.
257 # The DUMMY target is for those instances where OBJECTS and LINTS
258 # are empty (to avoid an unconditional .PARALLEL).
259 .PARALLEL: $(OBJECTS) $(LINTS) DUMMY
260
261 #
262 # Expanded dependencies
263 #
264 DEF_DEPS = $(DEF_BUILDS:%=def.%)
265 ALL_DEPS = $(ALL_BUILDS:%=all.%)
266 CLEAN_DEPS = $(ALL_BUILDS:%=clean.%)
267 CLOBBER_DEPS = $(ALL_BUILDS:%=clobber.%)
268 LINT_DEPS = $(DEF_BUILDS:%=lint.%)
269 MODLINTLIB_DEPS = $(DEF_BUILDS:%=modlintlib.%)
|
230 CERRWARN += -_smatch=-p=illumos_kernel
231 include $(SRC)/Makefile.smatch
232
233 #
234 # Unfortunately, _IOWR() is regularly used with a third argument of 0,
235 # so we have to disable all these smatch checks.
236 #
237 SMOFF += sizeof
238
239 CSTD = $(CSTD_GNU99)
240
241 CFLAGS_uts =
242 CFLAGS_uts += $(STAND_FLAGS_$(CLASS))
243 CFLAGS_uts += $(CCVERBOSE)
244 CFLAGS_uts += $(ILDOFF)
245 CFLAGS_uts += $(XAOPT)
246 CFLAGS_uts += $(CTF_FLAGS_$(CLASS))
247 CFLAGS_uts += $(CERRWARN)
248 CFLAGS_uts += $(CCNOAUTOINLINE)
249 CFLAGS_uts += $(CCNOREORDER)
250 CFLAGS_uts += $(CCNOAGGRESSIVELOOPS)
251 CFLAGS_uts += $(CGLOBALSTATIC)
252 CFLAGS_uts += $(EXTRA_CFLAGS)
253 CFLAGS_uts += $(CSOURCEDEBUGFLAGS)
254 CFLAGS_uts += $(CUSERFLAGS)
255
256 #
257 # Declare that $(OBJECTS) and $(LINTS) can be compiled in parallel.
258 # The DUMMY target is for those instances where OBJECTS and LINTS
259 # are empty (to avoid an unconditional .PARALLEL).
260 .PARALLEL: $(OBJECTS) $(LINTS) DUMMY
261
262 #
263 # Expanded dependencies
264 #
265 DEF_DEPS = $(DEF_BUILDS:%=def.%)
266 ALL_DEPS = $(ALL_BUILDS:%=all.%)
267 CLEAN_DEPS = $(ALL_BUILDS:%=clean.%)
268 CLOBBER_DEPS = $(ALL_BUILDS:%=clobber.%)
269 LINT_DEPS = $(DEF_BUILDS:%=lint.%)
270 MODLINTLIB_DEPS = $(DEF_BUILDS:%=modlintlib.%)
|