Mercurial > hg > vamp-fanchirp
view Makefile.inc @ 33:b21704074c9c spect tip
Ensure default parameter values match the actual internal defaults
author | Chris Cannam |
---|---|
date | Fri, 07 Feb 2020 11:49:39 +0000 |
parents | 390720c55c86 |
children |
line wrap: on
line source
## Makefile for Vamp plugin builds using command-line tools. ## ## This file defines all of the system-independent information about ## your project: the list of source files, plugin library name, etc. ## Edit this file to make sure it has all the right information. ## ## This file does not define the system-specific stuff such as which ## compiler to use -- that goes into Makefile.osx, Makefile.mingw32, ## Makefile.linux etc. Those files all include this file, so that ## they all have a consistent set of project data. ## ## To build the plugin project, type ## ## $ gmake -f Makefile.osx ## ## or whatever the equivalent filename suffix is for your platform. ## ## This requires GNU make, which is what you get with OS/X, Linux, or ## MinGW/Cygwin on Windows. ## ## (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 := fanchirp # Edit this to list the .cpp or .c files in your plugin project # PLUGIN_SOURCES := FChTransformF0gram.cpp FChTransformUtils.cpp plugins.cpp # Edit this to list the .h files in your plugin project # PLUGIN_HEADERS := FChTransformF0gram.h FChTransformUtils.h ## Normally you should not edit anything below this line SRC_DIR := . # Defaults, overridden from the platform-specific Makefile VAMPSDK_DIR ?= ext/vamp-plugin-sdk PLUGIN_EXT ?= .so CXX ?= g++ CC ?= gcc VAMP_SOURCES := \ $(VAMPSDK_DIR)/src/vamp-sdk/PluginAdapter.cpp \ $(VAMPSDK_DIR)/src/vamp-sdk/FFT.cpp \ $(VAMPSDK_DIR)/src/vamp-sdk/RealTime.cpp CFLAGS := $(ARCHFLAGS) $(CFLAGS) CXXFLAGS := $(CFLAGS) -I. -I$(VAMPSDK_DIR) -Iext/bqvec $(CXXFLAGS) LDFLAGS := $(ARCHFLAGS) $(LDFLAGS) PLUGIN_LDFLAGS := $(LDFLAGS) $(PLUGIN_LDFLAGS) PLUGIN := $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) PLUGIN_OBJECTS := $(PLUGIN_SOURCES:.cpp=.o) $(VAMP_SOURCES:.cpp=.o) PLUGIN_OBJECTS := $(PLUGIN_OBJECTS:.c=.o) $(PLUGIN): $(PLUGIN_OBJECTS) $(CXX) -o $@ $^ $(PLUGIN_LDFLAGS) $(PLUGIN_OBJECTS): .repoint.point $(PLUGIN_HEADERS) .repoint.point: repoint-project.json ./repoint install clean: rm -f $(PLUGIN_OBJECTS) distclean: clean rm -f $(PLUGIN) depend: makedepend -Y -fMakefile.inc $(PLUGIN_SOURCES) $(PLUGIN_HEADERS)