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