annotate Makefile.cc-linux @ 29:da3195577172 matthiasm-plugin

* Revert to the previous version of nnls.c[c], which used single-precision floats (better for us). But we don't like the static local variables -- change those for thread-safety.
author Chris Cannam
date Thu, 21 Oct 2010 20:50:22 +0100
parents 52b6dbd61553
children 9fe53dd1c41a
rev   line source
matthiasm@0 1
matthiasm@0 2 ## Skeleton Makefile for Vamp plugin builds using command-line tools.
matthiasm@0 3 ##
matthiasm@0 4 ## Rename this to Makefile, and edit as appropriate.
matthiasm@0 5 ## This Makefile WILL NOT WORK until you have edited it as described
matthiasm@0 6 ## below -- the Makefile as supplied does nothing useful at all!
matthiasm@0 7 ##
matthiasm@0 8 ## Various sets of options are provided, commented out -- just uncomment
matthiasm@0 9 ## (remove the '#' characters for) the set that most closely resembles
matthiasm@0 10 ## your own situation, and adjust to taste. Then run "make".
matthiasm@0 11 ##
matthiasm@0 12 ## (For Windows builds using MS Visual Studio, start instead with the
matthiasm@0 13 ## VampExamplePlugins project found in the build directory of the SDK.)
matthiasm@0 14
matthiasm@0 15
matthiasm@0 16 # Edit this to the base name of your plugin library
matthiasm@0 17 #
Chris@28 18 PLUGIN_LIBRARY_NAME = nnls-chroma
matthiasm@0 19
matthiasm@0 20 # Edit this to list one .o file for each .cpp file in your plugin project
matthiasm@0 21 #
Chris@27 22 PLUGIN_CODE_OBJECTS = chromamethods.o NNLSChroma.o plugins.o nnls.o
matthiasm@0 23
matthiasm@0 24 # Edit this to the location of the Vamp plugin SDK, relative to your
matthiasm@0 25 # project directory
matthiasm@0 26 #
Chris@28 27 VAMP_SDK_DIR = ../vamp-plugin-sdk
matthiasm@0 28
matthiasm@0 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
matthiasm@0 34 PLUGIN_EXT = .so
matthiasm@0 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
matthiasm@0 37
matthiasm@0 38
matthiasm@0 39
matthiasm@0 40
matthiasm@0 41 ## All of the above
matthiasm@0 42
matthiasm@0 43 $(PLUGIN): $(PLUGIN_CODE_OBJECTS)
matthiasm@0 44 $(CXX) -o $@ $^ $(LDFLAGS)
matthiasm@0 45
matthiasm@0 46 clean:
matthiasm@0 47 rm -f *.o
matthiasm@0 48