# $Id: Makefile,v 1.2 2000/01/28 10:48:22 akira Exp $
# Makefile to build all verification program
#

MK = make
ALL = hvxc_ini_phase hvxc_fcomp segsnr

OBJ = hvxc_fcomp/main.o hvxc_fcomp/hvxcCommon.o hvxc_ini_phase/main.o segsnr/main.o

BIN = bin/hvxc_ini_phase bin/hvxc_fcomp bin/segsnr

# Heiko Purnhagen 20000801
# the following lines can set the local AFsp paths
ifdef AFSP_INCLUDE_PATH
override MFLAGS += includedir=$(AFSP_INCLUDE_PATH)
endif
ifdef AFSP_LIBRARY_PATH
override MFLAGS += libdir=$(AFSP_LIBRARY_PATH)
endif

all: $(ALL)

# harmonic phase initialization
hvxc_ini_phase:	bin/hvxc_ini_phase
bin/hvxc_ini_phase:
	-mkdir bin
	cd hvxc_ini_phase; make $(MFLAGS); mv hvxc_ini_phase ../bin

# all voiced bit stream
hvxc_fcomp:	bin/hvxc_fcomp
bin/hvxc_fcomp:
	-mkdir bin
	cd hvxc_fcomp; make $(MFLAGS); mv hvxc_fcomp ../bin

# segmental SNR calculation
segsnr:	bin/segsnr
bin/segsnr:
	-mkdir bin
	cd segsnr; make $(MFLAGS); mv segsnr ../bin

clean:
	rm -f $(OBJ) $(BIN)

