Revision 32:36638ec0b379
| Makefile | ||
|---|---|---|
| 1 |
|
|
| 2 |
#CXXFLAGS := -fPIC -g -DDEBUG_BEATROOT |
|
| 3 |
CXXFLAGS := -fPIC -O3 -Wall |
|
| 4 |
|
|
| 5 |
OBJECTS := BeatRootProcessor.o BeatRootVampPlugin.o Peaks.o Agent.o AgentList.o Induction.o BeatTracker.o |
|
| 6 |
|
|
| 7 |
HEADERS := Agent.h AgentList.h BeatRootProcessor.h BeatRootVampPlugin.h BeatTracker.h Event.h Induction.h Peaks.h |
|
| 8 |
|
|
| 9 |
beatroot-vamp.so: $(OBJECTS) $(HEADERS) |
|
| 10 |
g++ -g -shared $(OBJECTS) -o $@ -Wl,-Bstatic -lvamp-sdk -Wl,-Bdynamic -lpthread -Wl,--version-script=vamp-plugin.map |
|
| 11 |
|
|
| 12 |
clean: |
|
| 13 |
rm *.o |
|
| 14 |
|
|
| 15 |
# DO NOT DELETE |
|
| 16 |
|
|
| 17 |
Agent.o: Agent.h Event.h BeatTracker.h AgentList.h Induction.h |
|
| 18 |
AgentList.o: AgentList.h Agent.h Event.h |
|
| 19 |
BeatRootProcessor.o: BeatRootProcessor.h Peaks.h Event.h BeatTracker.h |
|
| 20 |
BeatRootProcessor.o: Agent.h AgentList.h Induction.h |
|
| 21 |
BeatRootVampPlugin.o: BeatRootVampPlugin.h BeatRootProcessor.h Peaks.h |
|
| 22 |
BeatRootVampPlugin.o: Event.h BeatTracker.h Agent.h AgentList.h Induction.h |
|
| 23 |
BeatTracker.o: BeatTracker.h Event.h Agent.h AgentList.h Induction.h |
|
| 24 |
Induction.o: Induction.h Agent.h Event.h AgentList.h |
|
| 25 |
Peaks.o: Peaks.h |
|
| 26 |
Agent.o: Event.h |
|
| 27 |
AgentList.o: Agent.h Event.h |
|
| 28 |
BeatRootProcessor.o: Peaks.h Event.h BeatTracker.h Agent.h AgentList.h |
|
| 29 |
BeatRootProcessor.o: Induction.h |
|
| 30 |
BeatTracker.o: Event.h Agent.h AgentList.h Induction.h |
|
| 31 |
Induction.o: Agent.h Event.h AgentList.h |
|
| Makefile.inc | ||
|---|---|---|
| 1 |
|
|
| 2 |
PLUGIN_EXT ?= .so |
|
| 3 |
|
|
| 4 |
CXX ?= g++ |
|
| 5 |
CC ?= gcc |
|
| 6 |
|
|
| 7 |
CFLAGS := $(CFLAGS) |
|
| 8 |
CXXFLAGS := -I. $(CXXFLAGS) |
|
| 9 |
|
|
| 10 |
PLUGIN := beatroot-vamp(PLUGIN_EXT) |
|
| 11 |
|
|
| 12 |
PLUGIN_LDFLAGS := $(LDFLAGS) $(PLUGIN_LDFLAGS) |
|
| 13 |
|
|
| 14 |
OBJECTS := BeatRootProcessor.o BeatRootVampPlugin.o Peaks.o Agent.o AgentList.o Induction.o BeatTracker.o |
|
| 15 |
|
|
| 16 |
HEADERS := Agent.h AgentList.h BeatRootProcessor.h BeatRootVampPlugin.h BeatTracker.h Event.h Induction.h Peaks.h |
|
| 17 |
|
|
| 18 |
$(PLUGIN): $(OBJECTS) $(HEADERS) |
|
| 19 |
$(CXX) -o $@ $^ $(PLUGIN_LDFLAGS) |
|
| 20 |
|
|
| 21 |
clean: |
|
| 22 |
rm *.o |
|
| 23 |
|
|
| 24 |
# DO NOT DELETE |
|
| 25 |
|
|
| 26 |
Agent.o: Agent.h Event.h BeatTracker.h AgentList.h Induction.h |
|
| 27 |
AgentList.o: AgentList.h Agent.h Event.h |
|
| 28 |
BeatRootProcessor.o: BeatRootProcessor.h Peaks.h Event.h BeatTracker.h |
|
| 29 |
BeatRootProcessor.o: Agent.h AgentList.h Induction.h |
|
| 30 |
BeatRootVampPlugin.o: BeatRootVampPlugin.h BeatRootProcessor.h Peaks.h |
|
| 31 |
BeatRootVampPlugin.o: Event.h BeatTracker.h Agent.h AgentList.h Induction.h |
|
| 32 |
BeatTracker.o: BeatTracker.h Event.h Agent.h AgentList.h Induction.h |
|
| 33 |
Induction.o: Induction.h Agent.h Event.h AgentList.h |
|
| 34 |
Peaks.o: Peaks.h |
|
| 35 |
Agent.o: Event.h |
|
| 36 |
AgentList.o: Agent.h Event.h |
|
| 37 |
BeatRootProcessor.o: Peaks.h Event.h BeatTracker.h Agent.h AgentList.h |
|
| 38 |
BeatRootProcessor.o: Induction.h |
|
| 39 |
BeatTracker.o: Event.h Agent.h AgentList.h Induction.h |
|
| 40 |
Induction.o: Agent.h Event.h AgentList.h |
|
| Makefile.linux | ||
|---|---|---|
| 1 |
|
|
| 2 |
CFLAGS := -fPIC -O3 -Wall |
|
| 3 |
CXXFLAGS := $(CFLAGS) |
|
| 4 |
|
|
| 5 |
PLUGIN_LDFLAGS := -shared -Wl,-Bstatic -L../vamp-plugin-sdk -lvamp-sdk -Wl,-Bdynamic -lpthread -Wl,--version-script=vamp-plugin.map |
|
| 6 |
|
|
| 7 |
PLUGIN_EXT := .so |
|
| 8 |
|
|
| 9 |
include Makefile.inc |
|
| Makefile.osx | ||
|---|---|---|
| 1 |
|
|
| 2 |
CFLAGS := -fPIC -O3 -Wall |
|
| 3 |
CXXFLAGS := $(CFLAGS) |
|
| 4 |
|
|
| 5 |
PLUGIN_LDFLAGS := -dynamiclib -lvamp-sdk -exported_symbols_list vamp-plugin.list |
|
| 6 |
|
|
| 7 |
PLUGIN_EXT := .dylib |
|
| 8 |
|
|
| 9 |
include Makefile.inc |
|
| vamp-plugin.list | ||
|---|---|---|
| 1 |
_vampGetPluginDescriptor |
|
Also available in: Unified diff