.hgsub*: removed mercurial stuff
[vamp-aubio-plugins.git] / Makefile
index 576d93c..5b36a09 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,35 +1,28 @@
 
-# Location of Vamp SDK
-#
-VAMPDIR                = ../vamp-plugin-sdk
-VAMPLIBDIR     = $(VAMPDIR)/vamp-sdk
-
 # Location of our plugins
 #
 PLUGINDIR      = plugins
 
 # Compile flags
 #
-CXXFLAGS       := $(CXXFLAGS) -g -Wall -I$(VAMPDIR) -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$(VAMPLIBDIR) -lvamp-sdk -laubio
-#PLUGIN_LIBS   = -L$(VAMPLIBDIR) -lvamp-sdk /usr/lib/libaubio.a /usr/lib/libfftw3f.a
-#PLUGIN_LIBS   = -L$(VAMPLIBDIR) -lvamp-sdk $(shell g++ -print-file-name=libstdc++.a)
+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 -static-libgcc
+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
+#PLUGIN_LDFLAGS        = -dynamiclib -exported_symbols_list=vamp-plugin.list
 #PLUGIN_EXT    = .dylib