aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/darwin_app/Makefile7
-rwxr-xr-xpackages/linux_make/Makefile5
-rwxr-xr-xpackages/win32_inno/Makefile4
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