vamp-aubio.cat: added Mfcc
[vamp-aubio-plugins.git] / Makefile
index f10817d..5b36a09 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,23 +5,25 @@ PLUGINDIR     = plugins
 
 # Compile flags
 #
-CXXFLAGS       := -I/Users/cannam/code/inst/include $(CXXFLAGS) -fPIC -DNDEBUG -O2 -Wall -I.
+CFLAGS         := -fPIC -DDEBUG -O2 -Wall $(CFLAGS)
+CXXFLAGS       := $(CFLAGS)
+LDFLAGS        := -laubio $(LDFLAGS)
 
-# Libraries required for the plugins.  Note that we can (and actively
-# want to) statically link libstdc++, because our plugin exposes only
-# a C API so there are no boundary compatibility problems.
+# Libraries required for the plugins.
 #
-PLUGIN_LIBS    = -L/Users/cannam/code/inst/lib -lvamp-sdk -laubio 
+PLUGIN_LIBS    = -Wl,-Bstatic -lvamp-sdk -Wl,-Bdynamic
 
 # Flags required to tell the compiler to make a dynamically loadable object
 #
+PLUGIN_LDFLAGS = -shared -Wl,-Bsymbolic -Wl,--version-script=vamp-plugin.map
 
 # File extension for a dynamically loadable object
 #
+PLUGIN_EXT     = .so
 
 ## For OS/X with g++:
-PLUGIN_LDFLAGS = -dynamiclib -exported_symbols_list=vamp-plugin.list
-PLUGIN_EXT     = .dylib
+#PLUGIN_LDFLAGS        = -dynamiclib -exported_symbols_list=vamp-plugin.list
+#PLUGIN_EXT    = .dylib
 
 
 ### End of user-serviceable parts