From 3db684b4c08c1be997370cf9befd41559886b857 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 12 Nov 2012 14:14:10 +0100 Subject: [PATCH] Makefile: cleanup, add -fomit-frame-pointer to optimize --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 0137cfc27..0fdb8dbce 100644 --- a/Makefile +++ b/Makefile @@ -29,10 +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 -CFLAGS_coverage = $(CFLAGS_all) -O0 -fprofile-arcs -ftest-coverage -DDEBUG_libfirm +CFLAGS_coverage = $(CFLAGS_all) -O0 --coverage -DDEBUG_libfirm LINKFLAGS_profile = -pg -LINKFLAGS_coverage = -fprofile-arcs -ftest-coverage -CFLAGS_optimize = $(CFLAGS_all) -O3 -DNDEBUG +LINKFLAGS_coverage = --coverage +CFLAGS_optimize = $(CFLAGS_all) -O3 -fomit-frame-pointer -DNDEBUG # General flags CFLAGS += $(CFLAGS_$(variant)) @@ -48,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) -- 2.20.1