Print this page
3735 should include an empty make variable in the default CFLAGS/CCFLAGS
3844 the build should make source-level debugging easier
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>


 219 CERRWARN += -_gcc=-Wno-unused-parameter
 220 CERRWARN += -_gcc=-Wno-missing-field-initializers
 221 
 222 # DEBUG v. -nd make for frequent unused variables, empty conditions, etc. in
 223 # -nd builds
 224 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
 225 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-empty-body
 226 
 227 C99MODE = $(C99_ENABLE)
 228 
 229 CFLAGS_uts              =
 230 CFLAGS_uts              += $(STAND_FLAGS_$(CLASS))
 231 CFLAGS_uts              += $(CCVERBOSE)
 232 CFLAGS_uts              += $(ILDOFF)
 233 CFLAGS_uts              += $(XAOPT)
 234 CFLAGS_uts              += $(CTF_FLAGS_$(CLASS))
 235 CFLAGS_uts              += $(CERRWARN)
 236 CFLAGS_uts              += $(CCNOAUTOINLINE)
 237 CFLAGS_uts              += $(CGLOBALSTATIC)
 238 CFLAGS_uts              += $(EXTRA_CFLAGS)


 239 
 240 #
 241 #       Declare that $(OBJECTS) and $(LINTS) can be compiled in parallel.
 242 #       The DUMMY target is for those instances where OBJECTS and LINTS
 243 #       are empty (to avoid an unconditional .PARALLEL).
 244 .PARALLEL:      $(OBJECTS) $(LINTS) DUMMY
 245 
 246 #
 247 #       Expanded dependencies
 248 #
 249 DEF_DEPS        = $(DEF_BUILDS:%=def.%)
 250 ALL_DEPS        = $(ALL_BUILDS:%=all.%)
 251 CLEAN_DEPS      = $(ALL_BUILDS:%=clean.%)
 252 CLOBBER_DEPS    = $(ALL_BUILDS:%=clobber.%)
 253 LINT_DEPS       = $(DEF_BUILDS:%=lint.%)
 254 MODLINTLIB_DEPS = $(DEF_BUILDS:%=modlintlib.%)
 255 MODLIST_DEPS    = $(DEF_BUILDS:%=modlist.%)
 256 CLEAN_LINT_DEPS = $(ALL_BUILDS:%=clean.lint.%)
 257 INSTALL_DEPS    = $(DEF_BUILDS:%=install.%)
 258 SYM_DEPS        = $(SYM_BUILDS:%=symcheck.%)




 219 CERRWARN += -_gcc=-Wno-unused-parameter
 220 CERRWARN += -_gcc=-Wno-missing-field-initializers
 221 
 222 # DEBUG v. -nd make for frequent unused variables, empty conditions, etc. in
 223 # -nd builds
 224 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
 225 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-empty-body
 226 
 227 C99MODE = $(C99_ENABLE)
 228 
 229 CFLAGS_uts              =
 230 CFLAGS_uts              += $(STAND_FLAGS_$(CLASS))
 231 CFLAGS_uts              += $(CCVERBOSE)
 232 CFLAGS_uts              += $(ILDOFF)
 233 CFLAGS_uts              += $(XAOPT)
 234 CFLAGS_uts              += $(CTF_FLAGS_$(CLASS))
 235 CFLAGS_uts              += $(CERRWARN)
 236 CFLAGS_uts              += $(CCNOAUTOINLINE)
 237 CFLAGS_uts              += $(CGLOBALSTATIC)
 238 CFLAGS_uts              += $(EXTRA_CFLAGS)
 239 CFLAGS_uts              += $(CSOURCEDEBUGFLAGS)
 240 CFLAGS_uts              += $(CUSERFLAGS)
 241 
 242 #
 243 #       Declare that $(OBJECTS) and $(LINTS) can be compiled in parallel.
 244 #       The DUMMY target is for those instances where OBJECTS and LINTS
 245 #       are empty (to avoid an unconditional .PARALLEL).
 246 .PARALLEL:      $(OBJECTS) $(LINTS) DUMMY
 247 
 248 #
 249 #       Expanded dependencies
 250 #
 251 DEF_DEPS        = $(DEF_BUILDS:%=def.%)
 252 ALL_DEPS        = $(ALL_BUILDS:%=all.%)
 253 CLEAN_DEPS      = $(ALL_BUILDS:%=clean.%)
 254 CLOBBER_DEPS    = $(ALL_BUILDS:%=clobber.%)
 255 LINT_DEPS       = $(DEF_BUILDS:%=lint.%)
 256 MODLINTLIB_DEPS = $(DEF_BUILDS:%=modlintlib.%)
 257 MODLIST_DEPS    = $(DEF_BUILDS:%=modlist.%)
 258 CLEAN_LINT_DEPS = $(ALL_BUILDS:%=clean.lint.%)
 259 INSTALL_DEPS    = $(DEF_BUILDS:%=install.%)
 260 SYM_DEPS        = $(SYM_BUILDS:%=symcheck.%)