Revision 532

tags/admb-11/VERSION (revision 532)
1
11
tags/admb-11/scripts/bcc32/set-admb-bcc551.bat (revision 532)
1
@echo off
2
REM
3
REM Sets the Borland Home directory.
4
REM
5
@set BCC55_HOME=C:\Borland\BCC55
6

  
7
REM
8
REM Sets the ADMB Home directory.
9
REM
10
@set ADMB_HOME=%CD%
11

  
12
REM
13
REM Adds the bin folder to BCC_HOME and ADMB_HOME to system path.
14
REM
15
@set PATH=%BCC55_HOME%\bin;%ADMB_HOME%\bin;%PATH%
16

  
17
@echo Set Borland Home directory to %BCC55_HOME%
18
@echo Set ADMB Home directory to %ADMB_HOME%
19

  
20
@cd "%HOMEDRIVE%%HOMEPATH%"
tags/admb-11/scripts/bcc32/adlink.bat (revision 532)
1
@echo off
2
setlocal
3
if [%1]==[] goto HELP
4
if [%1]==[-help] goto HELP
5
if [%1]==[--help] goto HELP
6
REM #######################################################################################################################
7
REM                                                                                                                       #
8
REM Script:   adlink [-d] [-g] [-r] [-s] model                                                                            #
9
REM                                                                                                                       #
10
REM Purpose:  Link ADMB object code to executable, using the Borland 5.5.1 compiler                                       #
11
REM                                                                                                                       #
12
REM Args:     -d creates DLL                                                                                              #
13
REM           -g inserts debugging symbols                                                                                #
14
REM           -r creates ADMB-RE model                                                                                    #
15
REM           -s creates model that enforces safe array bounds during runtime                                             #
16
REM           model is the filename with or without extension, e.g. simple or simple.o                                    #
17
REM                                                                                                                       #
18
REM Requires: ADMB libraries, bcc32                                                                                       #
19
REM                                                                                                                       #
20
REM Returns:  Creates executable or DLL with same prefix                                                                  #
21
REM                                                                                                                       #
22
REM History:  24 May 2009  Arni Magnusson created                                                                         #
23
REM           27 Nov 2009  Arni Magnusson added support for filename extension, e.g. simple.o                             #
24
REM           22 Feb 2010  Arni Magnusson merged forked versions and synchronized -g -s options with GCC scripts          #
25
REM                                                                                                                       #
26
REM #######################################################################################################################
27

  
28
rem Pop args until model=%1
29
set adlib=ado32.lib
30
set re=0
31
set v=
32
set wd=
33
:STARTLOOP
34
if [%2]==[] goto ENDLOOP
35
if %1==-d set wd=-WD& shift
36
if %1==-g set v=-v& shift
37
if %1==-r set re=1& shift
38
if %1==-s set adlib=ads32.lib& shift
39
goto STARTLOOP
40
:ENDLOOP
41

  
42
set model=%~n1
43

  
44
set df1b2lib=df1b2stub.lib
45
if %adlib%==ado32.lib set df1b2lib=df1b2o.lib
46
if %adlib%==ads32.lib set df1b2lib=df1b2s.lib
47

  
48
@echo on
49
bcc32 %v% %wd% -L%BCC55_HOME%\lib -L"%ADMB_HOME%"\lib %model%.obj admod32.lib adt32.lib %adlib% %df1b2lib%
50
@echo off
51
goto EOF
52

  
53
:HELP
54
echo Usage: adlink [-d] [-g] [-r] [-s] model
55
echo.
56
echo Link AD Model Builder object code to executable, using the Borland 5.5.1 compiler.
57
echo.
58
echo   -d     Create DLL
59
echo   -g     Insert debugging symbols
60
echo   -r     Create ADMB-RE
61
echo   -s     Enforce safe bounds
62
echo   model  Filename prefix, e.g. simple
63
echo.
64

  
65
:EOF
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff