Chris@0: Chris@9: DEFINES := -DUSE_PTHREADS Chris@9: Chris@9: CFLAGS := -I../.. $(CFLAGS) $(DEFINES) Chris@0: Chris@12: #CXXFLAGS := -I../.. -Wall -g $(CXXFLAGS) $(DEFINES) Chris@12: CXXFLAGS := -I../.. -Wall -O3 -ffast-math -ftree-vectorize $(CXXFLAGS) $(DEFINES) Chris@12: Chris@12: LIBS := ../../qm-dsp/libqm-dsp.a -lpthread Chris@12: PROGRAM_LIBS := -lsndfile Chris@12: Chris@12: LDFLAGS := $(LDFLAGS) Chris@0: Chris@28: PROGRAMS := decimate decimate-b Chris@0: Chris@7: #VG := valgrind Chris@4: Chris@28: all: $(PROGRAMS) Chris@0: Chris@15: decimate: decimate.o Chris@12: $(CXX) -o $@ $^ $(LDFLAGS) $(LIBS) $(PROGRAM_LIBS) Chris@12: Chris@28: decimate-b: decimate-b.o Chris@28: $(CXX) -o $@ $^ $(LDFLAGS) $(LIBS) $(PROGRAM_LIBS) Chris@28: Chris@28: decimate-b.o: decimate.cpp Chris@28: $(CXX) -c -o $@ $^ $(CXXFLAGS) -DDECIMATE_B=1 Chris@28: Chris@0: clean: Chris@24: rm -f *.o Chris@0: