projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement -Wunknown-pragmas.
[cparser]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
d1490f1
..
e9c4c30
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-18,7
+18,7
@@
ICC_CFLAGS = -O0 -g3 -std=c99 -Wall -Werror
ICC ?= true
GCCO1 ?= true
ICC ?= true
GCCO1 ?= true
-LFLAGS = $(FIRM_LIBS)
+LFLAGS
+
= $(FIRM_LIBS)
SOURCES := \
adt/hashset.c \
SOURCES := \
adt/hashset.c \
@@
-26,13
+26,17
@@
SOURCES := \
adt/xmalloc.c \
ast.c \
ast2firm.c \
adt/xmalloc.c \
ast.c \
ast2firm.c \
+ diagnostic.c \
+ format_check.c \
lexer.c \
main.c \
parser.c \
symbol_table.c \
token.c \
type.c \
lexer.c \
main.c \
parser.c \
symbol_table.c \
token.c \
type.c \
+ types.c \
type_hash.c \
type_hash.c \
+ warning.c \
write_fluffy.c \
driver/firm_cmdline.c \
driver/firm_timing.c \
write_fluffy.c \
driver/firm_cmdline.c \
driver/firm_timing.c \
@@
-54,7
+58,17
@@
ifeq ($(findstring $(MAKECMDGOALS), clean depend),)
-include .depend
endif
-include .depend
endif
+%.h:
+ @true
+
.depend: $(SOURCES)
.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
@echo "===> DEPEND"
@rm -f $@ && touch $@ && makedepend -p "$@ build/" -Y -f $@ -- $(CPPFLAGS) -- $(SOURCES) 2> /dev/null && rm $@.bak
@@
-75,15
+89,10
@@
build/adt build/driver:
build/%.o: %.c
@echo '===> CC $<'
#-$(Q)build/cparser $(CPPFLAGS) $(CFLAGS) -fsyntax-only $<
build/%.o: %.c
@echo '===> CC $<'
#-$(Q)build/cparser $(CPPFLAGS) $(CFLAGS) -fsyntax-only $<
-
#
$(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 $@
$(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'
clean:
@echo '===> CLEAN'
- $(Q)rm -rf build $(GOAL) .depend
+ $(Q)rm -rf build
/*
$(GOAL) .depend