projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- renamed is_empty to is_empty_range
[cparser]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
87b732d
..
1065cfe
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-43,6
+43,7
@@
SOURCES := \
type_hash.c \
warning.c \
write_fluffy.c \
type_hash.c \
warning.c \
write_fluffy.c \
+ write_caml.c \
driver/firm_cmdline.c \
driver/firm_timing.c \
driver/firm_codegen.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
-include .depend
endif
+config.h:
+ cp config.h.in $@
+
%.h:
@true
%.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 \
$(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 $@
@echo "===> MKDIR $@"
$(Q)mkdir -p $@
+builtins.h: builtins/builtins.c create_builtins_h.sh
+ @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 $@
build/cpb/%.o: %.c build/cparser
@echo '===> CPARSER $<'
$(Q)./build/cparser $(CPPFLAGS) -std=c99 -Wall -g3 -c $< -o $@
@@
-136,8
+148,8
@@
cparser.bootstrap2: $(CPARSEROS2)
build/%.o: %.c
@echo '===> CC $<'
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:
$(Q)$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
clean: