chiark / gitweb /
safety: movpos: new function movposcomb_feature_posn
[trains.git] / cprogs.make
1 OPTIMISE= -O2
2 WERROR= -Werror
3 CFLAGS= $(CPPFLAGS) -D_GNU_SOURCE \
4         -Wall -Wwrite-strings -Wpointer-arith -Wmissing-declarations \
5         -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes \
6         $(WERROR) \
7         -g $(OPTIMISE)
8 CPPFLAGS=
9 LINK=           $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ $(LIBS)
10
11 LEX=flex
12 BISON=bison
13
14 FLEXCFLAGS=     -Wno-unused -Wno-missing-declarations -Wno-missing-prototypes
15
16 %.o:    %.c $(AUTOINCS)
17         $(CC) $(CFLAGS) $(SPECIAL_CFLAGS_$*) -MMD -o $@ -c $<
18
19 %.c:    %.y
20         $(BISON) -o $@ $<
21
22 ETAGS_SRCS += $(wildcard *.[ch])
23
24 TAGS:   $(ETAGS_SRCS)
25         etags $^