1 2 3 !ifndef Config 4 Config=Debug 5 !endif 6 7 O=..\..\bin\$(Config) 8 9 !message Building ===== $(Config) ===== 10 11 program=testbench.exe 12 INCLUDE=$(INCLUDE);../src 13 14 !if "$(Config)"=="Debug" 15 OPTIONS=/Od 16 !else 17 OPTIONS=/Ox 18 !endif 19 OPTIONS=$(OPTIONS) /Zi /I$(BOOST) /DBOOST_RESULT_OF_USE_DECLTYPE 20 21 runtests : "$O/$(program)" 22 "$O/$(program)" 23 24 25 all : "$O/$(program)" 26 27 $O : 28 mkdir $O 29 30 "$O/$(program)" : testbench.cpp testbench.hpp ../src/cpplinq/*.hpp $O 31 $(CPP) $(OPTIONS) /EHsc /Zi /Fe"$@" /Fo$O/ testbench.cpp 32 33 clean : 34 del /Q $O\*.exe 35 del /Q $O\*.pdb 36 del /Q $O\*.obj 37 del /Q $O\*.ilk 38