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


  30 OBJECTS = cfga_fp.o cfga_rcm.o cfga_cs.o cfga_utils.o
  31 OBJECTS += cfga_cvt.o cfga_list.o cfga_rep.o
  32 
  33 # include library definitions
  34 include ../../../Makefile.lib
  35 
  36 SRCDIR =        ../common
  37 ROOTLIBDIR=     $(ROOT)/usr/lib/cfgadm
  38 ROOTLIBDIR64=   $(ROOTLIBDIR)/$(MACH64)
  39 
  40 LIBS=   $(DYNLIB)
  41 
  42 LINTFLAGS +=    -DDEBUG
  43 LINTFLAGS64 +=  -DDEBUG
  44 
  45 CFLAGS +=       $(CCVERBOSE)
  46 CFLAGS64 +=     $(CCVERBOSE)
  47 
  48 CERRWARN +=     -_gcc=-Wno-parentheses
  49 CERRWARN +=     -_gcc=-Wno-char-subscripts
  50 CERRWARN +=     -_gcc=-Wno-uninitialized
  51 CERRWARN +=     -_gcc=-Wno-switch
  52 CERRWARN +=     -_gcc=-Wno-address
  53 
  54 # not linted
  55 SMATCH=off
  56 
  57 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
  58 
  59 LINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY
  60 LINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
  61 LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
  62 LINTFLAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
  63 LINTFLAGS += -erroff=E_SEC_CREAT_WITHOUT_MODE
  64 LINTFLAGS64 += $(LINTFLAGS)
  65 
  66 LDLIBS +=       -lc -ldevice -ldevinfo -lrcm
  67 LDLIBS +=       -lHBAAPI -lgen
  68 
  69 MANIFEST=       devices-fc-fabric.xml
  70 ROOTMANIFESTDIR=        $(ROOT)/lib/svc/manifest/system/device




  30 OBJECTS = cfga_fp.o cfga_rcm.o cfga_cs.o cfga_utils.o
  31 OBJECTS += cfga_cvt.o cfga_list.o cfga_rep.o
  32 
  33 # include library definitions
  34 include ../../../Makefile.lib
  35 
  36 SRCDIR =        ../common
  37 ROOTLIBDIR=     $(ROOT)/usr/lib/cfgadm
  38 ROOTLIBDIR64=   $(ROOTLIBDIR)/$(MACH64)
  39 
  40 LIBS=   $(DYNLIB)
  41 
  42 LINTFLAGS +=    -DDEBUG
  43 LINTFLAGS64 +=  -DDEBUG
  44 
  45 CFLAGS +=       $(CCVERBOSE)
  46 CFLAGS64 +=     $(CCVERBOSE)
  47 
  48 CERRWARN +=     -_gcc=-Wno-parentheses
  49 CERRWARN +=     -_gcc=-Wno-char-subscripts
  50 CERRWARN +=     $(CNOWARN_UNINIT)
  51 CERRWARN +=     -_gcc=-Wno-switch
  52 CERRWARN +=     -_gcc=-Wno-address
  53 
  54 # not linted
  55 SMATCH=off
  56 
  57 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
  58 
  59 LINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY
  60 LINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
  61 LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
  62 LINTFLAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
  63 LINTFLAGS += -erroff=E_SEC_CREAT_WITHOUT_MODE
  64 LINTFLAGS64 += $(LINTFLAGS)
  65 
  66 LDLIBS +=       -lc -ldevice -ldevinfo -lrcm
  67 LDLIBS +=       -lHBAAPI -lgen
  68 
  69 MANIFEST=       devices-fc-fabric.xml
  70 ROOTMANIFESTDIR=        $(ROOT)/lib/svc/manifest/system/device