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


  60 
  61 NATIVE_BUILD=$(POUND_SIGN)
  62 $(NATIVE_BUILD)NOT_NATIVE=$(POUND_SIGN)
  63 
  64 $(NATIVE_BUILD)PROG = $(MYPROG:%=%-native)
  65 $(NATIVE_BUILD)OBJS = $(MYOBJS:%.o=%-native.o)
  66 
  67 # svccfg has a name clash with main() and libl.so.1.  However, svccfg must
  68 # still export a number of "yy*" (libl) interfaces.  Reduce all other symbols
  69 # to local scope.
  70 MAPFILES +=     $(MAPFILE.LEX) $(MAPFILE.NGB)
  71 MAPOPTS =       $(MAPFILES:%=-M%)
  72 
  73 MYCPPFLAGS =    -I ../common -I$(ADJUNCT_PROTO)/usr/include/libxml2
  74 CPPFLAGS +=     $(MYCPPFLAGS)
  75 LDFLAGS +=      $(MAPOPTS)
  76 
  77 CERRWARN +=     -_gcc=-Wno-unused-label
  78 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  79 CERRWARN +=     -_gcc=-Wno-switch
  80 CERRWARN +=     -_gcc=-Wno-uninitialized
  81 CERRWARN +=     -_gcc=-Wno-unused-variable
  82 CERRWARN +=     -_gcc=-Wno-parentheses
  83 
  84 # not linted
  85 SMATCH=off
  86 
  87 LFLAGS = -t
  88 YFLAGS = -d
  89 
  90 CLOBBERFILES += svccfg_lex.c svccfg_grammar.c svccfg_grammar.h \
  91     $(MYPROG:%=%-native)
  92 
  93 SVCCFG_EXTRA_LIBS = -lxml2 -lscf -ll -luutil -lumem -lmd5 -lnvpair
  94 $(NOT_NATIVE)SVCCFG_EXTRA_LIBS += -ltecla
  95 
  96 LIBSCF          = $(SRC)/lib/libscf
  97 LIBTECLA        = $(SRC)/lib/libtecla           # just for the header
  98 LIBUUTIL        = $(SRC)/lib/libuutil
  99 
 100 lint := LINTFLAGS = -mux




  60 
  61 NATIVE_BUILD=$(POUND_SIGN)
  62 $(NATIVE_BUILD)NOT_NATIVE=$(POUND_SIGN)
  63 
  64 $(NATIVE_BUILD)PROG = $(MYPROG:%=%-native)
  65 $(NATIVE_BUILD)OBJS = $(MYOBJS:%.o=%-native.o)
  66 
  67 # svccfg has a name clash with main() and libl.so.1.  However, svccfg must
  68 # still export a number of "yy*" (libl) interfaces.  Reduce all other symbols
  69 # to local scope.
  70 MAPFILES +=     $(MAPFILE.LEX) $(MAPFILE.NGB)
  71 MAPOPTS =       $(MAPFILES:%=-M%)
  72 
  73 MYCPPFLAGS =    -I ../common -I$(ADJUNCT_PROTO)/usr/include/libxml2
  74 CPPFLAGS +=     $(MYCPPFLAGS)
  75 LDFLAGS +=      $(MAPOPTS)
  76 
  77 CERRWARN +=     -_gcc=-Wno-unused-label
  78 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  79 CERRWARN +=     -_gcc=-Wno-switch
  80 CERRWARN +=     $(CNOWARN_UNINIT)
  81 CERRWARN +=     -_gcc=-Wno-unused-variable
  82 CERRWARN +=     -_gcc=-Wno-parentheses
  83 
  84 # not linted
  85 SMATCH=off
  86 
  87 LFLAGS = -t
  88 YFLAGS = -d
  89 
  90 CLOBBERFILES += svccfg_lex.c svccfg_grammar.c svccfg_grammar.h \
  91     $(MYPROG:%=%-native)
  92 
  93 SVCCFG_EXTRA_LIBS = -lxml2 -lscf -ll -luutil -lumem -lmd5 -lnvpair
  94 $(NOT_NATIVE)SVCCFG_EXTRA_LIBS += -ltecla
  95 
  96 LIBSCF          = $(SRC)/lib/libscf
  97 LIBTECLA        = $(SRC)/lib/libtecla           # just for the header
  98 LIBUUTIL        = $(SRC)/lib/libuutil
  99 
 100 lint := LINTFLAGS = -mux