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


  78 
  79 include $(SRC)/lib/Makefile.lib
  80 
  81 LIBS =          $(DYNLIB) $(LINTLIB)
  82 
  83 SRCDIR=         ../smb
  84 CMNDIR=         $(SRC)/common/smbclnt
  85 
  86 SRCS=           $(OBJ_LIB:%.o=$(SRCDIR)/%.c) \
  87                 $(OBJ_CMN:%.o=$(CMNDIR)/%.c)
  88 
  89 $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  90 
  91 CSTD=   $(CSTD_GNU99)
  92 
  93 LDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap -lscf -luuid
  94 
  95 # normal warnings...
  96 CFLAGS  +=      $(CCVERBOSE)
  97 
  98 CERRWARN +=     -_gcc=-Wno-uninitialized
  99 CERRWARN +=     -_gcc=-Wno-unused-variable
 100 
 101 # not linted
 102 SMATCH=off
 103 
 104 CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \
 105         -I$(SRCDIR) -I.. -I../netsmb \
 106         -I$(SRC)/uts/common \
 107         -I$(SRC)/common/smbclnt
 108 
 109 # This is pretty mature code, so let's just ignore these.
 110 LINTCHECKFLAGS += -erroff=E_INCONS_ARG_DECL2
 111 LINTCHECKFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2
 112 LINTCHECKFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
 113 LINTCHECKFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
 114 
 115 # Debugging
 116 ${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
 117 
 118 all:    $(LIBS)


  78 
  79 include $(SRC)/lib/Makefile.lib
  80 
  81 LIBS =          $(DYNLIB) $(LINTLIB)
  82 
  83 SRCDIR=         ../smb
  84 CMNDIR=         $(SRC)/common/smbclnt
  85 
  86 SRCS=           $(OBJ_LIB:%.o=$(SRCDIR)/%.c) \
  87                 $(OBJ_CMN:%.o=$(CMNDIR)/%.c)
  88 
  89 $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  90 
  91 CSTD=   $(CSTD_GNU99)
  92 
  93 LDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap -lscf -luuid
  94 
  95 # normal warnings...
  96 CFLAGS  +=      $(CCVERBOSE)
  97 
  98 CERRWARN +=     $(CNOWARN_UNINIT)
  99 CERRWARN +=     -_gcc=-Wno-unused-variable
 100 
 101 # not linted
 102 SMATCH=off
 103 
 104 CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \
 105         -I$(SRCDIR) -I.. -I../netsmb \
 106         -I$(SRC)/uts/common \
 107         -I$(SRC)/common/smbclnt
 108 
 109 # This is pretty mature code, so let's just ignore these.
 110 LINTCHECKFLAGS += -erroff=E_INCONS_ARG_DECL2
 111 LINTCHECKFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2
 112 LINTCHECKFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
 113 LINTCHECKFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
 114 
 115 # Debugging
 116 ${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
 117 
 118 all:    $(LIBS)