Update plugin version numbers, remove API version back compatibility (API v1 is now...
[vamp-aubio-plugins.git] / Makefile
1
2 # Location of our plugins
3 #
4 PLUGINDIR       = plugins
5
6 # Compile flags
7 #
8 CXXFLAGS        := -I../ -I../inst/include $(CXXFLAGS) -fPIC -DNDEBUG -O2 -Wall -I.
9
10 # Libraries required for the plugins.  Note that we can (and actively
11 # want to) statically link libstdc++, because our plugin exposes only
12 # a C API so there are no boundary compatibility problems.
13 #
14 PLUGIN_LIBS     = -L../inst/lib -lvamp-sdk -laubio 
15
16 # Flags required to tell the compiler to make a dynamically loadable object
17 #
18
19 # File extension for a dynamically loadable object
20 #
21
22 ## For OS/X with g++:
23 PLUGIN_LDFLAGS  = -dynamiclib -exported_symbols_list=vamp-plugin.list
24 PLUGIN_EXT      = .dylib
25
26
27 ### End of user-serviceable parts
28
29 PLUGIN_OBJECTS  = libmain.o $(patsubst %.cpp,%.o,$(wildcard $(PLUGINDIR)/*.cpp))
30 PLUGIN_HEADERS  = $(patsubst %.cpp,%.h,$(wildcard $(PLUGINDIR)/*.cpp))
31 PLUGIN_TARGET   = vamp-aubio$(PLUGIN_EXT)
32
33 all:            $(PLUGIN_TARGET)
34
35 $(PLUGIN_TARGET):       $(PLUGIN_OBJECTS) $(PLUGIN_HEADERS)
36                 $(CXX) $(LDFLAGS) $(PLUGIN_LDFLAGS) -o $@ $(PLUGIN_OBJECTS) $(PLUGIN_LIBS)
37
38 clean:          
39                 rm -f $(PLUGIN_OBJECTS)
40
41 distclean:      clean
42                 rm -f $(PLUGIN_TARGET) *~ */*~
43
44