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


  50 SRCS= $(OBJS.c:%.o=../%.c) $(OBJS.yl:%.o=%.c)
  51 
  52 SRCS.yl = $(OBJS.yl:%.o=%.c)
  53 CLEANFILES = $(SRCS.yl)  y.tab.h
  54 
  55 include ../../../Makefile.cmd
  56 
  57 POFILE= prex.po
  58 POFILES= $(OBJS.c:%.o=%.po)
  59 
  60 #YFLAGS=        -d -t -v
  61 YFLAGS=         -d
  62 LFLAGS=         -v
  63 # FOR normal makefile, uncomment the next line
  64 LDLIBS +=       -lgen -ltnfctl -lelf -lc
  65 
  66 CFLAGS +=       $(CCVERBOSE)
  67 CERRWARN +=     -_gcc=-Wno-unused-label
  68 CERRWARN +=     -_gcc=-Wno-unused-variable
  69 CERRWARN +=     -_gcc=-Wno-parentheses
  70 CERRWARN +=     -_gcc=-Wno-uninitialized
  71 
  72 # not linted
  73 SMATCH=off
  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
  88         $(YACC.y) ../prexgram.y
  89         mv y.tab.c $@
  90 




  50 SRCS= $(OBJS.c:%.o=../%.c) $(OBJS.yl:%.o=%.c)
  51 
  52 SRCS.yl = $(OBJS.yl:%.o=%.c)
  53 CLEANFILES = $(SRCS.yl)  y.tab.h
  54 
  55 include ../../../Makefile.cmd
  56 
  57 POFILE= prex.po
  58 POFILES= $(OBJS.c:%.o=%.po)
  59 
  60 #YFLAGS=        -d -t -v
  61 YFLAGS=         -d
  62 LFLAGS=         -v
  63 # FOR normal makefile, uncomment the next line
  64 LDLIBS +=       -lgen -ltnfctl -lelf -lc
  65 
  66 CFLAGS +=       $(CCVERBOSE)
  67 CERRWARN +=     -_gcc=-Wno-unused-label
  68 CERRWARN +=     -_gcc=-Wno-unused-variable
  69 CERRWARN +=     -_gcc=-Wno-parentheses
  70 CERRWARN +=     $(CNOWARN_UNINIT)
  71 
  72 # not linted
  73 SMATCH=off
  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
  88         $(YACC.y) ../prexgram.y
  89         mv y.tab.c $@
  90