Statistics
| Revision:

root / branches / pthreads-737 / scripts / bcc32 / adlink.bat @ 765

History | View | Annotate | Download (917 Bytes)

1
@echo off
2

    
3
REM History:  24 May 2009  Arni Magnusson created
4

    
5
setlocal EnableExtensions EnableDelayedExpansion
6
if [%1]==[] goto HELP
7
if [%1]==[-help] goto HELP
8
if [%1]==[--help] goto HELP
9
set objs=
10
for %%a in (%*) do (
11
  set arg=%%a
12
  if "!arg:~0,1!"=="-" (
13
    if "!arg!"=="-s" (
14
      set libs=df1b2s.lib admod32s.lib ads32.lib adt32s.lib
15
    )
16
  ) else (
17
    set objs=!objs! !arg!
18
  )
19
)
20

    
21
if not defined libs set libs=df1b2o.lib admod32.lib ado32.lib adt32.lib
22
set LIBPATH_MSSDK=/libpath:"%MSSDK%"\lib
23

    
24
@echo on
25
bcc32 %v% %wd% -L%BCC55_HOME%\lib -L"%ADMB_HOME%"\lib %objs% %libs%
26
@echo off
27

    
28
goto EOF
29

    
30
:HELP
31
echo Usage: adlink [-d] [-r] [-s] model
32
echo.
33
echo Link AD Model Builder object code to executable.
34
echo.
35
echo   -d     Create DLL
36
echo   -r     Create ADMB-RE
37
echo   -s     Use safe bounds and debugging symbols
38
echo   model  Filename prefix, e.g. simple
39
echo.
40

    
41
:EOF