changeset 136:011d4fc47ebf

* Some Makefile bits
author Chris Cannam <c.cannam@qmul.ac.uk>
date Wed, 09 Feb 2011 14:26:13 +0000
parents dcf5800f0f00
children ed55dc6aabf5 08e7722d4fb0
files build/general/Makefile.inc build/linux/Makefile.linux build/linux/Makefile.linux64
diffstat 3 files changed, 69 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build/general/Makefile.inc	Wed Feb 09 14:26:13 2011 +0000
@@ -0,0 +1,51 @@
+
+PLUGIN_EXT	?= .so
+PLUGIN	?= qm-vamp-plugins$(PLUGIN_EXT)
+CXX	?= g++
+CC	?= gcc
+
+CFLAGS	:= $(CFLAGS) -I. -I../qm-dsp
+CXXFLAGS	:= $(CXXFLAGS) -I. -I../qm-dsp
+LDFLAGS		:= -L../qm-dsp $(LDFLAGS)
+
+HEADERS := plugins/AdaptiveSpectrogram.h \
+           plugins/BarBeatTrack.h \
+           plugins/BeatTrack.h \
+           plugins/DWT.h \
+           plugins/OnsetDetect.h \
+           plugins/ChromagramPlugin.h \
+           plugins/ConstantQSpectrogram.h \
+           plugins/KeyDetect.h \
+           plugins/MFCCPlugin.h \
+           plugins/SegmenterPlugin.h \
+           plugins/SimilarityPlugin.h \
+           plugins/TonalChangeDetect.h \
+           plugins/Transcription.h
+
+SOURCES := g2cstubs.c \
+           plugins/AdaptiveSpectrogram.cpp \
+           plugins/BarBeatTrack.cpp \
+           plugins/BeatTrack.cpp \
+           plugins/DWT.cpp \
+           plugins/OnsetDetect.cpp \
+           plugins/ChromagramPlugin.cpp \
+           plugins/ConstantQSpectrogram.cpp \
+           plugins/KeyDetect.cpp \
+           plugins/MFCCPlugin.cpp \
+           plugins/SegmenterPlugin.cpp \
+           plugins/SimilarityPlugin.cpp \
+           plugins/TonalChangeDetect.cpp \
+           plugins/Transcription.cpp \
+           libmain.cpp
+
+OBJECTS := $(SOURCES:.cpp=.o)
+OBJECTS := $(OBJECTS:.c=.o)
+
+$(PLUGIN):	$(OBJECTS)
+		$(CXX) -o $@ $^ $(LDFLAGS)
+
+clean:		
+		rm $(OBJECTS)
+
+distclean:	clean
+		rm $(PLUGIN)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build/linux/Makefile.linux	Wed Feb 09 14:26:13 2011 +0000
@@ -0,0 +1,9 @@
+
+CFLAGS := -DNDEBUG -O3 -fno-exceptions -fPIC -ffast-math -msse -mfpmath=sse -ftree-vectorize -fomit-frame-pointer -DUSE_PTHREADS
+
+CXXFLAGS := $(CFLAGS)
+
+LDFLAGS	 := -Wl,-Bstatic -lqm-dsp -lvamp-sdk -L/usr/lib/sse2/atlas -L/usr/lib/atlas/sse -llapack -lblas -Wl,-Bdynamic -lpthread -Wl,--version-script=vamp-plugin.map
+
+include build/general/Makefile.inc
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build/linux/Makefile.linux64	Wed Feb 09 14:26:13 2011 +0000
@@ -0,0 +1,9 @@
+
+CFLAGS := -DNDEBUG -O3 -fno-exceptions -fPIC -ffast-math -msse -msse2 -mfpmath=sse -ftree-vectorize -fomit-frame-pointer -DUSE_PTHREADS
+
+CXXFLAGS := $(CFLAGS)
+
+LDFLAGS	 := -shared -Lbuild/linux/amd64 -Wl,-Bstatic -lqm-dsp -lvamp-sdk -L/usr/lib/sse2/atlas -L/usr/lib/atlas/sse -llapack -lcblas -latlas -Wl,-Bdynamic -lpthread -Wl,--version-script=vamp-plugin.map
+
+include build/general/Makefile.inc
+