# # remember to run VCVARS32.BAT # makefile for single-threaded HTK tools, MSVC # .SUFFIXES: .exe .c.obj: $(CC) /nologo /c $(CFLAGS) $< .obj.exe: $(CL) $(SYSLF) /OUT:$(HBIN)/$@ $< $(libs) CC=cl CL=link CPU=win32 HBIN = ../bin.win32 # use the following for full optimisation SYSCF = /ML /W0 /GX /O2 /G5 /Ob2 /D "NDEBUG" /D "WIN32" /D "_CONSOLE" # use the following for debugging #SYSCF = /ML /W1 /Gm /GX /Zi /Od /D "_DEBUG" /D "WIN32" /D "_WINDOWS" # use the following for non-debug link SYSLF = /nologo /subsystem:console /incremental:no # use the following for debug link #SYSLF = /DEBUG /DEBUGTYPE:BOTH /nologo /subsystem:console /incremental:no # the following is for HTK tools linked with HTKLib HTKCF = /I "../HTKLib" /I "." htklib = ../HTKLib/HTKLib.$(CPU).lib CFLAGS = $(SYSCF) $(HTKCF) syslib = winmm.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib \ advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib libs = $(syslib) $(htklib) tools = HDRest.exe HDERest.exe HDVite.exe HDHEd.exe HDInit.exe HDVite.exe: HDVite.obj HDERest.exe: HDERest.obj HDRest.exe: HDRest.obj HDHEd.exe: HDHEd.obj HDInit.exe: HDInit.obj all: $(tools) echo done clean: del *.obj *.exe cleanup: del *.obj