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


  24 #
  25 
  26 .KEEP_STATE:
  27 .SUFFIXES:
  28 
  29 SRCS += ipmitopo.c
  30 OBJS = $(SRCS:%.c=%.o)
  31 LINTFILES = $(SRCS:%.c=%.ln)
  32 
  33 PROG = ipmitopo
  34 ROOTLIBFM = $(ROOT)/usr/lib/fm
  35 ROOTLIBFMD = $(ROOT)/usr/lib/fm/fmd
  36 ROOTPROG = $(ROOTLIBFMD)/$(PROG)
  37 
  38 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
  39 CPPFLAGS += -I. -I../common
  40 CFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST)
  41 LDLIBS += -lipmi -lnvpair
  42 LINTFLAGS += -mnu
  43 
  44 CERRWARN += -_gcc=-Wno-uninitialized
  45 
  46 .NO_PARALLEL:
  47 .PARALLEL: $(OBJS) $(LINTFILES)
  48 
  49 all: $(PROG)
  50 
  51 $(PROG): $(OBJS)
  52         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  53         $(CTFMERGE) -L VERSION -o $@ $(OBJS)
  54         $(POST_PROCESS)
  55 
  56 %.o: ../common/%.c
  57         $(COMPILE.c) $<
  58         $(CTFCONVERT_O)
  59 
  60 %.o: %.c
  61         $(COMPILE.c) $<
  62         $(CTFCONVERT_O)
  63 
  64 clean:


  24 #
  25 
  26 .KEEP_STATE:
  27 .SUFFIXES:
  28 
  29 SRCS += ipmitopo.c
  30 OBJS = $(SRCS:%.c=%.o)
  31 LINTFILES = $(SRCS:%.c=%.ln)
  32 
  33 PROG = ipmitopo
  34 ROOTLIBFM = $(ROOT)/usr/lib/fm
  35 ROOTLIBFMD = $(ROOT)/usr/lib/fm/fmd
  36 ROOTPROG = $(ROOTLIBFMD)/$(PROG)
  37 
  38 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
  39 CPPFLAGS += -I. -I../common
  40 CFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST)
  41 LDLIBS += -lipmi -lnvpair
  42 LINTFLAGS += -mnu
  43 
  44 CERRWARN += $(CNOWARN_UNINIT)
  45 
  46 .NO_PARALLEL:
  47 .PARALLEL: $(OBJS) $(LINTFILES)
  48 
  49 all: $(PROG)
  50 
  51 $(PROG): $(OBJS)
  52         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  53         $(CTFMERGE) -L VERSION -o $@ $(OBJS)
  54         $(POST_PROCESS)
  55 
  56 %.o: ../common/%.c
  57         $(COMPILE.c) $<
  58         $(CTFCONVERT_O)
  59 
  60 %.o: %.c
  61         $(COMPILE.c) $<
  62         $(CTFCONVERT_O)
  63 
  64 clean: