Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized


  49 #
  50 #       Define targets
  51 #
  52 ALL_TARGET      = $(BINARY)
  53 LINT_TARGET     = $(MODULE).lint
  54 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  55 
  56 #
  57 #       Overrides.
  58 #
  59 CFLAGS                          += $(CCVERBOSE)
  60 $(RELEASE_BUILD)CFLAGS          += -xinline=auto -xcrossfile
  61 $(RELEASE_BUILD)COPTIMIZE       = -xO5
  62 LDFLAGS                         += -dy
  63 INC_PATH                        += -I$(UTSBASE)/common/io/bpf
  64 
  65 LINTTAGS                        += -erroff=E_PTRDIFF_OVERFLOW
  66 LINTTAGS                        += -erroff=E_BAD_PTR_CAST_ALIGN
  67 
  68 CERRWARN                        += -_gcc=-Wno-unused-label
  69 CERRWARN                        += -_gcc=-Wno-uninitialized
  70 CERRWARN                        += -_gcc=-Wno-type-limits
  71 CERRWARN                        += -_gcc=-Wno-switch
  72 CERRWARN                        += -_gcc=-Wno-unused-variable
  73 
  74 #
  75 #       Default build targets.
  76 #
  77 .KEEP_STATE:
  78 
  79 def:            $(DEF_DEPS)
  80 
  81 all:            $(ALL_DEPS)
  82 
  83 clean:          $(CLEAN_DEPS)
  84 
  85 clobber:        $(CLOBBER_DEPS)
  86 
  87 lint:           $(LINT_DEPS)
  88 
  89 modlintlib:     $(MODLINTLIB_DEPS)


  49 #
  50 #       Define targets
  51 #
  52 ALL_TARGET      = $(BINARY)
  53 LINT_TARGET     = $(MODULE).lint
  54 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  55 
  56 #
  57 #       Overrides.
  58 #
  59 CFLAGS                          += $(CCVERBOSE)
  60 $(RELEASE_BUILD)CFLAGS          += -xinline=auto -xcrossfile
  61 $(RELEASE_BUILD)COPTIMIZE       = -xO5
  62 LDFLAGS                         += -dy
  63 INC_PATH                        += -I$(UTSBASE)/common/io/bpf
  64 
  65 LINTTAGS                        += -erroff=E_PTRDIFF_OVERFLOW
  66 LINTTAGS                        += -erroff=E_BAD_PTR_CAST_ALIGN
  67 
  68 CERRWARN                        += -_gcc=-Wno-unused-label
  69 CERRWARN                        += $(CNOWARN_UNINIT)
  70 CERRWARN                        += -_gcc=-Wno-type-limits
  71 CERRWARN                        += -_gcc=-Wno-switch
  72 CERRWARN                        += -_gcc=-Wno-unused-variable
  73 
  74 #
  75 #       Default build targets.
  76 #
  77 .KEEP_STATE:
  78 
  79 def:            $(DEF_DEPS)
  80 
  81 all:            $(ALL_DEPS)
  82 
  83 clean:          $(CLEAN_DEPS)
  84 
  85 clobber:        $(CLOBBER_DEPS)
  86 
  87 lint:           $(LINT_DEPS)
  88 
  89 modlintlib:     $(MODLINTLIB_DEPS)