diff --git a/abstractions/footils/list-abs/Makefile b/abstractions/footils/list-abs/Makefile index d1b1d7d25c487bcb84fb6ea6cb4c2fa8e78711f8..39020dd7bd9fe3f0acd1d351046cceb9683682ea 100644 --- a/abstractions/footils/list-abs/Makefile +++ b/abstractions/footils/list-abs/Makefile @@ -41,6 +41,10 @@ LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -92,9 +96,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/abstractions/purepd/Makefile b/abstractions/purepd/Makefile index a44c385f8d9f3916ac093ec23da8195e89ccacbd..19c30b1dc4a763e2656493d352a7547514d268a0 100644 --- a/abstractions/purepd/Makefile +++ b/abstractions/purepd/Makefile @@ -41,6 +41,10 @@ LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -92,9 +96,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/Makefile b/externals/Makefile index 3cefc37fc5ed505805856f0ce57b20172a2eeba5..d78262e1761f3462b8b1604ab5bb0ca49c9710a8 100644 --- a/externals/Makefile +++ b/externals/Makefile @@ -15,8 +15,12 @@ cvs_root_dir := $(shell cd $(CWD)/.. && pwd) DESTDIR = $(CWD)/build/ BUILDLAYOUT_DIR = $(cvs_root_dir)/packages +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # turn on weak linking and dlopen support -export MACOSX_DEPLOYMENT_TARGET = 10.3 +export MACOSX_DEPLOYMENT_TARGET = $(macos_target) # default target default: all diff --git a/externals/apple/Makefile b/externals/apple/Makefile index 2d794e716f83422b96ae7f4715e07a801576b434..a7eac85106e7fab7cecbb3e12bbcb65a97d4bedf 100644 --- a/externals/apple/Makefile +++ b/externals/apple/Makefile @@ -53,6 +53,10 @@ ALL_LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # these can be set from outside without (usually) breaking the build CFLAGS = -Wall -W -g LDFLAGS = @@ -112,9 +116,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include @@ -260,7 +264,7 @@ all: $(SOURCES:.c=.$(EXTENSION)) $(SHARED_LIB) multitouch.$(EXTENSION): multitouch.c $(CC) $(ALL_CFLAGS) -o multitouch.o -c multitouch.c - $(CC) $(ALL_LDFLAGS) -mmacosx-version-min=10.5 -F/System/Library/PrivateFrameworks \ + $(CC) $(ALL_LDFLAGS) -mmacosx-version-min=$(macos_target) -F/System/Library/PrivateFrameworks \ -o multitouch.$(EXTENSION) multitouch.o $(ALL_LIBS) \ -framework MultitouchSupport chmod a-x multitouch.$(EXTENSION) diff --git a/externals/arraysize/Makefile b/externals/arraysize/Makefile index 425bf8b8a693f816f7ce254948b6c4a7e3ac42f9..b2c93f3602e95b8e985d2d3b4ecb8dbdc54c0fe0 100644 --- a/externals/arraysize/Makefile +++ b/externals/arraysize/Makefile @@ -40,6 +40,10 @@ EXTRA_DIST = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -92,9 +96,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \ diff --git a/externals/autotune/Makefile b/externals/autotune/Makefile index f8694edcee951e86019160098c8d0de963af1d1b..20737751cd05e49a0b22ca280d7a026a17cef040 100644 --- a/externals/autotune/Makefile +++ b/externals/autotune/Makefile @@ -40,6 +40,10 @@ SOURCES_windows = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file #LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) LIBRARY_VERSION = 0.9 @@ -91,9 +95,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \ diff --git a/externals/bassemu~/Makefile b/externals/bassemu~/Makefile index 7a7fff407a484d9a984276e88d398914ae67f2dc..0dee92919f88e5fb24e2a27189b1390be4b9ef94 100644 --- a/externals/bassemu~/Makefile +++ b/externals/bassemu~/Makefile @@ -41,6 +41,10 @@ LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -92,9 +96,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/boids/Makefile b/externals/boids/Makefile index 7c50ad21e327b352bdea6b5b4ccfe6a4cf38d3b0..e5d16bc77ba599a6de8473e0f32bd427ecf264f6 100644 --- a/externals/boids/Makefile +++ b/externals/boids/Makefile @@ -42,6 +42,10 @@ LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -93,9 +97,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/bsaylor/Makefile b/externals/bsaylor/Makefile index 065d39345c86ebf4b03463a169c5a65e8758c1af..af62094581f6993acdbc948969acb2fa71dee5c6 100644 --- a/externals/bsaylor/Makefile +++ b/externals/bsaylor/Makefile @@ -43,6 +43,10 @@ LIBS = -lm # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -94,9 +98,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/cxc/Makefile b/externals/cxc/Makefile index 41add97c9731a9c9ee7b56d004db24f5fce9d3c5..de83b3cbad541077d9e10cb1c7e8043c7ac14ea9 100644 --- a/externals/cxc/Makefile +++ b/externals/cxc/Makefile @@ -45,6 +45,10 @@ LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -96,9 +100,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/disis/Makefile.pdlibbuilder.revised b/externals/disis/Makefile.pdlibbuilder.revised index 3f2e5c982b38b0735ab65e7c4874b4159e92ccdd..07fa86d97dcbb4b6ca07df2025289c870eb03c57 100644 --- a/externals/disis/Makefile.pdlibbuilder.revised +++ b/externals/disis/Makefile.pdlibbuilder.revised @@ -408,6 +408,9 @@ endif # OSX x86_64. ifeq ($(system), Darwin) + ifeq ($(macos_target),) + macos_target = 10.9 + endif pkglibdir = $(HOME)/Library/Pd pdincludepath := $(firstword $(wildcard \ $(externalsdir)/../pd/src \ @@ -427,12 +430,12 @@ ifeq ($(system), Darwin) stripflags = -x ifeq ($(machine), i386) cxx.flags := -fcheck-new - arch.c.flags := -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 - arch.ld.flags := -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + arch.c.flags := -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) + arch.ld.flags := -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) endif ifeq ($(machine), x86_64) - arch.c.flags := -arch x86_64 -mmacosx-version-min=10.5 - arch.ld.flags := -arch x86_64 -mmacosx-version-min=10.5 + arch.c.flags := -arch x86_64 -mmacosx-version-min=$(macos_target) + arch.ld.flags := -arch x86_64 -mmacosx-version-min=$(macos_target) endif endif diff --git a/externals/earplug~/Makefile b/externals/earplug~/Makefile index 22dbbb2e457f9ffbe4667dad1ff22062d84694b1..b2a0d389b7a07207f9b5b9f675a4d79ccfd3a506 100644 --- a/externals/earplug~/Makefile +++ b/externals/earplug~/Makefile @@ -41,6 +41,10 @@ LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -92,9 +96,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/ekext/Makefile b/externals/ekext/Makefile index 47240e2cff84979cd27ca1f39e36432e4bf868b1..d5c6685c9a7571b993732c0e791b111e97e82952 100644 --- a/externals/ekext/Makefile +++ b/externals/ekext/Makefile @@ -41,6 +41,10 @@ LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -92,9 +96,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/ext13/Makefile b/externals/ext13/Makefile index c7b32013733ced87ddeb9f706207b28677b64f7a..2f5f389835bb76d9080bdeef8970782236bce7b4 100644 --- a/externals/ext13/Makefile +++ b/externals/ext13/Makefile @@ -47,6 +47,10 @@ LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -98,9 +102,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/fluid~/Makefile.pdlibbuilder.revised b/externals/fluid~/Makefile.pdlibbuilder.revised index ed11b2259b0c5f674cd6005c810f9d9ff1e20379..c2da4e48d8390f5eb0324f874d76e95f33d4949a 100644 --- a/externals/fluid~/Makefile.pdlibbuilder.revised +++ b/externals/fluid~/Makefile.pdlibbuilder.revised @@ -514,6 +514,9 @@ endif # OSX x86_64. ifeq ($(system), Darwin) + ifeq ($(macos_target),) + macos_target = 10.9 + endif pkglibdir = $(HOME)/Library/Pd pdincludepath := $(firstword $(wildcard \ $(externalsdir)/../pd/src \ @@ -533,12 +536,12 @@ ifeq ($(system), Darwin) stripflags = -x ifeq ($(machine), i386) cxx.flags := -fcheck-new - arch.c.flags := -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 - arch.ld.flags := -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + arch.c.flags := -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) + arch.ld.flags := -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) endif ifeq ($(machine), x86_64) - arch.c.flags := -arch x86_64 -mmacosx-version-min=10.5 - arch.ld.flags := -arch x86_64 -mmacosx-version-min=10.5 + arch.c.flags := -arch x86_64 -mmacosx-version-min=$(macos_target) + arch.ld.flags := -arch x86_64 -mmacosx-version-min=$(macos_target) endif endif diff --git a/externals/footils/knob/Makefile.pdlibbuilder.revised b/externals/footils/knob/Makefile.pdlibbuilder.revised index ed11b2259b0c5f674cd6005c810f9d9ff1e20379..c2da4e48d8390f5eb0324f874d76e95f33d4949a 100644 --- a/externals/footils/knob/Makefile.pdlibbuilder.revised +++ b/externals/footils/knob/Makefile.pdlibbuilder.revised @@ -514,6 +514,9 @@ endif # OSX x86_64. ifeq ($(system), Darwin) + ifeq ($(macos_target),) + macos_target = 10.9 + endif pkglibdir = $(HOME)/Library/Pd pdincludepath := $(firstword $(wildcard \ $(externalsdir)/../pd/src \ @@ -533,12 +536,12 @@ ifeq ($(system), Darwin) stripflags = -x ifeq ($(machine), i386) cxx.flags := -fcheck-new - arch.c.flags := -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 - arch.ld.flags := -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + arch.c.flags := -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) + arch.ld.flags := -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) endif ifeq ($(machine), x86_64) - arch.c.flags := -arch x86_64 -mmacosx-version-min=10.5 - arch.ld.flags := -arch x86_64 -mmacosx-version-min=10.5 + arch.c.flags := -arch x86_64 -mmacosx-version-min=$(macos_target) + arch.ld.flags := -arch x86_64 -mmacosx-version-min=$(macos_target) endif endif diff --git a/externals/freeverb~/Makefile b/externals/freeverb~/Makefile index 194ae20e6f89b7681de6f5e81a9340fd46a3f007..e67ba10a04fccb53c710929d8d9f60f2839a25db 100644 --- a/externals/freeverb~/Makefile +++ b/externals/freeverb~/Makefile @@ -41,6 +41,10 @@ LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -92,9 +96,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/ggee/Makefile b/externals/ggee/Makefile index 3634ec9bf8809e4f760cb557125e9970eb7e91f7..1057b612f6d51709a0323c04a1834865dfed036b 100644 --- a/externals/ggee/Makefile +++ b/externals/ggee/Makefile @@ -44,6 +44,10 @@ LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -95,9 +99,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/hcs/Makefile b/externals/hcs/Makefile index 075b7a541d9151719b33ff34c05be303366dac9f..06928b2d23d99874a26c144f3ed7fe31c59aafe4 100644 --- a/externals/hcs/Makefile +++ b/externals/hcs/Makefile @@ -48,6 +48,10 @@ ALL_LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # these can be set from outside without (usually) breaking the build CFLAGS = -Wall -W -g LDFLAGS = @@ -107,9 +111,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/hcs/usbhid/Makefile b/externals/hcs/usbhid/Makefile index 7df9795506eb6c960c06800c3567cc9f5266cd20..6aadb6de0c2f398ae96864298ac99b9eae4a80c0 100644 --- a/externals/hcs/usbhid/Makefile +++ b/externals/hcs/usbhid/Makefile @@ -33,6 +33,10 @@ EXTRA_DIST = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # where Pd lives PD_PATH = ../../../pd # where to install the library @@ -78,7 +82,7 @@ ifeq ($(UNAME),Darwin) EXTENSION = pd_darwin OS = macosx OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast - FAT_FLAGS = -arch i386 -arch ppc -mmacosx-version-min=10.4 + FAT_FLAGS = -arch i386 -arch ppc -mmacosx-version-min=$(macos_target) CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \ -I/Applications/Pd-extended.app/Contents/Resources/include LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib diff --git a/externals/iem/comport/comport/Makefile b/externals/iem/comport/comport/Makefile index 3e86e5c197908c5819c015d6755e6971432878b7..e2bf0bb7cd8554c97e63cd76f90a648cf7beef3f 100644 --- a/externals/iem/comport/comport/Makefile +++ b/externals/iem/comport/comport/Makefile @@ -41,6 +41,10 @@ LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -92,9 +96,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/iem/iemguts/Makefile b/externals/iem/iemguts/Makefile index 119189fd56c598f90c76ebb98c1901c6563f3332..72bc4d56c2c3dc71f5f00ce345e957064ca34f1d 100644 --- a/externals/iem/iemguts/Makefile +++ b/externals/iem/iemguts/Makefile @@ -89,6 +89,10 @@ VPATH=src # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -141,9 +145,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \ diff --git a/externals/iem/iemnet/Makefile b/externals/iem/iemnet/Makefile index 6461c249345dd37fb99e363ea92398516a9b0b0b..4d0714d91b8eb7880204bb231e71b4e1c9a247c7 100644 --- a/externals/iem/iemnet/Makefile +++ b/externals/iem/iemnet/Makefile @@ -42,6 +42,10 @@ DEBUG_CFLAGS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # where Pd lives PD_PATH = ../../../pd # where to install the library @@ -88,7 +92,7 @@ ifeq ($(UNAME),Darwin) EXTENSION = pd_darwin OS = macosx OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=0 -fast - FAT_FLAGS = -arch i386 -arch ppc -mmacosx-version-min=10.4 + FAT_FLAGS = -arch i386 -arch ppc -mmacosx-version-min=$(macos_target) CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \ -I/Applications/Pd-extended.app/Contents/Resources/include LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib diff --git a/externals/iem/syslog/Makefile b/externals/iem/syslog/Makefile index 7f729506e499e188d1a2fb222bbe07219fd7dc33..405f1c14b013d641523a172924b48d34c404f2eb 100644 --- a/externals/iem/syslog/Makefile +++ b/externals/iem/syslog/Makefile @@ -47,6 +47,10 @@ ALL_LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # these can be set from outside without (usually) breaking the build CFLAGS = -Wall -W -g LDFLAGS= @@ -103,9 +107,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/loaders/libdir/Makefile b/externals/loaders/libdir/Makefile index 872ec691282f654f0d9a0e5c2947d3063cda5403..8088e85e81b5caa17bd9615f12f0c08dd34f2632 100644 --- a/externals/loaders/libdir/Makefile +++ b/externals/loaders/libdir/Makefile @@ -41,6 +41,10 @@ LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -92,9 +96,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/mapping/Makefile b/externals/mapping/Makefile index 24a5fd30e6fc982ef9044c9cf025df547f925a23..ad7b9bcf7790e01eb35936bb86d315e5811116b1 100644 --- a/externals/mapping/Makefile +++ b/externals/mapping/Makefile @@ -41,6 +41,10 @@ LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -92,9 +96,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/markex/Makefile b/externals/markex/Makefile index 11b3131e2002d5f41f02ffbffbda41156f19e34e..22082204e56617ed24dcbb21f33d3f73e9efbbd0 100644 --- a/externals/markex/Makefile +++ b/externals/markex/Makefile @@ -43,6 +43,10 @@ ALL_LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # these can be set from outside without (usually) breaking the build CFLAGS = -Wall -W -g LDFLAGS = @@ -102,9 +106,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/maxlib/Makefile b/externals/maxlib/Makefile index 3eeccff41567c21e034197e419bc6970b19513b9..cfc7a81edb3e03ff6008ff328246ea2bb65c3baa 100644 --- a/externals/maxlib/Makefile +++ b/externals/maxlib/Makefile @@ -47,6 +47,10 @@ LIBS_windows = -lpthread # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # these can be set from outside without (usually) breaking the build CFLAGS = -Wall -W -g LDFLAGS = @@ -106,14 +110,14 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else SOURCES += $(SOURCES_iphoneos) # Starting with Xcode 4.0, the PowerPC compiler is not installed by default ifeq ($(wildcard /usr/llvm-gcc-4.2/libexec/gcc/powerpc*), ) - FAT_FLAGS = -arch i386 -arch x86_64 -mmacosx-version-min=10.5 + FAT_FLAGS = -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) endif endif ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/miXed/cyclone/Makefile.libdir b/externals/miXed/cyclone/Makefile.libdir index 6eff7ec86d39a0f529dcdadfb52f9c1289aa1ffc..dc1f925a25c689e948df9b1423185952e95babd7 100644 --- a/externals/miXed/cyclone/Makefile.libdir +++ b/externals/miXed/cyclone/Makefile.libdir @@ -14,6 +14,9 @@ INSTALL_DIR = $(INSTALL) -p -m 755 -d UNAME := $(shell uname -s) ifeq ($(UNAME),Darwin) + ifeq ($(macos_target),) + macos_target = 10.9 + endif CPU := $(shell uname -p) ifeq ($(CPU),arm) # iPhone/iPod Touch EXTENSION = pd_darwin @@ -39,9 +42,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib diff --git a/externals/mjlib/Makefile b/externals/mjlib/Makefile index e3cce7ac99cc6e8cc066a93da5b6f1d485337ce1..0b99f4ffab670132bcc67449f318910bf92ff0f2 100644 --- a/externals/mjlib/Makefile +++ b/externals/mjlib/Makefile @@ -42,6 +42,10 @@ LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -93,9 +97,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/moonlib/Makefile b/externals/moonlib/Makefile index 7fc7c21ddb2273c5348b6c30311c2e71dd1006d0..63623f03df0e4d17f5b31cc5241af2d5a2d79fff 100644 --- a/externals/moonlib/Makefile +++ b/externals/moonlib/Makefile @@ -47,6 +47,10 @@ ALL_LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # these can be set from outside without (usually) breaking the build CFLAGS = -Wall -W -g LDFLAGS = @@ -106,9 +110,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/motex/Makefile b/externals/motex/Makefile index 0adacd5cb47a54a4af545efff848fa229e6cad13..c696e8e7fa3890ee1d2093aab44912fbc4473e35 100644 --- a/externals/motex/Makefile +++ b/externals/motex/Makefile @@ -40,6 +40,10 @@ EXTRA_DIST = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -92,9 +96,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \ diff --git a/externals/mrpeach/Makefile b/externals/mrpeach/Makefile index f17df5cfc6f91d56736ebc92c809fa1bf2315e2f..6633d08b3159f084a5621ae1143d1cc685205a36 100644 --- a/externals/mrpeach/Makefile +++ b/externals/mrpeach/Makefile @@ -66,6 +66,10 @@ ALL_LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # these can be set from outside without (usually) breaking the build CFLAGS = -Wall -W -g LDFLAGS = @@ -125,14 +129,14 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else SOURCES += $(SOURCES_iphoneos) # Starting with Xcode 4.0, the PowerPC compiler is not installed by default ifeq ($(wildcard /usr/llvm-gcc-4.2/libexec/gcc/powerpc*), ) - FAT_FLAGS = -arch i386 -arch x86_64 -mmacosx-version-min=10.5 + FAT_FLAGS = -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) endif endif ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/mrpeach/cmos/Makefile b/externals/mrpeach/cmos/Makefile index 8e07528ebafb1e967d9f80fa7e84db50548ffcf2..6a23280a4e64a4bf0bb052b55c2ddc9dd1ce8731 100644 --- a/externals/mrpeach/cmos/Makefile +++ b/externals/mrpeach/cmos/Makefile @@ -51,6 +51,10 @@ ALL_LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # these can be set from outside without (usually) breaking the build CFLAGS = -Wall -W -g LDFLAGS = @@ -110,14 +114,14 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else SOURCES += $(SOURCES_iphoneos) # Starting with Xcode 4.0, the PowerPC compiler is not installed by default ifeq ($(wildcard /usr/llvm-gcc-4.2/libexec/gcc/powerpc*), ) - FAT_FLAGS = -arch i386 -arch x86_64 -mmacosx-version-min=10.5 + FAT_FLAGS = -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) endif endif ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/mrpeach/net/Makefile b/externals/mrpeach/net/Makefile index 778403cdddcd26645cfc51e8128fa453c169e1d3..2d13b7dec154807a4dc174d76f7f180c232af4c6 100644 --- a/externals/mrpeach/net/Makefile +++ b/externals/mrpeach/net/Makefile @@ -44,6 +44,10 @@ ALL_LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # these can be set from outside without (usually) breaking the build CFLAGS = -Wall -W -g LDFLAGS = @@ -103,9 +107,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/mrpeach/osc/Makefile b/externals/mrpeach/osc/Makefile index 06855f0b8673e179b02d232d99338a160ee4b2b3..36bdd9ede9dd2cea0b44b85871269fd60c6b5dc2 100644 --- a/externals/mrpeach/osc/Makefile +++ b/externals/mrpeach/osc/Makefile @@ -53,6 +53,10 @@ ALL_LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # these can be set from outside without (usually) breaking the build CFLAGS = -Wall -W -g LDFLAGS= @@ -109,9 +113,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/pan/Makefile b/externals/pan/Makefile index fa5aba132a9e2774e0b09b09fe35d71bd87efb6d..76a995f5ca2baa1dd01ae0d1a5d8bd672444f7d2 100644 --- a/externals/pan/Makefile +++ b/externals/pan/Makefile @@ -41,6 +41,10 @@ LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -92,9 +96,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/pddp/Makefile b/externals/pddp/Makefile index f5b60ce6e1745e3e7fcc6295ebe55d85bc200b7d..9f44e9f7851cb49a6bd3910e8e13fd47fe0314ba 100644 --- a/externals/pddp/Makefile +++ b/externals/pddp/Makefile @@ -43,6 +43,10 @@ ALL_LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # these can be set from outside without (usually) breaking the build CFLAGS = -Wall -W -g LDFLAGS = @@ -102,9 +106,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/pdogg/Makefile b/externals/pdogg/Makefile index 3b01b6d6c174375891fc8a42bb56935cf79ddd05..a9eb1f45a87099dccbc8e8e324cc08857e13dc4e 100644 --- a/externals/pdogg/Makefile +++ b/externals/pdogg/Makefile @@ -50,6 +50,10 @@ LIBS_windows = -lpthread # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # these can be set from outside without (usually) breaking the build CFLAGS = -Wall -W -g LDFLAGS = @@ -109,9 +113,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/plugin~/Makefile b/externals/plugin~/Makefile index a4174912d703d0604ba7c37c6437f564a14ed1aa..b27605c4b904a0dd8d3a58970017515faf265dcf 100644 --- a/externals/plugin~/Makefile +++ b/externals/plugin~/Makefile @@ -43,6 +43,10 @@ LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -94,9 +98,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/pmpd/Makefile b/externals/pmpd/Makefile index ccab2648a37c64ec0d220ac6d42f132c43db9d0b..a2eefeb957613c2e6edacdf3310b6271a2897f85 100644 --- a/externals/pmpd/Makefile +++ b/externals/pmpd/Makefile @@ -47,6 +47,10 @@ ALL_LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # these can be set from outside without (usually) breaking the build CFLAGS = -W -g LDFLAGS = @@ -106,14 +110,14 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else SOURCES += $(SOURCES_iphoneos) # Starting with Xcode 4.0, the PowerPC compiler is not installed by default ifeq ($(wildcard /usr/llvm-gcc-4.2/libexec/gcc/powerpc*), ) - FAT_FLAGS = -arch i386 -arch x86_64 -mmacosx-version-min=10.5 + FAT_FLAGS = -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) endif endif ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/sigpack/Makefile b/externals/sigpack/Makefile index e321067a4d645de53959e7f302cb6f6fc8b8a72c..961bafe8b67a3a4e89d97bc65a01f8df81f8462a 100644 --- a/externals/sigpack/Makefile +++ b/externals/sigpack/Makefile @@ -43,6 +43,10 @@ ALL_LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # these can be set from outside without (usually) breaking the build CFLAGS = -Wall -W -g LDFLAGS = @@ -102,9 +106,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/smlib/Makefile b/externals/smlib/Makefile index 9e8401d728bd0ada84e458c39fc5cc4ae970778a..a80ecdf8e7e8137e8457fafe8f5e05f05b01bfbe 100644 --- a/externals/smlib/Makefile +++ b/externals/smlib/Makefile @@ -41,6 +41,10 @@ LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -92,9 +96,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/tof/src/Makefile b/externals/tof/src/Makefile index 6cd405c723bafbe58057bf2855233ece76140f45..7b329cc822e434eb89eeb7413622a956baad38a7 100644 --- a/externals/tof/src/Makefile +++ b/externals/tof/src/Makefile @@ -58,8 +58,12 @@ endif CWD := $(shell pwd) +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # turn on weak linking and dlopen support -export MACOSX_DEPLOYMENT_TARGET = 10.3 +export MACOSX_DEPLOYMENT_TARGET = $(macos_target) # DEFAULT TARGET # Find a way to list all c files target ALL = $(patsubst %.c,%.$(EXTENSION),$(wildcard *.c)) diff --git a/externals/tof/test/Makefile(ext13) b/externals/tof/test/Makefile(ext13) index be75feafac80e1a39e599f0b8887c51ebc930069..212390e6c42162e34fd76efc6b3942f03a479644 100644 --- a/externals/tof/test/Makefile(ext13) +++ b/externals/tof/test/Makefile(ext13) @@ -29,11 +29,14 @@ LIBS = UNAME := $(shell uname -s) ifeq ($(UNAME),Darwin) + ifeq ($(macos_target),) + macos_target = 10.9 + endif SOURCES += $(SOURCES_Darwin) EXTENSION = pd_darwin OS = macosx OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast - FAT_FLAGS = -arch i386 -arch ppc -mmacosx-version-min=10.4 + FAT_FLAGS = -arch i386 -arch ppc -mmacosx-version-min=$(macos_target) CFLAGS += -fPIC $(FAT_FLAGS) LDFLAGS += -bundle -undefined dynamic_lookup $(FAT_FLAGS) LIBS += -lc diff --git a/externals/unauthorized/Makefile b/externals/unauthorized/Makefile index 5b2c9734d847156d1d796abaf1f09f7134fa5401..9b34891d1a9403d60dbf2b784895bdacf24f0fcc 100644 --- a/externals/unauthorized/Makefile +++ b/externals/unauthorized/Makefile @@ -50,6 +50,10 @@ ALL_LIBS = -lspeex -lmp3lame -lpthread # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # these can be set from outside without (usually) breaking the build CFLAGS = -Wall -W -g LDFLAGS = @@ -109,9 +113,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/vbap/Makefile b/externals/vbap/Makefile index 6df6f2af74aaf51454a0d8507aff8d0c7e2bb51b..35975fb5b42e8ae0c88f0d396b2ea6efb40041f4 100644 --- a/externals/vbap/Makefile +++ b/externals/vbap/Makefile @@ -47,6 +47,10 @@ ALL_LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # these can be set from outside without (usually) breaking the build CFLAGS = -Wall -W -g LDFLAGS = @@ -106,14 +110,14 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else SOURCES += $(SOURCES_iphoneos) # Starting with Xcode 4.0, the PowerPC compiler is not installed by default ifeq ($(wildcard /usr/llvm-gcc-4.2/libexec/gcc/powerpc*), ) - FAT_FLAGS = -arch i386 -arch x86_64 -mmacosx-version-min=10.5 + FAT_FLAGS = -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) endif endif ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include diff --git a/externals/windowing/Makefile b/externals/windowing/Makefile index e4b140fd7cf9cc6a48d064dfcfe2f3c9cca2f8d0..8d40cb46d1bcdd49d4abefa931ce2f4967721183 100644 --- a/externals/windowing/Makefile +++ b/externals/windowing/Makefile @@ -41,6 +41,10 @@ LIBS = # #------------------------------------------------------------------------------# +ifeq ($(macos_target),) +macos_target = 10.9 +endif + # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -89,9 +93,9 @@ ifeq ($(UNAME),Darwin) OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast # build universal 32-bit on 10.4 and 32/64 on newer ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) - FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target) else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \