Mercurial > hg > vamp-plugin-sdk
diff skeleton/Makefile.skeleton @ 306:b923a3d9c3d5
* Update OS/X stuff in Makefiles, so as to build 3-way universal binaries
using 10.4 SDK (where available, or 10.5 otherwise -- though the choice
needs to be made by the user)
author | cannam |
---|---|
date | Fri, 13 Aug 2010 15:08:23 +0000 |
parents | bb67b6145812 |
children | 2ad57dd004ba |
line wrap: on
line diff
--- a/skeleton/Makefile.skeleton Wed Jun 09 13:50:53 2010 +0000 +++ b/skeleton/Makefile.skeleton Fri Aug 13 15:08:23 2010 +0000 @@ -27,20 +27,23 @@ VAMP_SDK_DIR = ../vamp-plugin-sdk -## Uncomment these for an OS/X native build using command-line tools: +## Uncomment these for an OS/X universal binary (PPC and 32- and +## 64-bit Intel) supporting 10.4 or newer (if you have the 10.4 SDK): -# CXXFLAGS = -I$(VAMP_SDK_DIR) -Wall -fPIC +# CXXFLAGS = -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -arch i386 -arch x86_64 -arch ppc -I$(VAMP_SDK_DIR) -Wall -fPIC # PLUGIN_EXT = .dylib # PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) -# LDFLAGS = -dynamiclib -install_name $(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list +# LDFLAGS = $(CXXFLAGS) -dynamiclib -install_name $(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list -## Uncomment these for an OS/X universal binary using command-line tools: +## Uncomment these for an OS/X universal binary (PPC and 32- and +## 64-bit Intel) supporting 10.5 or newer (use this if you have the +## default 10.6 developer tools): -# CXXFLAGS = -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -I$(VAMP_SDK_DIR) -Wall -fPIC +# CXXFLAGS = -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -arch i386 -arch x86_64 -arch ppc -I$(VAMP_SDK_DIR) -Wall -fPIC # PLUGIN_EXT = .dylib # PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) -# LDFLAGS = -dynamiclib -install_name $(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list +# LDFLAGS = $(CXXFLAGS) -dynamiclib -install_name $(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list ## Uncomment these for Linux using the standard tools: