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