# UNIX HTK TOOLS MAKEFILE for only HDRest HDERest and HDVite # # # This makefile will build executables for each HTK Basic # tools. To build a specific tool type # make HTool # To build all tools type # make all # When compiled on a machine XXX, the executables are stored in # a directory called bin.XXX which must already exist. # # When invoked it expects to have the following environment variables # set # CPU - set to the machine name # HTKCC - name of C compiler (either cc or gcc) # HTKCF - compiler flags # HTKLF - linker flags # HBIN - the directory containing "bin.$CPU" # # Suggested settings are # CPU HTKCC HTKCF HTKLF # SGI: sgi cc -O -DSGI_AUDIO -lmalloc -laudio # HP: hp700 cc +e -O -I/usr/include/X11R5 -I/usr/include/audio -I/opt/audio/include -D_HPUX_SOURCE -Aa -DHPUX_AUDIO -DUSE_TIMER -lAlib # Sun: sun4_solaris gcc -ansi -I/usr/openwin/include -O2 -DSOLARIS16_AUDIO -DBSD_COMP -ldl -lsocket -lnsl -lintl # Linux:linux gcc -ansi -O2 -DOSS_AUDIO -L/usr/X11R6/lib # # When running in a multiple machine environment, type # make clean # before recompiling for a new machine and # make cleanup # afterwards. # hlib = ../HDKLib HLIBS = $(hlib)/HTKLib.$(CPU).a CC = $(HTKCC) CFLAGS = -I$(hlib) $(HTKCF) all: HDERest HDRest HDVite HDHEd HDInit HDERest: $(hlib)/HTKLib.$(CPU).a HDERest.o $(CC) HDERest.o $(HLIBS) -lm $(HTKLF) mv a.out $(HBIN)/bin.$(CPU)/HDERest HDRest: $(hlib)/HTKLib.$(CPU).a HDRest.o $(CC) HDRest.o $(HLIBS) -lm $(HTKLF) mv a.out $(HBIN)/bin.$(CPU)/HDRest HDVite: $(hlib)/HTKLib.$(CPU).a HDVite.o $(CC) HDVite.o $(HLIBS) -lm $(HTKLF) mv a.out $(HBIN)/bin.$(CPU)/HDVite HDHEd: $(hlib)/HTKLib.$(CPU).a HDHEd.o $(CC) HDHEd.o $(HLIBS) -lm $(HTKLF) mv a.out $(HBIN)/bin.$(CPU)/HDHEd HDInit: $(hlib)/HTKLib.$(CPU).a HDInit.o $(CC) HDInit.o $(HLIBS) -lm $(HTKLF) mv a.out $(HBIN)/bin.$(CPU)/HDInit clean: -rm -f *.o *.cpu touch $(CPU).cpu cleanup: -rm -f *.o *.cpu removetools: -rm -f $(HBIN)/bin.$(CPU)/HDRest -rm -f $(HBIN)/bin.$(CPU)/HDERest -rm -f $(HBIN)/bin.$(CPU)/HDVite -rm -f $(HBIN)/bin.$(CPU)/HDHEd -rm -f $(HBIN)/bin.$(CPU)/HDInit