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


  55 #
  56 ALL_TARGET      = $(BINARY)
  57 LINT_TARGET     = $(MODULE).lint
  58 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
  59 
  60 #
  61 #       header file directories
  62 #
  63 INCS            += -I$(SRC)/uts/common/
  64 
  65 LDFLAGS         += -dy -Nmisc/fctl -Ndrv/fcp -Nmisc/scsi
  66 
  67 #
  68 #       Lint tags
  69 #
  70 LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
  71 LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  72 LINTTAGS        += -erroff=E_SUSPICIOUS_COMPARISON
  73 LINTTAGS        += -erroff=E_STATIC_UNUSED
  74 
  75 CERRWARN        += -_gcc=-Wno-uninitialized
  76 CERRWARN        += -_gcc=-Wno-unused-function
  77 
  78 #
  79 #       Default build targets.
  80 #
  81 .KEEP_STATE:
  82 
  83 def:            $(DEF_DEPS)
  84 
  85 all:            $(ALL_DEPS)
  86 
  87 clean:          $(CLEAN_DEPS)
  88 
  89 clobber:        $(CLOBBER_DEPS)
  90 
  91 lint:           $(LINT_DEPS)
  92 
  93 modlintlib:     $(MODLINTLIB_DEPS)
  94 
  95 clean.lint:     $(CLEAN_LINT_DEPS)


  55 #
  56 ALL_TARGET      = $(BINARY)
  57 LINT_TARGET     = $(MODULE).lint
  58 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
  59 
  60 #
  61 #       header file directories
  62 #
  63 INCS            += -I$(SRC)/uts/common/
  64 
  65 LDFLAGS         += -dy -Nmisc/fctl -Ndrv/fcp -Nmisc/scsi
  66 
  67 #
  68 #       Lint tags
  69 #
  70 LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
  71 LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  72 LINTTAGS        += -erroff=E_SUSPICIOUS_COMPARISON
  73 LINTTAGS        += -erroff=E_STATIC_UNUSED
  74 
  75 CERRWARN        += $(CNOWARN_UNINIT)
  76 CERRWARN        += -_gcc=-Wno-unused-function
  77 
  78 #
  79 #       Default build targets.
  80 #
  81 .KEEP_STATE:
  82 
  83 def:            $(DEF_DEPS)
  84 
  85 all:            $(ALL_DEPS)
  86 
  87 clean:          $(CLEAN_DEPS)
  88 
  89 clobber:        $(CLOBBER_DEPS)
  90 
  91 lint:           $(LINT_DEPS)
  92 
  93 modlintlib:     $(MODLINTLIB_DEPS)
  94 
  95 clean.lint:     $(CLEAN_LINT_DEPS)