Mercurial > hg > nnls-chroma
view Makefile.cc-linux @ 30:608b0c8ad3f8 matthiasm-plugin
* Use proper Vamp path to look up chord.dict
author | Chris Cannam |
---|---|
date | Thu, 21 Oct 2010 21:48:04 +0100 |
parents | da3195577172 |
children | 9fe53dd1c41a |
line wrap: on
line source
## Skeleton Makefile for Vamp plugin builds using command-line tools. ## ## Rename this to Makefile, and edit as appropriate. ## This Makefile WILL NOT WORK until you have edited it as described ## below -- the Makefile as supplied does nothing useful at all! ## ## Various sets of options are provided, commented out -- just uncomment ## (remove the '#' characters for) the set that most closely resembles ## your own situation, and adjust to taste. Then run "make". ## ## (For Windows builds using MS Visual Studio, start instead with the ## VampExamplePlugins project found in the build directory of the SDK.) # Edit this to the base name of your plugin library # PLUGIN_LIBRARY_NAME = nnls-chroma # Edit this to list one .o file for each .cpp file in your plugin project # PLUGIN_CODE_OBJECTS = chromamethods.o NNLSChroma.o plugins.o nnls.o # Edit this to the location of the Vamp plugin SDK, relative to your # project directory # VAMP_SDK_DIR = ../vamp-plugin-sdk ARCHFLAGS = -O3 -ftree-vectorize -ffast-math CFLAGS = $(ARCHFLAGS) -I$(VAMP_SDK_DIR) -Wall -fPIC CXXFLAGS = $(ARCHFLAGS) -I$(VAMP_SDK_DIR) -Wall -fPIC PLUGIN_EXT = .so PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) LDFLAGS = -shared -Wl,-soname=$(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -Wl,--version-script=vamp-plugin.map ## All of the above $(PLUGIN): $(PLUGIN_CODE_OBJECTS) $(CXX) -o $@ $^ $(LDFLAGS) clean: rm -f *.o