Revision 916 trunk/scripts/cl/adcomp.bat

adcomp.bat (revision 916)
8 8
for %%a in (%*) do (
9 9
  set arg=%%a
10 10
  if "!arg:~0,1!"=="-" (
11
    if "%%a"=="-d" set dll=-DBUILDING_DLL
11
    if "%%a"=="-d" set dll=/DBUILDING_DLL
12 12
    @REM if "%%a"=="-r" shift
13
    if "%%a"=="-s" set g=-g& set opt=-DSAFE_ALL
13
    if "%%a"=="-s" set g=/Z7 & set opt=/DSAFE_ALL
14 14
  ) else (
15 15
    if "%%~xa"=="" (
16 16
      set file=%%a.cpp
......
20 20
  )
21 21
)
22 22
if not defined file goto HELP
23
if not defined opt set opt=-DOPT_LIB 
23
if not defined opt set opt=/DOPT_LIB 
24 24

  
25 25
@echo on
26
cl -c /EHsc /Ox -DUSE_LAPLACE -DWIN32 %opt% %dll% -D__MSVC32__=8 -I. -I"%ADMB_HOME%"\include -I"%ADMB_HOME%"\contrib\include %file%
26
cl -c /EHsc /Ox /DUSE_LAPLACE /DWIN32 %opt% %dll% /D__MSVC32__=8 /I. /I"%ADMB_HOME%"\include /I"%ADMB_HOME%"\contrib\include %file%
27 27
@echo off
28 28

  
29 29
goto EOF

Also available in: Unified diff