aboutsummaryrefslogtreecommitdiff
path: root/packages/linux_make/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-04 04:45:55 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-04 04:45:55 +0000
commit773042fd648fe3680bb9fa45a91de26c15ca0c23 (patch)
treea8d21ae6dc2df085eb28f5bbd4e3989a7d4eadff /packages/linux_make/Makefile
parent52cdd9647ed982141e6dea385b625aee8051a194 (diff)
turned on debug symbols -g and set up gcc 4.x optimization flags
svn path=/trunk/; revision=15495
Diffstat (limited to 'packages/linux_make/Makefile')
-rwxr-xr-xpackages/linux_make/Makefile20
1 files changed, 10 insertions, 10 deletions
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)