X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=34b231fca858a3986b503553a7109885900f3658;hb=9f6f0f7cf63b5f2f4b53d99f85577abd7980cbc0;hp=87b732d9a21f793566329e5b71c66aec53371519;hpb=abb8fbf8f749167dabff786e43009e2a509f43e8;p=cparser diff --git a/Makefile b/Makefile index 87b732d..34b231f 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,7 @@ SOURCES := \ type_hash.c \ warning.c \ write_fluffy.c \ + write_caml.c \ driver/firm_cmdline.c \ driver/firm_timing.c \ driver/firm_codegen.c \ @@ -67,11 +68,16 @@ ifeq ($(findstring $(MAKECMDGOALS), clean depend),) -include .depend endif +config.h: + cp config.h.in $@ + %.h: @true -.depend: $(SOURCES) - @echo "#define cparser_REVISION \"`svnversion -n .`\"" > .revision.h +REVISION ?= $(shell svnversion -n .) + +.depend: config.h $(SOURCES) + @echo "#define cparser_REVISION \"$(REVISION)\"" > .revision.h $(Q)if diff -Nq .revision.h revision.h > /dev/null; then \ rm .revision.h; \ else \ @@ -110,6 +116,12 @@ $(DIRS): @echo "===> MKDIR $@" $(Q)mkdir -p $@ +builtins.h: builtins/builtins.c + @echo '===> CREATE_BUILTINS $<' + $(Q)./create_builtins_h.sh > $@ + +main.c: builtins.h + build/cpb/%.o: %.c build/cparser @echo '===> CPARSER $<' $(Q)./build/cparser $(CPPFLAGS) -std=c99 -Wall -g3 -c $< -o $@