comparison build/Makefile.osx @ 296:38c638894360

* More build updates
author cannam
date Tue, 22 Sep 2009 11:38:16 +0000
parents 3f14a3891817
children f3db7ba66fea
comparison
equal deleted inserted replaced
295:0e08ebd5c13b 296:38c638894360
56 # clean -- remove binary targets 56 # clean -- remove binary targets
57 # distclean -- remove all targets 57 # distclean -- remove all targets
58 # 58 #
59 default: all 59 default: all
60 60
61 # Architecture and developer SDK selection flags. Define this only
62 # if you want to select a different OS/X compatibility level from the
63 # default, for example in order to build universal binaries.
64 #
65 #ARCHFLAGS = -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
66
61 # Compile flags 67 # Compile flags
62 # 68 #
63 CXXFLAGS := $(CXXFLAGS) -O2 -Wall -I. -fPIC 69 CXXFLAGS = $(ARCHFLAGS) $(CXXFLAGS) -O2 -Wall -I. -fPIC
64 70
65 # ar, ranlib 71 # ar, ranlib
66 # 72 #
67 AR := ar 73 AR = ar
68 RANLIB := ranlib 74 RANLIB = ranlib
69 75
70 # Libraries required for the plugins. 76 # Libraries required for the plugins.
71 # 77 #
72 PLUGIN_LIBS = ./libvamp-sdk.a 78 PLUGIN_LIBS = ./libvamp-sdk.a
73 79
83 # 89 #
84 RDFGEN_LIBS = ./libvamp-hostsdk.a -ldl 90 RDFGEN_LIBS = ./libvamp-hostsdk.a -ldl
85 91
86 # Flags required to tell the compiler to create a dynamically loadable object 92 # Flags required to tell the compiler to create a dynamically loadable object
87 # 93 #
88 DYNAMIC_LDFLAGS = -dynamiclib 94 DYNAMIC_LDFLAGS = $(ARCHFLAGS) -dynamiclib
89 PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS) -install_name vamp-example-plugins.dylib 95
96 # Flags for building specific plugin and library targets. We need to
97 # tell the linker the formal name for the library, and for plugins we
98 # also want to tell the linker to make all symbols in the library
99 # hidden except for the public entry point (making for a tidier library).
100 #
101 PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS) \
102 -install_name vamp-example-plugins.dylib \
103 -exported_symbols_list build/vamp-plugin.list
90 SDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS) -install_name libvamp-sdk.dylib 104 SDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS) -install_name libvamp-sdk.dylib
91 HOSTSDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS) -install_name libvamp-hostsdk.dylib 105 HOSTSDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS) -install_name libvamp-hostsdk.dylib
92
93 # Additional flags for making a plugin. This tells the linker to make
94 # all symbols in the library hidden except for the public entry point.
95 # It's not essential, but makes a tidier library.
96 PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS) -install_name vamp-example-plugins.dylib -exported_symbols_list build/vamp-plugin.list
97 106
98 107
99 ### End of user-serviceable parts 108 ### End of user-serviceable parts
100 109
101 110