diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-11-16 16:57:18 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-11-16 16:57:18 +0000 |
commit | 96e0cea2e3cf39a0ed3d92aa0b69e5acebb93c22 (patch) | |
tree | 329ac7c02c02ba0123a3c8e8cb6dd54d6bafb48f | |
parent | 8b0a0bfca0ba5d6fa772cc8ed92851494d15103d (diff) |
streamlined global debug flags and added -fno-inline-functions for valgrind
svn path=/trunk/; revision=15771
-rw-r--r-- | packages/darwin_app/Makefile | 7 | ||||
-rwxr-xr-x | packages/linux_make/Makefile | 5 | ||||
-rwxr-xr-x | packages/win32_inno/Makefile | 4 |
3 files changed, 11 insertions, 5 deletions
diff --git a/packages/darwin_app/Makefile b/packages/darwin_app/Makefile index 634ce04b..22392ace 100644 --- a/packages/darwin_app/Makefile +++ b/packages/darwin_app/Makefile @@ -27,11 +27,12 @@ WISH_CONTENTS = "$(WISH)/Contents" #STRIP = strip -x STRIP = echo +DEBUG_CFLAGS = -g -fno-inline-functions -fno-omit-frame-pointer -DDEBUG_SOUNDFILE + # CPU-specific gleaned from: # http://developer.apple.com/releasenotes/DeveloperTools/RN-GCC4/ # http://hpc.sourceforge.net/ - -OPT_CFLAGS = -fast -fPIC -ftree-vectorize -ftree-vectorizer-verbose=1 -g +OPT_CFLAGS = -fast -fPIC -ftree-vectorize -ftree-vectorizer-verbose=1 # which CPU to compile for TARGET_PLATFORM := $(shell uname -p) @@ -46,7 +47,7 @@ else OPT_CFLAGS += -mcpu=7450 -mtune=7450 endif -OPT_FLAGS += -DDEBUG_SOUNDFILE +OPT_CFLAGS += $(DEBUG_CFLAGS) # these are sent to all of the various Makefiles so that they all copy their # output to the same directory tree diff --git a/packages/linux_make/Makefile b/packages/linux_make/Makefile index f7372d0e..80b06617 100755 --- a/packages/linux_make/Makefile +++ b/packages/linux_make/Makefile @@ -32,7 +32,8 @@ endif #STRIP = strip --strip-unneeded -R .note -R .comment STRIP = echo -OPT_CFLAGS = -g +DEBUG_CFLAGS = -g -fno-inline-functions -fno-omit-frame-pointer -DDEBUG_SOUNDFILE +OPT_CFLAGS = TARGET_PLATFORM := $(shell uname -m) ifeq ($(TARGET_PLATFORM),i686) @@ -47,6 +48,8 @@ ifeq ($(TARGET_PLATFORM),ppc) OPT_CFLAGS += -pipe -fsigned-char -mpowerpc endif +OPT_CFLAGS += $(DEBUG_CFLAGS) + # lots more here: http://www.gentoo.se/docs/doc-cflags.php # these are sent to all of the various Makefiles so that they all copy their diff --git a/packages/win32_inno/Makefile b/packages/win32_inno/Makefile index c69c462d..ffd724c3 100755 --- a/packages/win32_inno/Makefile +++ b/packages/win32_inno/Makefile @@ -17,12 +17,14 @@ include $(BUILDLAYOUT_DIR)/Makefile.buildlayout #STRIP = strip --strip-unneeded -R .note -R .comment STRIP = echo -OPT_CFLAGS = -g +DEBUG_CFLAGS = -g -fno-inline-functions -fno-omit-frame-pointer -DDEBUG_SOUNDFILE +OPT_CFLAGS = # compile for pentium4 so we can use SSE2 OPT_CFLAGS += -march=pentium4 -msse2 -mfpmath=sse OPT_CFLAGS += -ftree-vectorize -ftree-vectorizer-verbose=1 +OPT_CFLAGS += $(DEBUG_CFLAGS) # these are sent to all of the various Makefiles so that they all copy their # output to the same directory tree |