Mercurial > hg > vamp-test-plugin
annotate Makefile @ 18:014cce47e998
Add an output that returns some actual feature of the input channels (also counting the channels, effectively)
author | Chris Cannam |
---|---|
date | Tue, 02 Dec 2014 18:02:36 +0000 |
parents | fc0bd104db01 |
children |
rev | line source |
---|---|
Chris@0 | 1 |
Chris@0 | 2 PLUGIN_LIBRARY_NAME := vamp-test-plugin |
Chris@0 | 3 |
Chris@0 | 4 PLUGIN_SOURCES := VampTestPlugin.cpp plugins.cpp |
Chris@0 | 5 |
Chris@0 | 6 PLUGIN_HEADERS := VampTestPlugin.h |
Chris@0 | 7 |
Chris@0 | 8 VAMP_SDK_DIR := ../vamp-plugin-sdk |
Chris@0 | 9 |
Chris@0 | 10 |
Chris@0 | 11 CXXFLAGS := -I$(VAMP_SDK_DIR) -Wall -fPIC |
Chris@0 | 12 PLUGIN_EXT := .so |
Chris@0 | 13 LDFLAGS := -shared -Wl,-soname=$(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT) $(VAMP_SDK_DIR)/libvamp-sdk.a -Wl,--version-script=vamp-plugin.map |
Chris@0 | 14 |
Chris@0 | 15 |
Chris@0 | 16 PLUGIN_OBJECTS := $(PLUGIN_SOURCES:.cpp=.o) |
Chris@0 | 17 PLUGIN_OBJECTS := $(PLUGIN_OBJECTS:.c=.o) |
Chris@0 | 18 |
Chris@0 | 19 $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT): $(PLUGIN_OBJECTS) |
Chris@0 | 20 $(CXX) -o $@ $^ $(LDFLAGS) |
Chris@0 | 21 |
Chris@0 | 22 $(PLUGIN_OBJECTS): $(PLUGIN_HEADERS) |
Chris@0 | 23 |
Chris@0 | 24 clean: |
Chris@0 | 25 rm -f *.o |
Chris@0 | 26 |