matthiasm@0: PLUGIN_LIBRARY_NAME = matthiasm matthiasm@0: matthiasm@0: # Edit this to list one .o file for each .cpp file in your plugin project matthiasm@0: # mail@34: PLUGIN_CODE_OBJECTS = NNLSChroma.o plugins.o nnls.o chromamethods.o matthiasm@0: matthiasm@0: # Edit this to the location of the Vamp plugin SDK, relative to your matthiasm@0: # project directory matthiasm@0: # matthiasm@0: VAMP_SDK_DIR = ../vamp-plugin-sdk matthiasm@0: QMDSP_DIR = ../qm-dsp/build/osx/20091028 Chris@26: BOOST_ROOT = ../boost_1_44_0 matthiasm@0: matthiasm@0: matthiasm@0: ## Uncomment these for an OS/X native build using command-line tools: mail@34: ARCHFLAGS = -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -arch i386 Chris@26: CFLAGS = $(ARCHFLAGS) -Wall -fPIC -g Chris@26: CXXFLAGS = $(CFLAGS) -I$(VAMP_SDK_DIR) -I$(BOOST_ROOT) matthiasm@0: PLUGIN_EXT = .dylib matthiasm@0: PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) Chris@26: LDFLAGS = $(ARCHFLAGS) -dynamiclib -install_name $(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -exported_symbols_list vamp-plugin.list -framework Accelerate matthiasm@0: matthiasm@0: matthiasm@0: $(PLUGIN): $(PLUGIN_CODE_OBJECTS) matthiasm@0: $(CXX) -o $@ $^ $(LDFLAGS) matthiasm@0: matthiasm@8: NNLSChroma.o: NNLSChroma.h matthiasm@8: plugins.o: NNLSChroma.h matthiasm@8: Chris@26: nnls.o: nnls.c # not nnls.f Chris@26: matthiasm@0: clean: matthiasm@0: rm -f *.o matthiasm@0: