locations
[ccc.git] / Makefile
index dfb7600..7cd4c61 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,14 @@
-CFLAGS:=-Wall -Wextra -Werror -std=c99 -pedantic-errors -D_XOPEN_SOURCE=700 -ggdb
-YFLAGS:=-d --locations# -Wcounterexamples
-LFLAGS:=-X
+CFLAGS+=-Wall -Wextra -std=c99 -pedantic -D_XOPEN_SOURCE=700 -ggdb
+YFLAGS+=-Wall -Wno-empty-rule -Wyacc -Wdangling-alias -d --locations
+LFLAGS+=-X
 
 OBJECTS:=scan.o parse.o ast.o util.o
 
 all: expr
-
+expr: $(OBJECTS)
 scan.c: scan.l y.tab.h
 y.tab.h: parse.c
 expr.c: y.tab.h
 
-expr: $(OBJECTS)
-
 clean:
        $(RM) $(OBJECTS) y.tab.h scan.c parse.c expr