annotate spectrum-compare/Makefile.inc @ 7:7cdaaf6f64f1

More tests
author Chris Cannam
date Tue, 03 Feb 2015 13:43:02 +0000
parents 1924df3245f4
children
rev   line source
Chris@0 1
Chris@0 2 ## Makefile for Vamp plugin builds using command-line tools.
Chris@0 3 ##
Chris@0 4 ## This file defines all of the system-independent information about
Chris@0 5 ## your project: the list of source files, plugin library name, etc.
Chris@0 6 ## Edit this file to make sure it has all the right information.
Chris@0 7 ##
Chris@0 8 ## This file does not define the system-specific stuff such as which
Chris@0 9 ## compiler to use -- that goes into Makefile.osx, Makefile.mingw32,
Chris@0 10 ## Makefile.linux etc. Those files all include this file, so that
Chris@0 11 ## they all have a consistent set of project data.
Chris@0 12 ##
Chris@0 13 ## To build the plugin project, type
Chris@0 14 ##
Chris@0 15 ## $ gmake -f Makefile.osx
Chris@0 16 ##
Chris@0 17 ## or whatever the equivalent filename suffix is for your platform.
Chris@0 18 ##
Chris@0 19 ## This requires GNU make, which is what you get with OS/X, Linux, or
Chris@0 20 ## MinGW/Cygwin on Windows.
Chris@0 21 ##
Chris@0 22 ## (For Windows builds using MS Visual Studio, start instead with the
Chris@0 23 ## VampExamplePlugins project found in the build directory of the SDK.)
Chris@0 24
Chris@0 25
Chris@0 26 # Edit this to the base name of your plugin library
Chris@0 27 #
Chris@0 28 PLUGIN_LIBRARY_NAME := tuning-difference
Chris@0 29
Chris@0 30 # Edit this to list the .cpp or .c files in your plugin project
Chris@0 31 #
Chris@0 32 PLUGIN_SOURCES := TuningDifference.cpp plugins.cpp
Chris@0 33
Chris@0 34 # Edit this to list the .h files in your plugin project
Chris@0 35 #
Chris@0 36 PLUGIN_HEADERS := TuningDifference.h
Chris@0 37
Chris@0 38
Chris@0 39 ## Normally you should not edit anything below this line
Chris@0 40
Chris@0 41 SRC_DIR := .
Chris@0 42
Chris@0 43 CFLAGS := $(ARCHFLAGS) $(CFLAGS)
Chris@0 44 CXXFLAGS := $(CFLAGS) -I. -I$(VAMPSDK_DIR) $(CXXFLAGS)
Chris@0 45
Chris@0 46 LDFLAGS := $(ARCHFLAGS) $(LDFLAGS)
Chris@0 47 PLUGIN_LDFLAGS := $(LDFLAGS) $(PLUGIN_LDFLAGS)
Chris@0 48
Chris@0 49 # Defaults, overridden from the platform-specific Makefile
Chris@0 50 VAMPSDK_DIR ?= ../vamp-plugin-sdk
Chris@0 51 PLUGIN_EXT ?= .so
Chris@0 52 CXX ?= g++
Chris@0 53 CC ?= gcc
Chris@0 54
Chris@0 55 PLUGIN := $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
Chris@0 56
Chris@0 57 PLUGIN_OBJECTS := $(PLUGIN_SOURCES:.cpp=.o)
Chris@0 58 PLUGIN_OBJECTS := $(PLUGIN_OBJECTS:.c=.o)
Chris@0 59
Chris@0 60 $(PLUGIN): $(PLUGIN_OBJECTS)
Chris@0 61 $(CXX) -o $@ $^ $(PLUGIN_LDFLAGS)
Chris@0 62
Chris@0 63 $(PLUGIN_OBJECTS): $(PLUGIN_HEADERS)
Chris@0 64
Chris@0 65 clean:
Chris@0 66 rm -f $(PLUGIN_OBJECTS)
Chris@0 67
Chris@0 68 distclean: clean
Chris@0 69 rm -f $(PLUGIN)
Chris@0 70
Chris@0 71 depend:
Chris@0 72 makedepend -Y -fMakefile.inc $(PLUGIN_SOURCES) $(PLUGIN_HEADERS)
Chris@0 73
Chris@1 74 # DO NOT DELETE
Chris@1 75
Chris@1 76 TuningDifference.o: TuningDifference.h
Chris@1 77 plugins.o: TuningDifference.h