X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile;h=1065cfe7f0137a359a20101bba1026e82f83bfc2;hb=8d355c083c902b757064207aa74646e59fe1b39f;hp=450950e5cb01b3b2f5c85d87028dfbb793fa29c3;hpb=b262809bea31df46258c77337352cf412f3f250b;p=cparser diff --git a/Makefile b/Makefile index 450950e..1065cfe 100644 --- a/Makefile +++ b/Makefile @@ -68,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 \ @@ -111,7 +116,7 @@ $(DIRS): @echo "===> MKDIR $@" $(Q)mkdir -p $@ -builtins.h: builtins/builtins.c +builtins.h: builtins/builtins.c create_builtins_h.sh @echo '===> CREATE_BUILTINS $<' $(Q)./create_builtins_h.sh > $@ @@ -143,8 +148,8 @@ cparser.bootstrap2: $(CPARSEROS2) build/%.o: %.c @echo '===> CC $<' - $(Q)$(ICC) $(CPPFLAGS) $(ICC_CFLAGS) -c $< -o $@ - $(Q)$(GCCO1) $(CPPFLAGS) $(CFLAGS) -O1 -c $< -o $@ +#$(Q)$(ICC) $(CPPFLAGS) $(ICC_CFLAGS) -c $< -o $@ +#$(Q)$(GCCO1) $(CPPFLAGS) $(CFLAGS) -O1 -c $< -o $@ $(Q)$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ clean: