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


  41 
  42 OBJECTS=        $(OBJ)
  43 
  44 include ../../Makefile.lib
  45 
  46 #
  47 # Since our name doesn't start with "lib", Makefile.lib incorrectly
  48 # calculates LIBNAME. Therefore, we set it here.
  49 #
  50 LIBNAME=        passwdutil
  51 
  52 LIBS=           $(DYNLIB) $(LINTLIB)
  53 $(LINTLIB) :=   SRCS= $(SRCDIR)/$(LINTSRC)
  54 LDLIBS          += -lsldap -lnsl -lc
  55 
  56 CPPFLAGS        += -DENABLE_SUNOS_AGING -D_REENTRANT \
  57                    -I$(SRC)/lib/libsldap/common -I$(SRC)/lib/libnsl/include
  58 CFLAGS          += $(CCVERBOSE)
  59 
  60 CERRWARN        += -_gcc=-Wno-switch
  61 CERRWARN        += -_gcc=-Wno-uninitialized
  62 CERRWARN        += -_gcc=-Wno-unused-label
  63 
  64 # not linted
  65 SMATCH=off
  66 
  67 lint    :=      SRCS= $(OBJ:%.o=$(SRCDIR)/%.c)
  68 
  69 .KEEP_STATE:
  70 
  71 all:    $(LIBS)
  72 
  73 lint:   lintcheck
  74 
  75 include ../../Makefile.targ


  41 
  42 OBJECTS=        $(OBJ)
  43 
  44 include ../../Makefile.lib
  45 
  46 #
  47 # Since our name doesn't start with "lib", Makefile.lib incorrectly
  48 # calculates LIBNAME. Therefore, we set it here.
  49 #
  50 LIBNAME=        passwdutil
  51 
  52 LIBS=           $(DYNLIB) $(LINTLIB)
  53 $(LINTLIB) :=   SRCS= $(SRCDIR)/$(LINTSRC)
  54 LDLIBS          += -lsldap -lnsl -lc
  55 
  56 CPPFLAGS        += -DENABLE_SUNOS_AGING -D_REENTRANT \
  57                    -I$(SRC)/lib/libsldap/common -I$(SRC)/lib/libnsl/include
  58 CFLAGS          += $(CCVERBOSE)
  59 
  60 CERRWARN        += -_gcc=-Wno-switch
  61 CERRWARN        += $(CNOWARN_UNINIT)
  62 CERRWARN        += -_gcc=-Wno-unused-label
  63 
  64 # not linted
  65 SMATCH=off
  66 
  67 lint    :=      SRCS= $(OBJ:%.o=$(SRCDIR)/%.c)
  68 
  69 .KEEP_STATE:
  70 
  71 all:    $(LIBS)
  72 
  73 lint:   lintcheck
  74 
  75 include ../../Makefile.targ