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


  47 #
  48 ALL_TARGET      = $(BINARY)
  49 LINT_TARGET     = $(MODULE).lint
  50 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  51 
  52 #
  53 # lint pass one enforcement and OS version
  54 #
  55 CFLAGS += $(CCVERBOSE)
  56 
  57 LDFLAGS += -dy -Nfs/sockfs -Nmisc/dls -Nmisc/mac -Ndrv/bpf -Ndrv/ip
  58 INC_PATH += -I$(UTSBASE)/common/inet/sockmods -I$(UTSBASE)/common/io/bpf
  59 
  60 #
  61 # For now, disable these lint checks; maintainers should endeavor
  62 # to investigate and remove these for maximum lint coverage.
  63 # Please do not carry these forward to new Makefiles.
  64 #
  65 LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW -erroff=E_BAD_PTR_CAST_ALIGN
  66 
  67 CERRWARN        += -_gcc=-Wno-uninitialized
  68 CERRWARN        += -_gcc=-Wno-unused-label
  69 
  70 # needs work
  71 SMOFF += all_func_returns
  72 
  73 #
  74 #       Default build targets.
  75 #
  76 .KEEP_STATE:
  77 
  78 def:            $(DEF_DEPS)
  79 
  80 all:            $(ALL_DEPS)
  81 
  82 clean:          $(CLEAN_DEPS)
  83 
  84 clobber:        $(CLOBBER_DEPS)
  85 
  86 lint:           $(LINT_DEPS)
  87 


  47 #
  48 ALL_TARGET      = $(BINARY)
  49 LINT_TARGET     = $(MODULE).lint
  50 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  51 
  52 #
  53 # lint pass one enforcement and OS version
  54 #
  55 CFLAGS += $(CCVERBOSE)
  56 
  57 LDFLAGS += -dy -Nfs/sockfs -Nmisc/dls -Nmisc/mac -Ndrv/bpf -Ndrv/ip
  58 INC_PATH += -I$(UTSBASE)/common/inet/sockmods -I$(UTSBASE)/common/io/bpf
  59 
  60 #
  61 # For now, disable these lint checks; maintainers should endeavor
  62 # to investigate and remove these for maximum lint coverage.
  63 # Please do not carry these forward to new Makefiles.
  64 #
  65 LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW -erroff=E_BAD_PTR_CAST_ALIGN
  66 
  67 CERRWARN        += $(CNOWARN_UNINIT)
  68 CERRWARN        += -_gcc=-Wno-unused-label
  69 
  70 # needs work
  71 SMOFF += all_func_returns
  72 
  73 #
  74 #       Default build targets.
  75 #
  76 .KEEP_STATE:
  77 
  78 def:            $(DEF_DEPS)
  79 
  80 all:            $(ALL_DEPS)
  81 
  82 clean:          $(CLEAN_DEPS)
  83 
  84 clobber:        $(CLOBBER_DEPS)
  85 
  86 lint:           $(LINT_DEPS)
  87