annotate Makefile.cc-linux @ 32:9fe53dd1c41a matthiasm-plugin

Merge
author Chris Cannam
date Thu, 21 Oct 2010 20:56:27 +0100
parents da3195577172 e2b8b2a1cd9b
children cf8898a0174c
rev   line source
Chris@27 1
Chris@27 2 ## Skeleton Makefile for Vamp plugin builds using command-line tools.
Chris@27 3 ##
Chris@27 4 ## Rename this to Makefile, and edit as appropriate.
Chris@27 5 ## This Makefile WILL NOT WORK until you have edited it as described
Chris@27 6 ## below -- the Makefile as supplied does nothing useful at all!
Chris@27 7 ##
Chris@27 8 ## Various sets of options are provided, commented out -- just uncomment
Chris@27 9 ## (remove the '#' characters for) the set that most closely resembles
Chris@27 10 ## your own situation, and adjust to taste. Then run "make".
Chris@27 11 ##
Chris@27 12 ## (For Windows builds using MS Visual Studio, start instead with the
Chris@27 13 ## VampExamplePlugins project found in the build directory of the SDK.)
Chris@27 14
Chris@27 15
Chris@27 16 # Edit this to the base name of your plugin library
Chris@27 17 #
Chris@28 18 PLUGIN_LIBRARY_NAME = nnls-chroma
Chris@27 19
Chris@27 20 # Edit this to list one .o file for each .cpp file in your plugin project
Chris@27 21 #
Chris@27 22 PLUGIN_CODE_OBJECTS = chromamethods.o NNLSChroma.o plugins.o nnls.o
Chris@27 23
Chris@27 24 # Edit this to the location of the Vamp plugin SDK, relative to your
Chris@27 25 # project directory
Chris@27 26 #
Chris@28 27 VAMP_SDK_DIR = ../vamp-plugin-sdk
Chris@27 28
Chris@27 29
Chris@29 30 ARCHFLAGS = -O3 -ftree-vectorize -ffast-math
Chris@28 31
Chris@28 32 CFLAGS = $(ARCHFLAGS) -I$(VAMP_SDK_DIR) -Wall -fPIC
Chris@28 33 CXXFLAGS = $(ARCHFLAGS) -I$(VAMP_SDK_DIR) -Wall -fPIC
Chris@27 34 PLUGIN_EXT = .so
Chris@27 35 PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
Chris@28 36 LDFLAGS = -shared -Wl,-soname=$(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -Wl,--version-script=vamp-plugin.map
Chris@27 37
Chris@27 38
Chris@27 39
Chris@27 40
Chris@27 41 ## All of the above
Chris@27 42
Chris@27 43 $(PLUGIN): $(PLUGIN_CODE_OBJECTS)
Chris@27 44 $(CXX) -o $@ $^ $(LDFLAGS)
Chris@27 45
Chris@27 46 clean:
Chris@27 47 rm -f *.o
Chris@27 48