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


  41 PROG = $(MODULE:%=%.so)
  42 OBJS = $(MODULESRCS:%.c=%.o) $(SHAREDSRCS:%.c=%.o)
  43 
  44 #
  45 # Set ROOTPROG and ROOTCONF based on the values of MODULE, CLASS, and PLATFORMS
  46 # We expect these macros to be defined by the Makefile that is including us.
  47 #
  48 common_ROOTPROG = $(ROOT)/usr/lib/fm/topo/plugins/$(PROG)
  49 arch_ROOTPROG = $(ROOT)/usr/platform/$(ARCH)/lib/fm/topo/plugins/$(PROG)
  50 plat_ROOTPROG = $(PLATFORMS:%=$(ROOT)/usr/platform/%/lib/fm/topo/plugins/$(PROG))
  51 ROOTPROG = $($(CLASS)_ROOTPROG)
  52 
  53 common_ROOTCONF = $(ROOT)/usr/lib/fm/topo/plugins/$(CONF)
  54 arch_ROOTCONF = $(ROOT)/usr/platform/$(ARCH)/lib/fm/topo/plugins/$(CONF)
  55 plat_ROOTCONF = $(PLATFORMS:%=$(ROOT)/usr/platform/%/lib/fm/topo/plugins/$(CONF))
  56 ROOTCONF = $($(CLASS)_ROOTCONF)
  57 
  58 LINTFLAGS = -msux
  59 LINTFILES = $(MODULESRCS:%.c=%.ln) $(SHAREDSRCS:%.c=%.ln)
  60 
  61 CERRWARN += -_gcc=-Wno-uninitialized
  62 CERRWARN += -_gcc=-Wno-parentheses
  63 
  64 APIMAP = ../../../libtopo/common/topo_mod.map
  65 MAPFILES =              # use APIMAP instead
  66 
  67 CSTD  = $(CSTD_GNU99)
  68 CFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST) $(CC_PICFLAGS)
  69 CFLAGS += -G $(XREGSFLAG)
  70 
  71 CPPFLAGS += -I.
  72 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
  73 LDFLAGS += $(ZIGNORE) -M$(APIMAP)
  74 LDLIBS += -L$(ROOTLIBDIR)/fm -ltopo -lnvpair -lc
  75 DYNFLAGS += -R/usr/lib/fm
  76 
  77 all: $(PROG)
  78 
  79 .NO_PARALLEL:
  80 .PARALLEL: $(OBJS) $(LINTFILES)
  81 




  41 PROG = $(MODULE:%=%.so)
  42 OBJS = $(MODULESRCS:%.c=%.o) $(SHAREDSRCS:%.c=%.o)
  43 
  44 #
  45 # Set ROOTPROG and ROOTCONF based on the values of MODULE, CLASS, and PLATFORMS
  46 # We expect these macros to be defined by the Makefile that is including us.
  47 #
  48 common_ROOTPROG = $(ROOT)/usr/lib/fm/topo/plugins/$(PROG)
  49 arch_ROOTPROG = $(ROOT)/usr/platform/$(ARCH)/lib/fm/topo/plugins/$(PROG)
  50 plat_ROOTPROG = $(PLATFORMS:%=$(ROOT)/usr/platform/%/lib/fm/topo/plugins/$(PROG))
  51 ROOTPROG = $($(CLASS)_ROOTPROG)
  52 
  53 common_ROOTCONF = $(ROOT)/usr/lib/fm/topo/plugins/$(CONF)
  54 arch_ROOTCONF = $(ROOT)/usr/platform/$(ARCH)/lib/fm/topo/plugins/$(CONF)
  55 plat_ROOTCONF = $(PLATFORMS:%=$(ROOT)/usr/platform/%/lib/fm/topo/plugins/$(CONF))
  56 ROOTCONF = $($(CLASS)_ROOTCONF)
  57 
  58 LINTFLAGS = -msux
  59 LINTFILES = $(MODULESRCS:%.c=%.ln) $(SHAREDSRCS:%.c=%.ln)
  60 
  61 CERRWARN += $(CNOWARN_UNINIT)
  62 CERRWARN += -_gcc=-Wno-parentheses
  63 
  64 APIMAP = ../../../libtopo/common/topo_mod.map
  65 MAPFILES =              # use APIMAP instead
  66 
  67 CSTD  = $(CSTD_GNU99)
  68 CFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST) $(CC_PICFLAGS)
  69 CFLAGS += -G $(XREGSFLAG)
  70 
  71 CPPFLAGS += -I.
  72 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
  73 LDFLAGS += $(ZIGNORE) -M$(APIMAP)
  74 LDLIBS += -L$(ROOTLIBDIR)/fm -ltopo -lnvpair -lc
  75 DYNFLAGS += -R/usr/lib/fm
  76 
  77 all: $(PROG)
  78 
  79 .NO_PARALLEL:
  80 .PARALLEL: $(OBJS) $(LINTFILES)
  81