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


  45 
  46 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
  47 CPPFLAGS += -I$(SRC)/common/ctf -I../../../common -DCTF_OLD_VERSIONS -D_MDB \
  48     -Dvsnprintf=ctf_vsnprintf -Dassfail=kmdb_prom_assfail
  49 
  50 CSTD = $(CSTD_GNU99)
  51 C99LMODE = -Xc99=%all
  52 
  53 #
  54 # kmdb is a kernel module, so we'll use the kernel's build flags.
  55 CFLAGS64 += $(STAND_FLAGS_64)
  56 
  57 LDFLAGS = $(ZNOVERSION) $(BREDUCE) -M $(MAPFILE) -dy -r
  58 
  59 LIB = libstandctf.so
  60 OBJS = $(CTF_COMMON_SRCS:%.c=%.o) $(CTF_STUB_SRCS:%.c=%.o)
  61 LINTFILES = $(OBJS:%.o=%.ln)
  62 
  63 LINTFLAGS += -n -errtags=yes
  64 
  65 CERRWARN += -_gcc=-Wno-uninitialized
  66 
  67 .NO_PARALLEL:
  68 .PARALLEL: $(OBJS)
  69 
  70 install all: $(LIB)
  71 
  72 $(LIB): $(OBJS) $(MAPFILE)
  73         $(LD) $(LDFLAGS) -o $@ $(OBJS)
  74 
  75 clobber clean:
  76         $(RM) $(LIB) $(OBJS) $(LINTFILES)
  77 
  78 lint: $(LINTFILES)
  79         $(LINT) $(LINTFLAGS) $(LINTFILES)
  80 
  81 #
  82 # Dynamic rules for object construction
  83 #
  84 
  85 %.o: ../../../common/libstandctf/%.c


  45 
  46 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
  47 CPPFLAGS += -I$(SRC)/common/ctf -I../../../common -DCTF_OLD_VERSIONS -D_MDB \
  48     -Dvsnprintf=ctf_vsnprintf -Dassfail=kmdb_prom_assfail
  49 
  50 CSTD = $(CSTD_GNU99)
  51 C99LMODE = -Xc99=%all
  52 
  53 #
  54 # kmdb is a kernel module, so we'll use the kernel's build flags.
  55 CFLAGS64 += $(STAND_FLAGS_64)
  56 
  57 LDFLAGS = $(ZNOVERSION) $(BREDUCE) -M $(MAPFILE) -dy -r
  58 
  59 LIB = libstandctf.so
  60 OBJS = $(CTF_COMMON_SRCS:%.c=%.o) $(CTF_STUB_SRCS:%.c=%.o)
  61 LINTFILES = $(OBJS:%.o=%.ln)
  62 
  63 LINTFLAGS += -n -errtags=yes
  64 
  65 CERRWARN += $(CNOWARN_UNINIT)
  66 
  67 .NO_PARALLEL:
  68 .PARALLEL: $(OBJS)
  69 
  70 install all: $(LIB)
  71 
  72 $(LIB): $(OBJS) $(MAPFILE)
  73         $(LD) $(LDFLAGS) -o $@ $(OBJS)
  74 
  75 clobber clean:
  76         $(RM) $(LIB) $(OBJS) $(LINTFILES)
  77 
  78 lint: $(LINTFILES)
  79         $(LINT) $(LINTFLAGS) $(LINTFILES)
  80 
  81 #
  82 # Dynamic rules for object construction
  83 #
  84 
  85 %.o: ../../../common/libstandctf/%.c