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


  46 OBJS.yl=        prexgram.o      \
  47                 prexlex.o
  48 
  49 OBJS=            $(OBJS.yl) $(OBJS.c)
  50 
  51 SRCS= $(OBJS.c:%.o=../%.c) $(OBJS.yl:%.o=%.c)
  52 
  53 SRCS.yl = $(OBJS.yl:%.o=%.c)
  54 CLEANFILES = $(SRCS.yl)  y.tab.h
  55 
  56 include ../../../Makefile.cmd
  57 
  58 POFILE= prex.po
  59 POFILES= $(OBJS.c:%.o=%.po)
  60 
  61 #YFLAGS=        -d -t -v
  62 YFLAGS=         -d
  63 LFLAGS=         -v
  64 # FOR normal makefile, uncomment the next line
  65 LDLIBS +=       -lgen -ltnfctl -lelf -lc
  66 # Uncomment the following line for a debug build
  67 # COPTFLAG =    -g -DDEBUG
  68 
  69 CFLAGS +=       $(CCVERBOSE)
  70 CERRWARN +=     -_gcc=-Wno-unused-label
  71 CERRWARN +=     -_gcc=-Wno-unused-variable
  72 CERRWARN +=     -_gcc=-Wno-parentheses
  73 CERRWARN +=     -_gcc=-Wno-uninitialized
  74 
  75 .KEEP_STATE:
  76 
  77 .PARALLEL: $(OBJS)
  78 
  79 all: $(PROG)
  80 
  81 #OBJS can be built in parallel after all .c (and y.tab.h) are properly built
  82 $(PROG): $(SRCS.yl) .WAIT $(OBJS)
  83         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  84         $(POST_PROCESS)
  85 
  86 #This also builds y.tab.h
  87 prexgram.c: ../prexgram.y




  46 OBJS.yl=        prexgram.o      \
  47                 prexlex.o
  48 
  49 OBJS=            $(OBJS.yl) $(OBJS.c)
  50 
  51 SRCS= $(OBJS.c:%.o=../%.c) $(OBJS.yl:%.o=%.c)
  52 
  53 SRCS.yl = $(OBJS.yl:%.o=%.c)
  54 CLEANFILES = $(SRCS.yl)  y.tab.h
  55 
  56 include ../../../Makefile.cmd
  57 
  58 POFILE= prex.po
  59 POFILES= $(OBJS.c:%.o=%.po)
  60 
  61 #YFLAGS=        -d -t -v
  62 YFLAGS=         -d
  63 LFLAGS=         -v
  64 # FOR normal makefile, uncomment the next line
  65 LDLIBS +=       -lgen -ltnfctl -lelf -lc


  66 
  67 CFLAGS +=       $(CCVERBOSE)
  68 CERRWARN +=     -_gcc=-Wno-unused-label
  69 CERRWARN +=     -_gcc=-Wno-unused-variable
  70 CERRWARN +=     -_gcc=-Wno-parentheses
  71 CERRWARN +=     -_gcc=-Wno-uninitialized
  72 
  73 .KEEP_STATE:
  74 
  75 .PARALLEL: $(OBJS)
  76 
  77 all: $(PROG)
  78 
  79 #OBJS can be built in parallel after all .c (and y.tab.h) are properly built
  80 $(PROG): $(SRCS.yl) .WAIT $(OBJS)
  81         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  82         $(POST_PROCESS)
  83 
  84 #This also builds y.tab.h
  85 prexgram.c: ../prexgram.y