Overhaul conditional_to_firm(). Now it is a tad shorter/simpler and more friendly...
[cparser] / Makefile
index adecc3d..80ec0bb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,15 +7,14 @@ BUILDDIR ?= build
 FIRM_CFLAGS ?= `pkg-config --cflags libfirm`
 FIRM_LIBS   ?= `pkg-config --libs libfirm`
 
-CPPFLAGS  = -DHAVE_CONFIG_H -DFIRM_BACKEND
-CPPFLAGS += -I.
+CPPFLAGS  = -I.
 CPPFLAGS += $(FIRM_CFLAGS)
 
-CFLAGS += -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Werror -std=c99 -pedantic
+CFLAGS += -Wall -W -Wstrict-prototypes -Wmissing-prototypes -std=c99 -pedantic
 CFLAGS += -O0 -g3
 #CFLAGS += -O3 -march=pentium4 -fomit-frame-pointer -DNDEBUG
 #CFLAGS += -pg -O3 -fno-inline
-ICC_CFLAGS = -O0 -g3 -std=c99 -Wall -Werror
+ICC_CFLAGS = -O0 -g3 -std=c99 -Wall
 #LFLAGS += -pg
 ICC    ?= true
 GCCO1  ?= true
@@ -24,26 +23,26 @@ LFLAGS += $(FIRM_LIBS)
 
 SOURCES := \
        adt/hashset.c \
-       adt/obstack.c \
-       adt/obstack_printf.c \
        adt/strset.c \
        adt/xmalloc.c \
+       attribute.c \
+       parser.c \
        ast.c \
        ast2firm.c \
+       builtins.c \
        diagnostic.c \
        driver/firm_cmdline.c \
        driver/firm_codegen.c \
        driver/firm_opt.c \
        driver/firm_timing.c \
-       driver/gen_firm_asm.c \
        entity.c \
        entitymap.c \
        format_check.c \
        lexer.c \
        main.c \
        mangle.c \
-       parser.c \
        preprocessor.c \
+       printer.c \
        symbol_table.c \
        token.c \
        type.c \
@@ -121,11 +120,11 @@ $(DIRS):
        @echo "===> MKDIR $@"
        $(Q)mkdir -p $@
 
-builtins.h: builtins/builtins.c create_builtins_h.sh
+gen_builtins.h: builtins/builtins.c create_builtins_h.sh
        @echo '===> CREATE_BUILTINS $<'
-       $(Q)./create_builtins_h.sh > $@
+       $(Q)./create_builtins_h.sh "$<" > $@
 
-main.c: builtins.h
+main.c: gen_builtins.h
 
 build/cpb/%.o: %.c build/cparser
        @echo '===> CPARSER $<'
@@ -159,4 +158,4 @@ build/%.o: %.c
 
 clean:
        @echo '===> CLEAN'
-       $(Q)rm -rf builtins.h build/* $(GOAL) .depend
+       $(Q)rm -rf gen_builtins.h build/* $(GOAL) .depend