Chris@37: Chris@37: ## Makefile for Vamp plugin builds using command-line tools. Chris@37: ## Chris@37: ## This file defines all of the system-independent information about Chris@37: ## your project: the list of source files, plugin library name, etc. Chris@37: ## Edit this file to make sure it has all the right information. Chris@37: ## Chris@37: ## This file does not define the system-specific stuff such as which Chris@37: ## compiler to use -- that goes into Makefile.osx, Makefile.mingw32, Chris@37: ## Makefile.linux etc. Those files all include this file, so that Chris@37: ## they all have a consistent set of project data. Chris@37: ## Chris@37: ## To build the plugin project, type Chris@37: ## Chris@37: ## $ gmake -f Makefile.osx Chris@37: ## Chris@37: ## or whatever the equivalent filename suffix is for your platform. Chris@37: ## Chris@37: ## This requires GNU make, which is what you get with OS/X, Linux, or Chris@37: ## MinGW/Cygwin on Windows. Chris@37: ## Chris@37: ## (For Windows builds using MS Visual Studio, start instead with the Chris@37: ## VampExamplePlugins project found in the build directory of the SDK.) Chris@37: Chris@37: Chris@37: # Edit this to the base name of your plugin library Chris@37: # Chris@37: PLUGIN_LIBRARY_NAME := tempogram Chris@37: Chris@37: # Edit this to list the .cpp or .c files in your plugin project Chris@37: # Chris@37: PLUGIN_SOURCES := TempogramPlugin.cpp FIRFilter.cpp WindowFunction.cpp plugins.cpp NoveltyCurveProcessor.cpp SpectrogramProcessor.cpp AutocorrelationProcessor.cpp Chris@37: Chris@37: # Edit this to list the .h files in your plugin project Chris@37: # Chris@37: PLUGIN_HEADERS := TempogramPlugin.h FIRFilter.h WindowFunction.h NoveltyCurveProcessor.h SpectrogramProcessor.h AutocorrelationProcessor.h Chris@37: Chris@37: Chris@37: ## Normally you should not edit anything below this line Chris@37: Chris@37: SRC_DIR := . Chris@37: Chris@37: CFLAGS := $(ARCHFLAGS) $(CFLAGS) Chris@37: CXXFLAGS := $(CFLAGS) -I. -I$(VAMPSDK_DIR) $(CXXFLAGS) Chris@37: Chris@37: LDFLAGS := $(ARCHFLAGS) $(LDFLAGS) Chris@37: PLUGIN_LDFLAGS := $(LDFLAGS) $(PLUGIN_LDFLAGS) Chris@37: Chris@37: # Defaults, overridden from the platform-specific Makefile Chris@37: VAMPSDK_DIR ?= ../vamp-plugin-sdk Chris@37: PLUGIN_EXT ?= .so Chris@37: CXX ?= g++ Chris@37: CC ?= gcc Chris@37: Chris@37: PLUGIN := $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) Chris@37: Chris@37: PLUGIN_OBJECTS := $(PLUGIN_SOURCES:.cpp=.o) Chris@37: PLUGIN_OBJECTS := $(PLUGIN_OBJECTS:.c=.o) Chris@37: Chris@37: $(PLUGIN): $(PLUGIN_OBJECTS) Chris@37: $(CXX) -o $@ $^ $(PLUGIN_LDFLAGS) Chris@37: Chris@37: $(PLUGIN_OBJECTS): $(PLUGIN_HEADERS) Chris@37: Chris@37: clean: Chris@37: rm -f $(OBJECTS) Chris@37: Chris@37: distclean: clean Chris@37: rm -f $(PLUGIN) Chris@37: Chris@37: depend: Chris@37: makedepend -Y -fMakefile.inc $(SOURCES) $(HEADERS) Chris@37: