aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/Makefile2
-rw-r--r--packages/darwin_app/Makefile2
-rwxr-xr-xpackages/linux_make/Makefile20
-rwxr-xr-xpackages/win32_inno/Makefile4
4 files changed, 15 insertions, 13 deletions
diff --git a/packages/Makefile b/packages/Makefile
index 2eb94920..478661a1 100644
--- a/packages/Makefile
+++ b/packages/Makefile
@@ -111,7 +111,7 @@ pd: set_version
cd $(pd_src) \
&& ./autogen.sh \
&& ./configure $(PD_CONFIGURE_FLAGS) \
- && make $(DEST_PATHS) $(PD_BUILD_FLAGS)
+ && make $(DEST_PATHS) $(PD_BUILD_FLAGS) CFLAGS="-O2 -g"
PD_NAME=Pd
pd_install: pd
diff --git a/packages/darwin_app/Makefile b/packages/darwin_app/Makefile
index 927718ae..160a27e2 100644
--- a/packages/darwin_app/Makefile
+++ b/packages/darwin_app/Makefile
@@ -27,7 +27,7 @@ WISH_CONTENTS = "$(WISH)/Contents"
# http://developer.apple.com/releasenotes/DeveloperTools/RN-GCC4/
# http://hpc.sourceforge.net/
-OPT_CFLAGS = -fast -fPIC -ftree-vectorize -ftree-vectorizer-verbose=2
+OPT_CFLAGS = -fast -fPIC -ftree-vectorize -ftree-vectorizer-verbose=1 -g
FAT_FLAGS = -mmacosx-version-min=10.4
# which CPU to compile for
diff --git a/packages/linux_make/Makefile b/packages/linux_make/Makefile
index fe5fddd5..e6033d6c 100755
--- a/packages/linux_make/Makefile
+++ b/packages/linux_make/Makefile
@@ -28,20 +28,19 @@ else
prefix = /usr/local
endif
+OPT_CFLAGS = -g
+
TARGET_PLATFORM := $(shell uname -m)
ifeq ($(TARGET_PLATFORM),i686)
# Generic x86 (tune for Pentium III, since that's more common these days)
-OPT_CFLAGS += -mtune=i686 -march=i386
-#OPT_CFLAGS += -march=pentium3 -msse -mfpmath=sse
-#OPT_CFLAGS += -march=pentium4 -msse -msse2 -mfpmath=sse
+ OPT_CFLAGS += -mtune=i686 -march=i386
endif
-ifeq ($(TARGET_PLATFORM),ppc)
- OPT_CFLAGS += -pipe -fsigned-char -mpowerpc
+ifeq ($(TARGET_PLATFORM),amd64)
+ OPT_CFLAGS += -march=k8 -msse -msse2 -mfpmath=sse
+ OPT_CFLAGS += -ftree-vectorize -ftree-vectorizer-verbose=1
endif
-
-GCC_VERSION := $(shell gcc -dumpversion)
-ifeq ($(GCC_VERSION),4.1.2)
- OPT_CFLAGS += -ftree-vectorize -ftree-vectorizer-verbose=3
+ifeq ($(TARGET_PLATFORM),ppc)
+ OPT_CFLAGS += -pipe -fsigned-char -mpowerpc
endif
# lots more here: http://www.gentoo.se/docs/doc-cflags.php
@@ -80,7 +79,8 @@ package: $(PACKAGE_TYPE)
tarbz2: installer_makefile installer_readme
install -p $(packages_src)/linux_make/default.pdextended $(DESTDIR)$(libpddir)
mv $(DESTDIR)$(bindir)/pd $(DESTDIR)$(bindir)/pd-extended
- ln -s -f $(bindir)/pd-extended $(DESTDIR)$(bindir)/pd
+ ln -s -f pd-extended $(DESTDIR)$(bindir)/pdextended
+ ln -s -f pd-extended $(DESTDIR)$(bindir)/pd
mv $(DESTDIR)$(prefix) $(DESTDIR)$(PACKAGE_NAME)
cd $(DESTDIR) && \
tar cjf $(PACKAGE_NAME).tar.bz2 $(PACKAGE_NAME)
diff --git a/packages/win32_inno/Makefile b/packages/win32_inno/Makefile
index b158875c..a31236ae 100755
--- a/packages/win32_inno/Makefile
+++ b/packages/win32_inno/Makefile
@@ -13,9 +13,11 @@ BUILDLAYOUT_DIR = $(cvs_root_dir)/packages
include $(BUILDLAYOUT_DIR)/Makefile.buildlayout
+OPT_CFLAGS = -g
# compile for pentium4 so we can use SSE2
OPT_CFLAGS += -march=pentium4 -msse2 -mfpmath=sse
+OPT_CFLAGS += -ftree-vectorize -ftree-vectorizer-verbose=1
# these are sent to all of the various Makefiles so that they all copy their
@@ -57,7 +59,7 @@ zip:
@echo "win32_inno install succeeded!"
build_pd:
- cd $(pd_src)/src && $(MAKE) -f makefile.mingw
+ cd $(pd_src)/src && $(MAKE) -f makefile.mingw MORECFLAGS="-O2 -g"
PD_NAME=Pd
pd_install: build_pd