[PD-cvs] packages/darwin_app Makefile,1.67,1.68
Hans-Christoph Steiner
eighthave at users.sourceforge.net
Sat Jan 6 22:54:01 CET 2007
Update of /cvsroot/pure-data/packages/darwin_app
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25744
Modified Files:
Makefile
Log Message:
added some detection for OPT_FLAGS; made find statement compatible with older versions
Index: Makefile
===================================================================
RCS file: /cvsroot/pure-data/packages/darwin_app/Makefile,v
retrieving revision 1.67
retrieving revision 1.68
diff -C2 -d -r1.67 -r1.68
*** Makefile 29 Dec 2006 03:57:59 -0000 1.67
--- Makefile 6 Jan 2007 21:53:59 -0000 1.68
***************
*** 26,37 ****
TARGET_PLATFORM := $(shell uname -p)
! # base level optimizations
! #OPT_CFLAGS = -Os -funroll-loops -fomit-frame-pointer
!
# auto-vectorization in GCC 4.x for CPUs with SIMD
! OPT_CFLAGS += -ftree-vectorize -ftree-vectorizer-verbose=2
ifeq ($(TARGET_PLATFORM),i386)
! OPT_CFLAGS += -march=pentium4 -msse -msse2 -mfpmath=sse
endif
--- 26,43 ----
TARGET_PLATFORM := $(shell uname -p)
! # 10.3 uses gcc 3.3, and 10.3 only runs on PowerPC
! GCC_VERSION := $(shell gcc -dumpversion)
! ifeq ($(GCC_VERSION),3.3)
! OPT_CFLAGS += -O3 -funroll-loops -fomit-frame-pointer -mcpu=powerpc -mtune=G3
! else
# auto-vectorization in GCC 4.x for CPUs with SIMD
! OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 \
! -fast -fPIC -mcpu=7450 -mtune=7450
! endif
+ # Mac/Intels only run 10.4, so always gcc 4.x
ifeq ($(TARGET_PLATFORM),i386)
! OPT_CFLAGS = -march=pentium4 -msse2 -mfpmath=sse \
! -ftree-vectorize -ftree-vectorizer-verbose=2
endif
***************
*** 50,54 ****
#OPT_CFLAGS += -fast -fPIC -mcpu=G4 -mtune=G4
# PowerPC 7450 (G4 >= 533MHz)
! OPT_CFLAGS += -fast -fPIC -mcpu=7450 -mtune=7450
# PowerPC G5 (gcc-4.x)
#OPT_CFLAGS += -fast -fPIC
--- 56,60 ----
#OPT_CFLAGS += -fast -fPIC -mcpu=G4 -mtune=G4
# PowerPC 7450 (G4 >= 533MHz)
! #OPT_CFLAGS += -fast -fPIC -mcpu=7450 -mtune=7450
# PowerPC G5 (gcc-4.x)
#OPT_CFLAGS += -fast -fPIC
***************
*** 214,218 ****
find $(pddocdir) -name '*.pd' -exec \
sed -i.b 's/^\(\#N canvas [0-9]* [0-9]* [0-9]* [0-9]*\) 12/\1 10/' '{}' \;
! find $(DESTDIR) -name '*.pd.b' -delete
--- 220,224 ----
find $(pddocdir) -name '*.pd' -exec \
sed -i.b 's/^\(\#N canvas [0-9]* [0-9]* [0-9]* [0-9]*\) 12/\1 10/' '{}' \;
! find $(DESTDIR) -name '*.pd.b' -print0 | xargs -0 rm -f --
More information about the Pd-cvs
mailing list