add an is_constant_expression, only try to fold expressions that are really constant...
[cparser] / Makefile
index d1490f1..2e85c3b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ ICC_CFLAGS = -O0 -g3 -std=c99 -Wall -Werror
 ICC    ?= true
 GCCO1  ?= true
 
-LFLAGS = $(FIRM_LIBS)
+LFLAGS += $(FIRM_LIBS)
 
 SOURCES := \
        adt/hashset.c \
@@ -54,7 +54,17 @@ ifeq ($(findstring $(MAKECMDGOALS), clean depend),)
 -include .depend
 endif
 
+%.h:
+       @true
+
 .depend: $(SOURCES)
+       @echo "#define cparser_REVISION \"`svnversion -n .`\"" > .revision.h
+       $(Q)if diff -Nq .revision.h revision.h > /dev/null; then \
+             rm .revision.h;                                    \
+           else                                                 \
+             echo "===> UPDATING revision.h";                   \
+             mv .revision.h revision.h;                         \
+           fi
        @echo "===> DEPEND"
        @rm -f $@ && touch $@ && makedepend -p "$@ build/" -Y -f $@ -- $(CPPFLAGS) -- $(SOURCES) 2> /dev/null && rm $@.bak
 
@@ -79,11 +89,6 @@ build/%.o: %.c
 #      $(Q)$(GCCO1) $(CPPFLAGS) $(CFLAGS) -O1 -c $< -o $@
        $(Q)$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
 
-revision.h:
-       @echo "#define cparser_REVISION \"`svnversion -n .`\"" > .revision.h
-       $(Q)[ -n "`diff -Nq .revision.h revision.h`" ] && echo "===> Updating revision.h" && cp .revision.h revision.h
-       $(Q)rm .revision.h
-
 clean:
        @echo '===> CLEAN'
        $(Q)rm -rf build $(GOAL) .depend