Revision 1351 trunk/scripts/admb/admb.bat

admb.bat (revision 1351)
29 29
set srcs=
30 30
set tpls=
31 31
set objs=
32
set bounds=-bounds
33
set debug=
32
set tplbounds=-bounds
33
set tpldebug=
34
set fast=
34 35

  
35 36
for %%a in (%*) do (
36 37
  set arg=%%a
......
41 42
    )
42 43
    if "%%a"=="-g" (
43 44
      set g=-g
44
      set debug=-debug
45
      set tpldebug=-debug
45 46
    )
46 47
    if "%%a"=="-r" (
47 48
      set r=-r
48 49
      set parser=tpl2rem
49 50
    )
50 51
    if "%%a"=="-s" (
51
      set bounds=-bounds
52
      set tplbounds=-bounds
52 53
    )
53 54
    if "%%a"=="-f" (
54
      set bounds=
55
      set fast=-f
55 56
    )
56 57
  ) else (
57 58
    if "%%~xa"=="" (
......
99 100
  del xxalloc.tmp xxalloc1.tmp xxalloc2.tmp xxalloc3.tmp xxalloc4.tmp xxalloc5.tmp xxalloc6.tmp header.tmp 2> NUL
100 101
  del tfile1 tfile2 tfile3 tfile4 tfile5 2> NUL
101 102
  del !model!.cpp !model!.htp !model!.obj !model!.exe 2> NUL
102
  set CMD=!parser! !debug! !bounds! !dll! !model!
103
  set CMD=!parser! !tpldebug! !tplbounds! !dll! !model!
103 104
  echo.&echo *** !CMD!
104 105
  call !CMD!
105 106
  if not exist !model!.cpp goto ERROR
......
115 116
  set model=%%~nb
116 117
  for %%a in (!model! !srcs!) do (
117 118
    set src=%%~na
118
    set CMD=adcomp !d! !g! !r! !s! !src!
119
    set CMD=adcomp !d! !g! !r! !fast! !src!
119 120
    echo.&echo *** !CMD!
120 121
    call !CMD!
121 122
    if not exist !src!.obj (
......
126 127
)
127 128
for %%a in (!srcs!) do (
128 129
  set src=%%~na
129
  set CMD=adcomp !d! !g! !r! !s! !src!
130
  set CMD=adcomp !d! !g! !r! !fast! !src!
130 131
  echo.&echo *** !CMD!
131 132
  call !CMD!
132 133
  if exist !src!.obj (
......
144 145
  )
145 146
  for %%a in (!objs!) do (
146 147
    set model=%%~na
147
    set CMD=adlink !d! !g! !r! !s! !objs!
148
    set CMD=adlink !d! !g! !r! !fast! !objs!
148 149
    echo.&echo *** !CMD!
149 150
    call !CMD!
150 151
    if not exist !model!.exe (
......
155 156
) else (
156 157
  for %%a in (!tpls!) do (
157 158
    set model=%%~na
158
    set CMD=adlink !d! !g! !r! !s! !model!.obj !objs!
159
    set CMD=adlink !d! !g! !r! !fast! !model!.obj !objs!
159 160
    echo.&echo *** !CMD!
160 161
    call !CMD!
161 162
    if defined dll (
......
176 177
echo.&echo Error: Unable to build executable.
177 178
goto EOF
178 179
:HELP
179
echo Usage: admb [-d] [-g] [-r] [-s] model
180
echo Usage: admb [-d] [-g] [-r] [-f] model
180 181
echo.
181 182
echo Build AD Model Builder executable from TPL.
182 183
echo.
183
echo   -d     Create DLL
184
echo   -g     Insert debugging symbols
185
echo   -r     Create ADMB-RE
186
echo   -s     Enforce safe bounds (default)
187
echo   -O     Use optimized mode
188
echo   model  Filename prefix, e.g. simple
184
echo   -d     Build a dynamic library (dll).
185
echo   -g     Build with debug symbols.
186
echo   -r     Build Random effects program (ADMB-RE).
187
echo   -f     Build with Fast optimized mode (no bounds checking).
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff