Mercurial > hg > vamp-plugin-sdk
comparison build/Makefile.osx @ 305:250c7aaff287
* Change arch defaults to as to use universal binaries (we have to change
them somehow, because the default is now 64-bit which breaks 32-bit hosts)
author | cannam |
---|---|
date | Wed, 09 Jun 2010 13:50:53 +0000 |
parents | f3db7ba66fea |
children | b923a3d9c3d5 |
comparison
equal
deleted
inserted
replaced
304:bdfc949cd9ed | 305:250c7aaff287 |
---|---|
58 # | 58 # |
59 default: all | 59 default: all |
60 | 60 |
61 # Architecture and developer SDK selection flags. Define this only | 61 # Architecture and developer SDK selection flags. Define this only |
62 # if you want to select a different OS/X compatibility level from the | 62 # if you want to select a different OS/X compatibility level from the |
63 # default, for example in order to build universal binaries. | 63 # default (which is to target 10.4 or newer and build universal binaries). |
64 # | 64 # |
65 #ARCHFLAGS = -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc | 65 SDKFLAGS = -isysroot /Developer/SDKs/MacOSX10.4u.sdk |
66 ARCHFLAGS = $(SDKFLAGS) -arch i386 -arch x86_64 -arch ppc | |
66 | 67 |
67 # Compile flags | 68 # Compile flags |
68 # | 69 # |
69 CXXFLAGS = $(ARCHFLAGS) -O2 -Wall -I. -fPIC | 70 CXXFLAGS = $(ARCHFLAGS) -O2 -Wall -I. -fPIC |
71 | |
72 # Link flags common to all link targets | |
73 # | |
74 LDFLAGS = $(ARCHFLAGS) | |
70 | 75 |
71 # ar, ranlib | 76 # ar, ranlib |
72 # | 77 # |
73 AR = ar | 78 AR = ar |
74 RANLIB = ranlib | 79 RANLIB = ranlib |
80 RM_F = rm -f | |
75 | 81 |
76 # Libraries required for the plugins. | 82 # Libraries required for the plugins. |
77 # | 83 # |
78 PLUGIN_LIBS = ./libvamp-sdk.a | 84 PLUGIN_LIBS = ./libvamp-sdk.a |
79 | 85 |
213 rdfgen: $(RDFGEN_TARGET) | 219 rdfgen: $(RDFGEN_TARGET) |
214 | 220 |
215 all: sdk plugins host rdfgen test | 221 all: sdk plugins host rdfgen test |
216 | 222 |
217 $(SDK_STATIC): $(SDK_OBJECTS) $(API_HEADERS) $(SDK_HEADERS) | 223 $(SDK_STATIC): $(SDK_OBJECTS) $(API_HEADERS) $(SDK_HEADERS) |
224 $(RM_F) $@ | |
218 $(AR) r $@ $(SDK_OBJECTS) | 225 $(AR) r $@ $(SDK_OBJECTS) |
219 | 226 |
220 $(HOSTSDK_STATIC): $(HOSTSDK_OBJECTS) $(API_HEADERS) $(HOSTSDK_HEADERS) | 227 $(HOSTSDK_STATIC): $(HOSTSDK_OBJECTS) $(API_HEADERS) $(HOSTSDK_HEADERS) |
228 $(RM_F) $@ | |
221 $(AR) r $@ $(HOSTSDK_OBJECTS) | 229 $(AR) r $@ $(HOSTSDK_OBJECTS) |
222 | 230 |
223 $(SDK_DYNAMIC): $(SDK_OBJECTS) $(API_HEADERS) $(SDK_HEADERS) | 231 $(SDK_DYNAMIC): $(SDK_OBJECTS) $(API_HEADERS) $(SDK_HEADERS) |
224 $(CXX) $(LDFLAGS) $(SDK_DYNAMIC_LDFLAGS) -o $@ $(SDK_OBJECTS) | 232 $(CXX) $(LDFLAGS) $(SDK_DYNAMIC_LDFLAGS) -o $@ $(SDK_OBJECTS) |
225 | 233 |