annotate build/general/Makefile.inc @ 315:11bf038ecfb5

* Add basic Linux Makefiles
author Chris Cannam <c.cannam@qmul.ac.uk>
date Wed, 09 Feb 2011 11:16:56 +0000
parents b5987e82c5f6
children f47182362b51
rev   line source
c@315 1
c@315 2 LIBRARY ?= libqm-dsp.a
c@315 3 CXX ?= g++
c@315 4 CC ?= gcc
c@315 5 AR ?= ar
c@315 6 RANLIB ?= ranlib
c@315 7
c@315 8 CFLAGS := $(CFLAGS) -I.
c@315 9 CXXFLAGS := $(CXXFLAGS) -I.
c@314 10
c@314 11 HEADERS := base/Pitch.h \
c@314 12 base/Window.h \
c@314 13 dsp/chromagram/Chromagram.h \
c@314 14 dsp/chromagram/ConstantQ.h \
c@314 15 dsp/keydetection/GetKeyMode.h \
c@314 16 dsp/mfcc/MFCC.h \
c@314 17 dsp/onsets/DetectionFunction.h \
c@314 18 dsp/onsets/PeakPicking.h \
c@314 19 dsp/phasevocoder/PhaseVocoder.h \
c@314 20 dsp/rateconversion/Decimator.h \
c@314 21 dsp/rhythm/BeatSpectrum.h \
c@314 22 dsp/segmentation/cluster_melt.h \
c@314 23 dsp/segmentation/ClusterMeltSegmenter.h \
c@314 24 dsp/segmentation/cluster_segmenter.h \
c@314 25 dsp/segmentation/Segmenter.h \
c@314 26 dsp/segmentation/segment.h \
c@314 27 dsp/signalconditioning/DFProcess.h \
c@314 28 dsp/signalconditioning/Filter.h \
c@314 29 dsp/signalconditioning/FiltFilt.h \
c@314 30 dsp/signalconditioning/Framer.h \
c@314 31 dsp/tempotracking/DownBeat.h \
c@314 32 dsp/tempotracking/TempoTrack.h \
c@314 33 dsp/tempotracking/TempoTrackV2.h \
c@314 34 dsp/tonal/ChangeDetectionFunction.h \
c@314 35 dsp/tonal/TCSgram.h \
c@314 36 dsp/tonal/TonalEstimator.h \
c@314 37 dsp/transforms/FFT.h \
c@314 38 dsp/wavelet/Wavelet.h \
c@314 39 hmm/hmm.h \
c@314 40 maths/Correlation.h \
c@314 41 maths/CosineDistance.h \
c@314 42 maths/KLDivergence.h \
c@314 43 maths/MathAliases.h \
c@314 44 maths/MathUtilities.h \
c@314 45 maths/Polyfit.h \
c@314 46 maths/pca/pca.h \
c@314 47 thread/AsynchronousTask.h \
c@314 48 thread/BlockAllocator.h \
c@314 49 thread/Thread.h
c@314 50
c@314 51 SOURCES := base/Pitch.cpp \
c@314 52 dsp/chromagram/Chromagram.cpp \
c@314 53 dsp/chromagram/ConstantQ.cpp \
c@314 54 dsp/keydetection/GetKeyMode.cpp \
c@314 55 dsp/mfcc/MFCC.cpp \
c@314 56 dsp/onsets/DetectionFunction.cpp \
c@314 57 dsp/onsets/PeakPicking.cpp \
c@314 58 dsp/phasevocoder/PhaseVocoder.cpp \
c@314 59 dsp/rateconversion/Decimator.cpp \
c@314 60 dsp/rhythm/BeatSpectrum.cpp \
c@314 61 dsp/segmentation/cluster_melt.c \
c@314 62 dsp/segmentation/ClusterMeltSegmenter.cpp \
c@314 63 dsp/segmentation/cluster_segmenter.c \
c@314 64 dsp/segmentation/Segmenter.cpp \
c@314 65 dsp/signalconditioning/DFProcess.cpp \
c@314 66 dsp/signalconditioning/Filter.cpp \
c@314 67 dsp/signalconditioning/FiltFilt.cpp \
c@314 68 dsp/signalconditioning/Framer.cpp \
c@314 69 dsp/tempotracking/DownBeat.cpp \
c@314 70 dsp/tempotracking/TempoTrack.cpp \
c@314 71 dsp/tempotracking/TempoTrackV2.cpp \
c@314 72 dsp/tonal/ChangeDetectionFunction.cpp \
c@314 73 dsp/tonal/TCSgram.cpp \
c@314 74 dsp/tonal/TonalEstimator.cpp \
c@314 75 dsp/transforms/FFT.cpp \
c@314 76 dsp/wavelet/Wavelet.cpp \
c@314 77 hmm/hmm.c \
c@314 78 maths/Correlation.cpp \
c@314 79 maths/CosineDistance.cpp \
c@314 80 maths/KLDivergence.cpp \
c@314 81 maths/MathUtilities.cpp \
c@314 82 maths/pca/pca.c \
c@314 83 thread/Thread.cpp
c@314 84
c@314 85 OBJECTS := $(SOURCES:.cpp=.o)
c@314 86 OBJECTS := $(OBJECTS:.c=.o)
c@314 87
c@315 88 $(LIBRARY): $(OBJECTS)
c@315 89 $(AR) cr $@ $^
c@315 90 $(RANLIB) $@
c@315 91
c@315 92 clean:
c@315 93 rm $(OBJECTS)
c@315 94
c@315 95 distclean: clean
c@315 96 rm $(LIBRARY)