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


  42 SRCS = $(MYOBJS:%.o=%.c)
  43 
  44 include ../../Makefile.cmd
  45 include ../../Makefile.ctf
  46 
  47 NATIVE_BUILD=$(POUND_SIGN)
  48 $(NATIVE_BUILD)PROG = $(MYPROG:%=%-native)
  49 $(NATIVE_BUILD)OBJS = $(MYOBJS:%.o=%-native.o)
  50 
  51 ROOTCMDDIR=     $(ROOT)/lib/svc/bin
  52 
  53 MYCPPFLAGS = -I. -I../common -I../../../common/svc \
  54         -I$(ROOT)/usr/include/sqlite-sys -D_REENTRANT
  55 CPPFLAGS += $(MYCPPFLAGS)
  56 CFLAGS  += $(CCVERBOSE)
  57 CERRWARN += -_gcc=-Wno-parentheses
  58 CERRWARN += -_gcc=-Wno-type-limits
  59 CERRWARN += -_gcc=-Wno-unused-label
  60 CERRWARN += -_gcc=-Wno-unused-variable
  61 CERRWARN += -_gcc=-Wno-unused-function
  62 CERRWARN += -_gcc=-Wno-uninitialized
  63 MYLDLIBS = -lumem -luutil
  64 LDLIBS  += -lsecdb -lbsm $(MYLDLIBS)
  65 LINTFLAGS += -errtags -erroff=E_BAD_FORMAT_ARG_TYPE2 -erroff=E_NAME_DEF_NOT_USED2
  66 
  67 CLOBBERFILES += $(MYPROG:%=%-native)
  68 
  69 LIBUUTIL        = $(SRC)/lib/libuutil
  70 LIBSCF          = $(SRC)/lib/libscf
  71 
  72 SCRIPTFILE      = restore_repository
  73 ROOTSCRIPTFILE  = $(ROOTCMDDIR)/$(SCRIPTFILE)
  74 
  75 #
  76 # Native variant (used in ../seed)
  77 #
  78 $(NATIVE_BUILD)CC =     $(NATIVECC)
  79 $(NATIVE_BUILD)LD =     $(NATIVELD)
  80 $(NATIVE_BUILD)CFLAGS = $(NATIVE_CFLAGS)
  81 $(NATIVE_BUILD)CPPFLAGS = $(MYCPPFLAGS) -I$(LIBUUTIL)/common -I$(LIBSCF)/inc
  82 $(NATIVE_BUILD)CPPFLAGS += -DNATIVE_BUILD




  42 SRCS = $(MYOBJS:%.o=%.c)
  43 
  44 include ../../Makefile.cmd
  45 include ../../Makefile.ctf
  46 
  47 NATIVE_BUILD=$(POUND_SIGN)
  48 $(NATIVE_BUILD)PROG = $(MYPROG:%=%-native)
  49 $(NATIVE_BUILD)OBJS = $(MYOBJS:%.o=%-native.o)
  50 
  51 ROOTCMDDIR=     $(ROOT)/lib/svc/bin
  52 
  53 MYCPPFLAGS = -I. -I../common -I../../../common/svc \
  54         -I$(ROOT)/usr/include/sqlite-sys -D_REENTRANT
  55 CPPFLAGS += $(MYCPPFLAGS)
  56 CFLAGS  += $(CCVERBOSE)
  57 CERRWARN += -_gcc=-Wno-parentheses
  58 CERRWARN += -_gcc=-Wno-type-limits
  59 CERRWARN += -_gcc=-Wno-unused-label
  60 CERRWARN += -_gcc=-Wno-unused-variable
  61 CERRWARN += -_gcc=-Wno-unused-function
  62 CERRWARN += $(CNOWARN_UNINIT)
  63 MYLDLIBS = -lumem -luutil
  64 LDLIBS  += -lsecdb -lbsm $(MYLDLIBS)
  65 LINTFLAGS += -errtags -erroff=E_BAD_FORMAT_ARG_TYPE2 -erroff=E_NAME_DEF_NOT_USED2
  66 
  67 CLOBBERFILES += $(MYPROG:%=%-native)
  68 
  69 LIBUUTIL        = $(SRC)/lib/libuutil
  70 LIBSCF          = $(SRC)/lib/libscf
  71 
  72 SCRIPTFILE      = restore_repository
  73 ROOTSCRIPTFILE  = $(ROOTCMDDIR)/$(SCRIPTFILE)
  74 
  75 #
  76 # Native variant (used in ../seed)
  77 #
  78 $(NATIVE_BUILD)CC =     $(NATIVECC)
  79 $(NATIVE_BUILD)LD =     $(NATIVELD)
  80 $(NATIVE_BUILD)CFLAGS = $(NATIVE_CFLAGS)
  81 $(NATIVE_BUILD)CPPFLAGS = $(MYCPPFLAGS) -I$(LIBUUTIL)/common -I$(LIBSCF)/inc
  82 $(NATIVE_BUILD)CPPFLAGS += -DNATIVE_BUILD