annotate Makefile.inc @ 69:c0b78dcc08e6 feature-alternatives tip

Some experimental feature adjustments - try using diffs between chroma cells (no better at first glance)
author Chris Cannam
date Fri, 16 Aug 2019 12:28:58 +0100
parents eace35be49f5
children
rev   line source
Chris@0 1
Chris@0 2 # Edit this to the base name of your plugin library
Chris@0 3 #
Chris@0 4 PLUGIN_LIBRARY_NAME := tuning-difference
Chris@0 5
Chris@0 6 # Edit this to list the .cpp or .c files in your plugin project
Chris@0 7 #
Chris@55 8 PLUGIN_SOURCES := src/TuningDifference.cpp src/plugins.cpp
Chris@0 9
Chris@0 10 # Edit this to list the .h files in your plugin project
Chris@0 11 #
Chris@55 12 PLUGIN_HEADERS := src/TuningDifference.h
Chris@0 13
Chris@0 14
Chris@0 15 ## Normally you should not edit anything below this line
Chris@0 16
Chris@0 17 SRC_DIR := .
Chris@0 18
Chris@0 19 CFLAGS := $(ARCHFLAGS) $(CFLAGS)
Chris@21 20 CXXFLAGS := $(CFLAGS) -I. -I$(VAMPSDK_DIR) -Iconstant-q-cpp $(CXXFLAGS)
Chris@0 21
Chris@21 22 LDFLAGS := $(ARCHFLAGS) $(LDFLAGS) -Lconstant-q-cpp -lcq
Chris@0 23 PLUGIN_LDFLAGS := $(LDFLAGS) $(PLUGIN_LDFLAGS)
Chris@0 24
Chris@0 25 # Defaults, overridden from the platform-specific Makefile
Chris@0 26 VAMPSDK_DIR ?= ../vamp-plugin-sdk
Chris@0 27 PLUGIN_EXT ?= .so
Chris@0 28 CXX ?= g++
Chris@0 29 CC ?= gcc
Chris@0 30
Chris@0 31 PLUGIN := $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
Chris@0 32
Chris@0 33 PLUGIN_OBJECTS := $(PLUGIN_SOURCES:.cpp=.o)
Chris@0 34 PLUGIN_OBJECTS := $(PLUGIN_OBJECTS:.c=.o)
Chris@0 35
Chris@21 36 all: constant-q-cpp $(PLUGIN)
Chris@21 37
Chris@21 38 .PHONY: constant-q-cpp
Chris@21 39 constant-q-cpp:
Chris@21 40 $(MAKE) -C $@ -f Makefile$(MAKEFILE_EXT) libcq.a
Chris@21 41
Chris@0 42 $(PLUGIN): $(PLUGIN_OBJECTS)
Chris@0 43 $(CXX) -o $@ $^ $(PLUGIN_LDFLAGS)
Chris@0 44
Chris@0 45 $(PLUGIN_OBJECTS): $(PLUGIN_HEADERS)
Chris@0 46
Chris@61 47 test: all
Chris@47 48 bash test/regression.sh
Chris@47 49
Chris@0 50 clean:
Chris@0 51 rm -f $(PLUGIN_OBJECTS)
Chris@21 52 $(MAKE) -C constant-q-cpp -f Makefile$(MAKEFILE_EXT) clean
Chris@0 53
Chris@0 54 distclean: clean
Chris@0 55 rm -f $(PLUGIN)
Chris@0 56
Chris@0 57 depend:
Chris@0 58 makedepend -Y -fMakefile.inc $(PLUGIN_SOURCES) $(PLUGIN_HEADERS)
Chris@0 59
Chris@1 60 # DO NOT DELETE
Chris@1 61
Chris@21 62 src/TuningDifference.o: src/TuningDifference.h
Chris@21 63 src/plugins.o: src/TuningDifference.h