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


  51 #
  52 #       Define targets
  53 #
  54 ALL_TARGET      = $(BINARY)
  55 LINT_TARGET     = $(MODULE).lint
  56 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  57 
  58 #
  59 #       Overrides.
  60 #
  61 MODSTUBS_DIR    = $(OBJS_DIR)
  62 $(MODSTUBS_O)   := AS_CPPFLAGS += -DSMBFS_MODULE
  63 CLEANFILES      += $(MODSTUBS_O)
  64 INC_PATH        += -I$(UTSBASE)/common/fs/smbclnt
  65 INC_PATH        += -I$(COMMONBASE)/smbclnt
  66 LDFLAGS         += -dy -Ndrv/nsmb
  67 
  68 # Until CR 4994570 is fixed...
  69 LINTTAGS        += -erroff=E_BAD_FORMAT_ARG_TYPE2
  70 CERRWARN        += -_gcc=-Wno-parentheses
  71 CERRWARN        += -_gcc=-Wno-uninitialized
  72 
  73 # The mb_put/md_get functions are intentionally used with and without
  74 # return value checks, so filter those out like LGREP.2 does.
  75 LGREP.nsmb =    egrep -v ' ignored: (mb_init|mb_put|md_get)'
  76 LTAIL   +=      2>&1 | $(LGREP.2) | $(LGREP.nsmb) || true
  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)


  51 #
  52 #       Define targets
  53 #
  54 ALL_TARGET      = $(BINARY)
  55 LINT_TARGET     = $(MODULE).lint
  56 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  57 
  58 #
  59 #       Overrides.
  60 #
  61 MODSTUBS_DIR    = $(OBJS_DIR)
  62 $(MODSTUBS_O)   := AS_CPPFLAGS += -DSMBFS_MODULE
  63 CLEANFILES      += $(MODSTUBS_O)
  64 INC_PATH        += -I$(UTSBASE)/common/fs/smbclnt
  65 INC_PATH        += -I$(COMMONBASE)/smbclnt
  66 LDFLAGS         += -dy -Ndrv/nsmb
  67 
  68 # Until CR 4994570 is fixed...
  69 LINTTAGS        += -erroff=E_BAD_FORMAT_ARG_TYPE2
  70 CERRWARN        += -_gcc=-Wno-parentheses
  71 CERRWARN        += $(CNOWARN_UNINIT)
  72 
  73 # The mb_put/md_get functions are intentionally used with and without
  74 # return value checks, so filter those out like LGREP.2 does.
  75 LGREP.nsmb =    egrep -v ' ignored: (mb_init|mb_put|md_get)'
  76 LTAIL   +=      2>&1 | $(LGREP.2) | $(LGREP.nsmb) || true
  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)