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