HDR = WSOLA.H  #hanning.H
LIBS1=-lsndfile
LIBS2=-lsndfile -lfft -lfftw3 -L/home/flatmax/lib

BIN     = $(DESTDIR)/usr/bin
DOC	= $(DESTDIR)/usr/share/doc/wsola
DEVDOC	= $(DESTDIR)/usr/share/doc/wsola-dev
MAN	= $(DESTDIR)/usr/share/man/man1
HDR	= $(DESTDIR)/usr/include/mffm

all:
	#	g++  -O4 $(LIBS1) WSOLATest.v1.C -o WSOLA.v1
	g++  -O4 $(LIBS2) WSOLATest.v4.C -o wsola.v4
#	g++  -O4 $(LIBS2) WSOLATest.v4.embedded.C -o wsola.v4.embedded
	mv wsola.v4 wsola

install:
	install -d $(BIN)
	#	install ./wsola.v4 $(BIN)
	install ./wsola $(BIN)
	install -d $(MAN)
	cp -a wsola.* $(MAN)

install.dev:
	install -d $(DEVDOC)
	install Makefile WSOLATest.v4.C $(DEVDOC)
	install -d $(HDR)
	install -m 0644 *.H $(HDR)

clean:
	rm -f *~ *.o *.dat WSOLA *.wav hanningTest build-stamp configure-stamp wsola wsola.v4 wsola.v4.embedded

