Revision 1461 trunk/scripts/admb/admb.bat

admb.bat (revision 1461)
143 143
  )
144 144
  if defined fast (
145 145
    set CXXFLAGS=!CXXFLAGS! /DOPT_LIB
146
    set libs="!ADMB_HOME!\contrib\lib\contribo.lib" "!ADMB_HOME!\lib\admbo.lib" /link
146
    if not exist !ADMB_HOME!\contrib\lib\contribo.lib (
147
      set libs="!ADMB_HOME!\lib\admbo.lib" /link
148
    ) else (
149
      set libs="!ADMB_HOME!\contrib\lib\contribo.lib" "!ADMB_HOME!\lib\admbo.lib" /link
150
    )
147 151
  ) else (
148 152
    set CXXFLAGS=!CXXFLAGS! /DSAFE_ALL
149
    set libs="!ADMB_HOME!\contrib\lib\contrib.lib" "!ADMB_HOME!\lib\admb.lib" /link
153
    if not exist !ADMB_HOME!\contrib\lib\contrib.lib (
154
      set libs="!ADMB_HOME!\lib\admb.lib" /link
155
    ) else (
156
      set libs="!ADMB_HOME!\contrib\lib\contrib.lib" "!ADMB_HOME!\lib\admb.lib" /link
157
    )
150 158
  )
151
  set CXXFLAGS=!CXXFLAGS! /DUSE_LAPLACE /DWIN32 /D__MSVC32__=8 /I. /I"!ADMB_HOME!\include" /I"!ADMB_HOME!\contrib\include"
159
  if not exist !ADMB_HOME!\contrib\lib\contrib.lib (
160
    set CXXFLAGS=!CXXFLAGS! /DUSE_LAPLACE /DWIN32 /D__MSVC32__=8 /I. /I"!ADMB_HOME!\include" /I"!ADMB_HOME!\include\contrib"
161
  ) else (
162
    set CXXFLAGS=!CXXFLAGS! /DUSE_LAPLACE /DWIN32 /D__MSVC32__=8 /I. /I"!ADMB_HOME!\include" /I"!ADMB_HOME!\contrib\include"
163
  )
152 164
) else (
153 165
  if not defined CXX (
154 166
    set CXX=g++
......
185 197
  )
186 198
  if defined fast (
187 199
    set CXXFLAGS=!CXXFLAGS! -DOPT_LIB
188
    set libs=!ADMB_HOME!\contrib\lib\libcontribo.a !ADMB_HOME!\lib\libadmbo.a
200
    if not exist !ADMB_HOME!\contrib\lib\libcontribo.a (
201
      set libs=!ADMB_HOME!\lib\libadmbo.a
202
    ) else (
203
      set libs=!ADMB_HOME!\contrib\lib\libcontribo.a !ADMB_HOME!\lib\libadmbo.a
204
    )
189 205
  ) else (
190 206
    set CXXFLAGS=!CXXFLAGS! -DSAFE_ALL
191
    set libs=!ADMB_HOME!\contrib\lib\libcontrib.a !ADMB_HOME!\lib\libadmb.a
207
    if not exist !ADMB_HOME!\contrib\lib\libcontrib.a (
208
      set libs=!ADMB_HOME!\lib\libadmb.a
209
    ) else (
210
      set libs=!ADMB_HOME!\contrib\lib\libcontribo.a !ADMB_HOME!\lib\libadmb.a
211
    )
192 212
  )
193 213
  if defined d (
194 214
    set CXXFLAGS=!CXXFLAGS! -DBUILDING_DLL
195 215
  )
196
  set CXXFLAGS=!CXXFLAGS! -D__GNUDOS__ -Dlinux -DUSE_LAPLACE -fpermissive -I. -I!ADMB_HOME!\include -I!ADMB_HOME!\contrib\include
216
  if not exist !ADMB_HOME!\contrib\lib\libcontrib.a (
217
    set CXXFLAGS=!CXXFLAGS! -D__GNUDOS__ -Dlinux -DUSE_LAPLACE -fpermissive -I. -I!ADMB_HOME!\include -I!ADMB_HOME!\include\contrib
218
  ) else (
219
    set CXXFLAGS=!CXXFLAGS! -D__GNUDOS__ -Dlinux -DUSE_LAPLACE -fpermissive -I. -I!ADMB_HOME!\include -I!ADMB_HOME!\contrib\include
220
  )
197 221
)
198 222
if defined MINGW_HOME (
199 223
  set PATH=!ADMB_HOME!\bin;!MINGW_HOME!\bin;!PATH!

Also available in: Unified diff