Revision 1351 trunk/scripts/admb/adlink.bat

adlink.bat (revision 1351)
23 23
if %%a==-d set linker=dllwrap
24 24
if %%a==-g set sym=
25 25
if %%a==-r set r=
26
if %%a==-s (
27
  set libs="%ADMB_HOME%\contrib\lib\libcontrib.a" "%ADMB_HOME%\lib\libadmb.a" 
26
if %%a==-f (
27
  set libs="%ADMB_HOME%\contrib\lib\libcontribo.a" "%ADMB_HOME%\lib\libadmbo.a" 
28 28
)
29 29
)
30
if not defined libs set libs="%ADMB_HOME%\contrib\lib\libcontribo.a" "%ADMB_HOME%\lib\libadmbo.a" 
30
if not defined libs set libs="%ADMB_HOME%\contrib\lib\libcontrib.a" "%ADMB_HOME%\lib\libadmb.a" 
31 31

  
32 32
if %linker%==g++ (set out=-o %model%) else (set def=-def %model%.def^
33 33
 --driver-name g++ --output-lib %model%.dll & set out=--output-lib lib%model%.a -o %model%.dll)
......
46 46
goto EOF
47 47

  
48 48
:HELP
49
echo Usage: adlink [-d] [-g] [-r] [-s] model
49
echo Usage: adlink [-d] [-g] [-r] [-f] model
50 50
echo.
51 51
echo Link AD Model Builder object code to executable, using the MinGW GCC^
52 52
 compiler.
53 53
echo.
54
echo   -d     Create DLL
55
echo   -g     Insert debugging symbols
56
echo   -r     Create ADMB-RE
57
echo   -s     Enforce safe bounds
58
echo   model  Filename prefix, e.g. simple
54
echo   -d     Build a dynamic library (dll).
55
echo   -g     Build with debug symbols.
56
echo   -r     Build Random effects program (ADMB-RE).
57
echo   -f     Build with Fast optimized mode (no bounds checking).
58
echo          By default, admb script builds with bounds checking.
59
echo   model  TPL file (ie 'simple.tpl' or the filename 'simple' with no .tpl extension)
59 60
echo.
60 61

  
61 62
:EOF

Also available in: Unified diff