2005-09-16 08:13:29 +00:00
|
|
|
@ECHO OFF
|
|
|
|
|
|
|
|
echo -
|
|
|
|
echo - Use make.msvc.bat dll to link with dynamic runtile library
|
|
|
|
echo -
|
|
|
|
|
2005-09-15 14:33:01 +00:00
|
|
|
if not exist tmp\ mkdir tmp
|
2005-09-15 12:02:46 +00:00
|
|
|
|
2005-09-16 08:13:29 +00:00
|
|
|
if "%1"=="dll" (
|
|
|
|
set MTMD=MD
|
|
|
|
set OUT_EXE=main-dll-msvc.exe
|
|
|
|
echo - using dynamic library: /MD
|
|
|
|
echo -
|
|
|
|
) else (
|
|
|
|
set MTMD=MT
|
|
|
|
set OUT_EXE=main-msvc.exe
|
|
|
|
echo - using static library: /MT
|
|
|
|
echo -
|
|
|
|
)
|
|
|
|
|
|
|
|
@ECHO ON
|
|
|
|
|
2005-10-17 09:03:54 +00:00
|
|
|
|
2005-09-16 08:13:29 +00:00
|
|
|
|
2005-11-07 12:06:43 +00:00
|
|
|
:: SmallObjBench.cpp
|
|
|
|
|
2006-01-09 07:36:34 +00:00
|
|
|
cl -c -DNDEBUG -Zm200 -O2 -%MTMD% -EHsc -GR -W4 -wd4710 -wd4100 -I"." -I"..\..\include" -I"..\..\include\loki" -Fotmp\ SmallObjBench.cpp
|
|
|
|
:: ..\..\src\SmallObj.cpp ..\..\src\Singleton.cpp
|
2005-11-07 12:06:43 +00:00
|
|
|
|
2006-01-09 07:36:34 +00:00
|
|
|
link /NOLOGO /SUBSYSTEM:CONSOLE /incremental:no /OUT:%OUT_EXE% tmp\SmallObjBench.obj ..\..\lib\loki.lib
|
|
|
|
::tmp\SmallObj.obj tmp\Singleton.obj
|
2005-11-07 12:06:43 +00:00
|
|
|
|
2005-09-16 08:13:29 +00:00
|
|
|
|
2005-09-15 12:02:46 +00:00
|
|
|
|
2005-10-17 09:03:54 +00:00
|
|
|
:: SmallSingleton.cpp
|
|
|
|
|
2006-01-09 07:36:34 +00:00
|
|
|
cl -c -DNDEBUG -Zm200 -O2 -%MTMD% -EHsc -GR -W4 -wd4710 -I"." -I"..\..\include" -I"..\..\include\loki" -Fotmp\ SmallObjSingleton.cpp
|
2005-10-17 09:03:54 +00:00
|
|
|
|
2006-01-09 07:36:34 +00:00
|
|
|
link /NOLOGO /SUBSYSTEM:CONSOLE /incremental:no /OUT:SmallObjSingleton-msvc.exe ..\..\lib\loki.lib tmp\SmallObjSingleton.obj
|
2005-10-17 09:03:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2005-09-16 08:13:29 +00:00
|
|
|
@ECHO OFF
|
|
|
|
set MTMD=
|
2005-12-19 07:54:40 +00:00
|
|
|
set OUT_EXE=
|
|
|
|
|