BUILD_DIR = build_VC8 CXX = "/cygdrive/d/Program Files/Microsoft Visual Studio 8/VC/bin/cl.exe" VC8_PATH = "/cygdrive/d/Program Files/Microsoft Visual Studio 8/Common7/IDE" VC8_LIB = "D:\Program Files\Microsoft Visual Studio 8\VC\lib;C:\Program Files\Microsoft Platform SDK\lib" CFLAGS = /O2 /D "WIN32" /D "_CONSOLE" /D "_MBCS" /MD /EHsc /arch:SSE #/W4 /Wp64 /Zi INCLUDES = /I "..\..\common" \ /I "..\..\navigation" \ /I ".." \ /I "C:\Program Files\Microsoft Platform SDK\include" \ /I "D:\Program Files\Microsoft Visual Studio 8\VC\include" all : $(BUILD_DIR) : mkdir $(BUILD_DIR) %.exe : %.cpp $(BUILD_DIR) export PATH='$$PATH':${VC8_PATH}; \ export LIB=${VC8_LIB}; \ cd $(BUILD_DIR); \ ${CXX} ${INCLUDES} ${CFLAGS} /Fe$@ ../$< ${LDFLAGS}; \ ./$@ %.exe : %.c $(BUILD_DIR) export PATH='$$PATH':${VC8_PATH}; \ export LIB=${VC8_LIB}; \ cd $(BUILD_DIR); \ ${CXX} ${INCLUDES} ${CFLAGS} /Fe$@ ../$< ${LDFLAGS}; \ ./$@ clean : rm -f $(BUILD_DIR)/* .PHONY : clean all