Mercurial > hg > nnls-chroma
diff Makefile.cc-linux @ 31:e2b8b2a1cd9b matthiasm-plugin
* More tidying
author | Chris Cannam |
---|---|
date | Thu, 21 Oct 2010 19:23:02 +0100 |
parents | 690bd9148467 |
children | 9fe53dd1c41a |
line wrap: on
line diff
--- a/Makefile.cc-linux Thu Oct 21 16:34:58 2010 +0100 +++ b/Makefile.cc-linux Thu Oct 21 19:23:02 2010 +0100 @@ -1,49 +1,47 @@ - -## 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 = matthiasm - -# 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 = /work/vamp-plugin-sdk -QMDSP_DIR = /work/qm-dsp -NNLS_DIR = ../tsnnls/tsnnls - - -CFLAGS = -I$(VAMP_SDK_DIR) -I$(LAPACK_DIR) -I$(NNLS_DIR) -Wall -fPIC -CXXFLAGS = -I$(VAMP_SDK_DIR) -I$(LAPACK_DIR) -I$(NNLS_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 $(QMDSP_DIR)/libqm-dsp.a ../tsnnls/tsnnls/.libs/libtsnnls.a -llapack-3 -LDFLAGS = -shared -Wl,-soname=$(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -Wl,--version-script=vamp-plugin.map $(QMDSP_DIR)/libqm-dsp.a - - - - -## All of the above - -$(PLUGIN): $(PLUGIN_CODE_OBJECTS) - $(CXX) -o $@ $^ $(LDFLAGS) - -clean: - rm -f *.o - + +## 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 = matthiasm + +# 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 = /work/vamp-plugin-sdk +QMDSP_DIR = /work/qm-dsp + +CFLAGS = -I$(VAMP_SDK_DIR) -Wall -fPIC +CXXFLAGS = -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 $(QMDSP_DIR)/libqm-dsp.a ../tsnnls/tsnnls/.libs/libtsnnls.a -llapack-3 +LDFLAGS = -shared -Wl,-soname=$(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -Wl,--version-script=vamp-plugin.map $(QMDSP_DIR)/libqm-dsp.a + + + + +## All of the above + +$(PLUGIN): $(PLUGIN_CODE_OBJECTS) + $(CXX) -o $@ $^ $(LDFLAGS) + +clean: + rm -f *.o +