X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=8a75c20b53c95b55553584085a742bcd5c3fd8ce;hb=b63886b188eeedf36d8df12df3fe1f5fd90818d4;hp=450950e5cb01b3b2f5c85d87028dfbb793fa29c3;hpb=b262809bea31df46258c77337352cf412f3f250b;p=cparser diff --git a/Makefile b/Makefile index 450950e..8a75c20 100644 --- a/Makefile +++ b/Makefile @@ -29,19 +29,21 @@ SOURCES := \ adt/obstack_printf.c \ adt/xmalloc.c \ ast.c \ - ast2firm.c \ diagnostic.c \ entitymap.c \ format_check.c \ lexer.c \ main.c \ - parser.c \ + mangle.c \ + walk_statements.c \ symbol_table.c \ token.c \ type.c \ types.c \ type_hash.c \ warning.c \ + parser.c \ + ast2firm.c \ write_fluffy.c \ write_caml.c \ driver/firm_cmdline.c \ @@ -49,6 +51,7 @@ SOURCES := \ driver/firm_codegen.c \ driver/firm_opt.c \ driver/gen_firm_asm.c \ + preprocessor.c OBJECTS = $(SOURCES:%.c=build/%.o) @@ -68,11 +71,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 \ @@ -85,7 +93,7 @@ endif DIRS = build build/adt build/driver build/cpb build/cpb/adt build/cpb/driver build/cpb2 build/cpb2/adt build/cpb2/driver build/cpbe build/cpbe/adt build/cpbe/driver UNUSED := $(shell mkdir -p $(DIRS)) -$(GOAL): $(OBJECTS) +$(GOAL): $(OBJECTS) $(LIBFIRM_FILE) @echo "===> LD $@" $(Q)$(CC) $(OBJECTS) $(LFLAGS) -o $(GOAL) @@ -111,7 +119,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 +151,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: