Print this page
10051 cw(1) shouldn't have to translate -g


  29 
  30 ELFCAP= $(SRC)/common/elfcap
  31 SGSRTCID=       $(SRC)/common/sgsrtcid
  32 
  33 LOBJS=  file.o elf_read32.o elf_read64.o magicutils.o
  34 OBJS=   $(LOBJS) elfcap.o
  35 XPG4OBJS= $(OBJS:%.o=xpg4_%.o)
  36 SRCS=   file.c elf_read.c magicutils.c $(ELFCAP)/elfcap.c
  37 
  38 include ../Makefile.cmd
  39 
  40 CSTD=   $(CSTD_GNU99)
  41 C99LMODE= -Xc99=%all
  42 
  43 CERRWARN += -_gcc=-Wno-uninitialized
  44 CERRWARN += -_gcc=-Wno-type-limits
  45 
  46 POFILE= file_all.po
  47 POFILES= $(SRCS:%.c=%.po)
  48 
  49 # The debug binary can be built using the flag
  50 # -D COPTFLAG=-g CGLOBALSTATIC=
  51 # This will avoid the multiple symbols definition error
  52 # for static global variables in elf_read32.o and elf_read64.o
  53 
  54 LDLIBS += -lelf
  55 CPPFLAGS += -I$(ELFCAP) -I$(SGSRTCID)
  56 $(XPG4) := CFLAGS += -DXPG4
  57 
  58 ROOTETCMAGIC= $(MAGIC:%=$(ROOTETC)/%)
  59 
  60 $(ROOTETCMAGIC) :=      FILEMODE =      $(LIBFILEMODE)
  61 
  62 .PARALLEL:      $(OBJS) $(XPG4OBJS) $(POFILES)
  63 
  64 .KEEP_STATE:
  65 
  66 all: $(PROG) $(XPG4) $(MAGIC)
  67 
  68 $(PROG) : $(OBJS)
  69         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  70         $(POST_PROCESS)




  29 
  30 ELFCAP= $(SRC)/common/elfcap
  31 SGSRTCID=       $(SRC)/common/sgsrtcid
  32 
  33 LOBJS=  file.o elf_read32.o elf_read64.o magicutils.o
  34 OBJS=   $(LOBJS) elfcap.o
  35 XPG4OBJS= $(OBJS:%.o=xpg4_%.o)
  36 SRCS=   file.c elf_read.c magicutils.c $(ELFCAP)/elfcap.c
  37 
  38 include ../Makefile.cmd
  39 
  40 CSTD=   $(CSTD_GNU99)
  41 C99LMODE= -Xc99=%all
  42 
  43 CERRWARN += -_gcc=-Wno-uninitialized
  44 CERRWARN += -_gcc=-Wno-type-limits
  45 
  46 POFILE= file_all.po
  47 POFILES= $(SRCS:%.c=%.po)
  48 
  49 # The debug binary can be built using the flags
  50 # SOURCEDEBUG=yes CGLOBALSTATIC=
  51 # This will avoid the multiple symbols definition error
  52 # for static global variables in elf_read32.o and elf_read64.o
  53 
  54 LDLIBS += -lelf
  55 CPPFLAGS += -I$(ELFCAP) -I$(SGSRTCID)
  56 $(XPG4) := CFLAGS += -DXPG4
  57 
  58 ROOTETCMAGIC= $(MAGIC:%=$(ROOTETC)/%)
  59 
  60 $(ROOTETCMAGIC) :=      FILEMODE =      $(LIBFILEMODE)
  61 
  62 .PARALLEL:      $(OBJS) $(XPG4OBJS) $(POFILES)
  63 
  64 .KEEP_STATE:
  65 
  66 all: $(PROG) $(XPG4) $(MAGIC)
  67 
  68 $(PROG) : $(OBJS)
  69         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  70         $(POST_PROCESS)