annotate qm-dsp-decimate/Makefile @ 28:69ee50c19c0c tip

Add decimate-b
author Chris Cannam
date Tue, 22 Oct 2013 08:59:42 +0100
parents 96e9b4e2ae86
children
rev   line source
Chris@0 1
Chris@9 2 DEFINES := -DUSE_PTHREADS
Chris@9 3
Chris@9 4 CFLAGS := -I../.. $(CFLAGS) $(DEFINES)
Chris@0 5
Chris@12 6 #CXXFLAGS := -I../.. -Wall -g $(CXXFLAGS) $(DEFINES)
Chris@12 7 CXXFLAGS := -I../.. -Wall -O3 -ffast-math -ftree-vectorize $(CXXFLAGS) $(DEFINES)
Chris@12 8
Chris@12 9 LIBS := ../../qm-dsp/libqm-dsp.a -lpthread
Chris@12 10 PROGRAM_LIBS := -lsndfile
Chris@12 11
Chris@12 12 LDFLAGS := $(LDFLAGS)
Chris@0 13
Chris@28 14 PROGRAMS := decimate decimate-b
Chris@0 15
Chris@7 16 #VG := valgrind
Chris@4 17
Chris@28 18 all: $(PROGRAMS)
Chris@0 19
Chris@15 20 decimate: decimate.o
Chris@12 21 $(CXX) -o $@ $^ $(LDFLAGS) $(LIBS) $(PROGRAM_LIBS)
Chris@12 22
Chris@28 23 decimate-b: decimate-b.o
Chris@28 24 $(CXX) -o $@ $^ $(LDFLAGS) $(LIBS) $(PROGRAM_LIBS)
Chris@28 25
Chris@28 26 decimate-b.o: decimate.cpp
Chris@28 27 $(CXX) -c -o $@ $^ $(CXXFLAGS) -DDECIMATE_B=1
Chris@28 28
Chris@0 29 clean:
Chris@24 30 rm -f *.o
Chris@0 31