X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=inline;f=Makefile;h=57d9e3a980ca23bae301ab1d88e79dbf4a372ccd;hb=869fdffd7484523e431a8959b68eb5fce05f55ee;hp=450950e5cb01b3b2f5c85d87028dfbb793fa29c3;hpb=b262809bea31df46258c77337352cf412f3f250b;p=cparser diff --git a/Makefile b/Makefile index 450950e..57d9e3a 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 \ @@ -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: