Print this page
9852 enable ld(1) guidance and deflib assertions for the illumos build


  31 LINTFILES = $(SRCS:%.c=%.ln)
  32 
  33 PROG = snmp-notify
  34 ROOTLIBFM = $(ROOT)/usr/lib/fm
  35 ROOTLIBNOTIFY = $(ROOT)/usr/lib/fm/notify
  36 ROOTPROG = $(ROOTLIBNOTIFY)/$(PROG)
  37 
  38 ROOTMANIFESTDIR = $(ROOTSVCSYSTEM)/fm
  39 ROOTMANIFEST = $(ROOTMANIFESTDIR)/$(PROG).xml
  40 ROOTNOTIFYPARAMS = $(ROOTMANIFESTDIR)/notify-params.xml
  41 $(ROOTMANIFEST) := FILEMODE = 0444
  42 $(ROOTNOTIFYPARAMS) := FILEMODE = 0444
  43 
  44 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
  45 CPPFLAGS += -I. -I../common -I../../../../../lib/fm/libfmnotify/common
  46 CSTD    = $(CSTD_GNU99)
  47 CFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST)
  48 LDLIBS += -L$(ROOT)/usr/lib/fm -lnvpair -lfmevent -lfmd_msg -lfmnotify \
  49         -lumem -lnetsnmp -lnetsnmpagent
  50 LDFLAGS += -R/usr/lib/fm

  51 LINTFLAGS += -mnu
  52 
  53 CERRWARN += -_gcc=-Wno-parentheses
  54 
  55 .NO_PARALLEL:
  56 .PARALLEL: $(OBJS) $(LINTFILES)
  57 
  58 all: $(PROG)
  59 
  60 $(PROG): $(OBJS)
  61         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  62         $(CTFMERGE) -L VERSION -o $@ $(OBJS)
  63         $(POST_PROCESS)
  64 
  65 %.o: ../common/%.c
  66         $(COMPILE.c) $<
  67         $(CTFCONVERT_O)
  68 
  69 %.o: %.c
  70         $(COMPILE.c) $<




  31 LINTFILES = $(SRCS:%.c=%.ln)
  32 
  33 PROG = snmp-notify
  34 ROOTLIBFM = $(ROOT)/usr/lib/fm
  35 ROOTLIBNOTIFY = $(ROOT)/usr/lib/fm/notify
  36 ROOTPROG = $(ROOTLIBNOTIFY)/$(PROG)
  37 
  38 ROOTMANIFESTDIR = $(ROOTSVCSYSTEM)/fm
  39 ROOTMANIFEST = $(ROOTMANIFESTDIR)/$(PROG).xml
  40 ROOTNOTIFYPARAMS = $(ROOTMANIFESTDIR)/notify-params.xml
  41 $(ROOTMANIFEST) := FILEMODE = 0444
  42 $(ROOTNOTIFYPARAMS) := FILEMODE = 0444
  43 
  44 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
  45 CPPFLAGS += -I. -I../common -I../../../../../lib/fm/libfmnotify/common
  46 CSTD    = $(CSTD_GNU99)
  47 CFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST)
  48 LDLIBS += -L$(ROOT)/usr/lib/fm -lnvpair -lfmevent -lfmd_msg -lfmnotify \
  49         -lumem -lnetsnmp -lnetsnmpagent
  50 LDFLAGS += -R/usr/lib/fm
  51 ADJUNCT_LIBS = libnetsnmp.so libnetsnmpagent.so
  52 LINTFLAGS += -mnu
  53 
  54 CERRWARN += -_gcc=-Wno-parentheses
  55 
  56 .NO_PARALLEL:
  57 .PARALLEL: $(OBJS) $(LINTFILES)
  58 
  59 all: $(PROG)
  60 
  61 $(PROG): $(OBJS)
  62         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  63         $(CTFMERGE) -L VERSION -o $@ $(OBJS)
  64         $(POST_PROCESS)
  65 
  66 %.o: ../common/%.c
  67         $(COMPILE.c) $<
  68         $(CTFCONVERT_O)
  69 
  70 %.o: %.c
  71         $(COMPILE.c) $<