Revision 917

trunk/scripts/cl/adlink.bat (revision 917)
6 6
if [%1]==[] goto HELP
7 7
if [%1]==[-help] goto HELP
8 8
if [%1]==[--help] goto HELP
9
set objs=
9
set OBJS=
10 10
for %%a in (%*) do (
11 11
  set arg=%%a
12 12
  if "!arg:~0,1!"=="-" (
13 13
    if "!arg!"=="-s" (
14
      set libs="%ADMB_HOME%"\lib\admb.lib "%ADMB_HOME%"\contrib\lib\contrib.lib
14
      set LIBS="%ADMB_HOME%"\lib\admb.lib "%ADMB_HOME%"\contrib\lib\contrib.lib
15 15
    )
16
    if "!arg!"=="-g" (
17
      set DEBUG="/DEBUG"
18
    )
16 19
  ) else (
17 20
    if "%%~xa"=="" (
18
      set objs=!objs! !arg!.obj
21
      set OBJS=!OBJS! !arg!.obj
19 22
    ) else (
20
      set objs=!objs! !arg!
23
      set OBJS=!OBJS! !arg!
21 24
    )
22 25
  )
23 26
)
24 27

  
25
if not defined libs set libs="%ADMB_HOME%"\lib\admbo.lib "%ADMB_HOME%"\contrib\lib\contribo.lib
28
if not defined LIBS set LIBS="%ADMB_HOME%"\lib\admbo.lib "%ADMB_HOME%"\contrib\lib\contribo.lib
26 29
set LIBPATH_MSSDK=/libpath:"%MSSDK%"\lib
27 30

  
28 31
@echo on
29
cl %objs% %libs% /link
32
cl %OBJS% %LIBS% /link %DEBUG%
30 33
@echo off
31 34

  
32 35
goto EOF
trunk/scripts/cl/adcomp.bat (revision 917)
10 10
  if "!arg:~0,1!"=="-" (
11 11
    if "%%a"=="-d" set dll=/DBUILDING_DLL
12 12
    @REM if "%%a"=="-r" shift
13
    if "%%a"=="-s" set g=/Z7 & set opt=/DSAFE_ALL
13
    if "%%a"=="-s" set opt=/DSAFE_ALL
14
    if "%%a"=="-g" set DEBUG=/Z7
14 15
  ) else (
15 16
    if "%%~xa"=="" (
16 17
      set file=%%a.cpp
......
23 24
if not defined opt set opt=/DOPT_LIB 
24 25

  
25 26
@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%
27
cl /c /EHsc /Ox %DEBUG% /DUSE_LAPLACE /DWIN32 %opt% %dll% /D__MSVC32__=8 /I. /I"%ADMB_HOME%"\include /I"%ADMB_HOME%"\contrib\include %file%
27 28
@echo off
28 29

  
29 30
goto EOF

Also available in: Unified diff