X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile;h=3929e5dc3057f23ff76c26ad5099ca097ef4b544;hb=refs%2Fheads%2Falias;hp=39156e366a0fdd40076f752131f822d17e4d243c;hpb=8c1ce44eef629c923bd4eacbcc1da167e5581b53;p=libfirm diff --git a/Makefile b/Makefile index 39156e366..3929e5dc3 100644 --- a/Makefile +++ b/Makefile @@ -29,8 +29,10 @@ DLLEXT ?= .so CFLAGS_all = -std=c99 -fPIC -DHAVE_FIRM_REVISION_H CFLAGS_debug = $(CFLAGS_all) -O0 -g3 -DDEBUG_libfirm CFLAGS_profile = $(CFLAGS_all) -O3 -pg -DNDEBUG -fno-inline -LINKFLAGS_profile = -pg -CFLAGS_optimize = $(CFLAGS_all) -O3 -DNDEBUG +CFLAGS_coverage = $(CFLAGS_all) -O0 --coverage -DDEBUG_libfirm +LINKFLAGS_profile = -pg +LINKFLAGS_coverage = --coverage +CFLAGS_optimize = $(CFLAGS_all) -O3 -fomit-frame-pointer -DNDEBUG # General flags CFLAGS += $(CFLAGS_$(variant)) @@ -46,8 +48,11 @@ UNUSED := $(shell \ echo "$$REV" | cmp -s - firm_revision.h 2> /dev/null || echo "$$REV" > firm_revision.h \ ) -.PHONY: all all: firm +.PHONY: all + +# disable make builtin suffix rules +.SUFFIXES: # This rule is necessary so that make does not abort if headers get deleted # (the deleted header might still be referenced in a .d file) @@ -60,7 +65,7 @@ $(srcdir)config.h: $(Q)rm -f $@ $(Q)echo "#define libfirm_VERSION_MAJOR 1" >> $@ $(Q)echo "#define libfirm_VERSION_MICRO 0" >> $@ - $(Q)echo "#define libfirm_VERSION_MINOR 20" >> $@ + $(Q)echo "#define libfirm_VERSION_MINOR 21" >> $@ # libFirm libfirm_DIRS := \ @@ -96,7 +101,6 @@ firm: $(libfirm_dll) backends = amd64 arm ia32 sparc TEMPLATE EMITTER_GENERATOR = $(srcdir)ir/be/scripts/generate_emitter.pl -EMITTER_GENERATOR2 = $(srcdir)ir/be/scripts/generate_emitter_new.pl REGALLOC_IF_GENERATOR = $(srcdir)ir/be/scripts/generate_regalloc_if.pl OPCODES_GENERATOR = $(srcdir)ir/be/scripts/generate_new_opcodes.pl @@ -107,7 +111,7 @@ $(1)_GEN_HEADERS = $(1)_SPEC = ir/be/$(1)/$(1)_spec.pl -$$(srcdir)ir/be/$(1)/gen_$(1)_emitter.h $$(srcdir)ir/be/$(1)/gen_$(1)_emitter.c: $$($(1)_SPEC) $$(EMITTER_GENERATOR) $(EMITTER_GENERATOR2) +$$(srcdir)ir/be/$(1)/gen_$(1)_emitter.h $$(srcdir)ir/be/$(1)/gen_$(1)_emitter.c: $$($(1)_SPEC) $$(EMITTER_GENERATOR) @echo GEN $$@ $(Q)$$(EMITTER_GENERATOR) $$($(1)_SPEC) $$(srcdir)ir/be/$(1) $(1)_SOURCES += ir/be/$(1)/gen_$(1)_emitter.c