| 1 |
## Process this file with automake to produce Makefile.in |
| 2 |
|
| 3 |
# $Id: Makefile.am,v 1.50 2014/07/08 19:36:27 mp Exp $ |
| 4 |
# |
| 5 |
# AutoDock |
| 6 |
# |
| 7 |
# Copyright (C) 1989-2007, Garrett M. Morris, TSRI |
| 8 |
# All Rights Reserved. |
| 9 |
# |
| 10 |
# AutoDock is a Trade Mark of The Scripps Research Institute. |
| 11 |
# |
| 12 |
# This program is free software; you can redistribute it and/or |
| 13 |
# modify it under the terms of the GNU General Public License |
| 14 |
# as published by the Free Software Foundation; either version 2 |
| 15 |
# of the License, or (at your option) any later version. |
| 16 |
# |
| 17 |
# This program is distributed in the hope that it will be useful, |
| 18 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 |
# GNU General Public License for more details. |
| 21 |
# |
| 22 |
# You should have received a copy of the GNU General Public License |
| 23 |
# along with this program; if not, write to the Free Software |
| 24 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 25 |
|
| 26 |
# |
| 27 |
# Makefile.am to build AutoDock 4 |
| 28 |
# |
| 29 |
|
| 30 |
# Autotools |
| 31 |
|
| 32 |
EXTRA_DIST = AD4_PARM99.dat AD4_parameters.dat AD4.1_bound.dat AD4.1_extended.dat AD4.1_compact.dat paramdat2h.csh Tests |
| 33 |
|
| 34 |
dist-hook: |
| 35 |
rm -rf `find $(distdir)/Tests -name CVS -o -name '*.dlg'` |
| 36 |
|
| 37 |
if WANT_OMP |
| 38 |
bin_PROGRAMS = autodock4 autodock4.omp |
| 39 |
else |
| 40 |
bin_PROGRAMS = autodock4 |
| 41 |
endif |
| 42 |
|
| 43 |
|
| 44 |
CLEANFILES = default_parameters.h |
| 45 |
|
| 46 |
noinst_LIBRARIES = |
| 47 |
|
| 48 |
# Define the AutoDock 4 source code files: |
| 49 |
|
| 50 |
autodock4_SOURCES = \ |
| 51 |
main.cc |
| 52 |
|
| 53 |
autodock4_SOURCES += \ |
| 54 |
alea.cc \ |
| 55 |
analysis.cc \ |
| 56 |
atom_parameter_manager.cc \ |
| 57 |
banner.cc \ |
| 58 |
bestpdb.cc \ |
| 59 |
calculateEnergies.cc \ |
| 60 |
call_glss.cc \ |
| 61 |
call_ls.cc \ |
| 62 |
center_ligand.cc \ |
| 63 |
changeState.cc \ |
| 64 |
check_header_float.cc \ |
| 65 |
check_header_int.cc \ |
| 66 |
check_header_line.cc \ |
| 67 |
cluster_analysis.cc \ |
| 68 |
clmode.cc \ |
| 69 |
cnv_state_to_coords.cc \ |
| 70 |
com.cc \ |
| 71 |
conformation_sampler.cc \ |
| 72 |
dimLibrary.cc\ |
| 73 |
distdepdiel.cc \ |
| 74 |
stateLibrary.cc \ |
| 75 |
readfield.cc \ |
| 76 |
readmap.cc \ |
| 77 |
readPDBQT.cc \ |
| 78 |
read_parameter_library.cc \ |
| 79 |
eval.cc \ |
| 80 |
gencau.cc \ |
| 81 |
getrms.cc \ |
| 82 |
get_atom_type.cc \ |
| 83 |
getInitialState.cc \ |
| 84 |
getpdbcrds.cc \ |
| 85 |
gs.cc \ |
| 86 |
initautodock.cc \ |
| 87 |
input_state.cc \ |
| 88 |
investigate.cc \ |
| 89 |
linpack.cc \ |
| 90 |
ls.cc \ |
| 91 |
mapping.cc \ |
| 92 |
mingw_getrusage.cc \ |
| 93 |
minmeanmax.cc \ |
| 94 |
mkNewState.cc \ |
| 95 |
mkTorTree.cc \ |
| 96 |
mkRandomState.cc \ |
| 97 |
nonbonds.cc \ |
| 98 |
openfile.cc \ |
| 99 |
output_state.cc \ |
| 100 |
parse_dpf_line.cc \ |
| 101 |
parse_param_line.cc \ |
| 102 |
parse_PDBQT_line.cc \ |
| 103 |
parse_trj_line.cc \ |
| 104 |
parsetypes.cc \ |
| 105 |
print_2x.cc \ |
| 106 |
print_atomic_energies.cc \ |
| 107 |
print_avsfld.cc \ |
| 108 |
writePDBQT.cc \ |
| 109 |
print_rem.cc \ |
| 110 |
printdate.cc \ |
| 111 |
printEnergies.cc \ |
| 112 |
printhms.cc \ |
| 113 |
prClusterHist.cc \ |
| 114 |
prInitialState.cc \ |
| 115 |
prTorConList.cc \ |
| 116 |
pso.cc \ |
| 117 |
qmultiply.cc \ |
| 118 |
qtransform.cc \ |
| 119 |
quicksort.cc \ |
| 120 |
ranlib.cc \ |
| 121 |
rep.cc \ |
| 122 |
scauchy.cc \ |
| 123 |
setflags.cc \ |
| 124 |
simanneal.cc \ |
| 125 |
sort_enrg.cc \ |
| 126 |
stack.cc \ |
| 127 |
stop.cc \ |
| 128 |
strindex.cc \ |
| 129 |
success.cc \ |
| 130 |
support.cc \ |
| 131 |
swap.cc \ |
| 132 |
threadlog.cc \ |
| 133 |
timesys.cc \ |
| 134 |
timesyshms.cc \ |
| 135 |
torNorVec.cc \ |
| 136 |
torsion.cc \ |
| 137 |
trilinterp.cc \ |
| 138 |
usage.cc \ |
| 139 |
weedbonds.cc \ |
| 140 |
warn_bad_file.cc \ |
| 141 |
coliny.cc \ |
| 142 |
eintcal.cc \ |
| 143 |
eintcalPrint.cc \ |
| 144 |
intnbtable.cc \ |
| 145 |
nbe.cc \ |
| 146 |
PDBQT_tokens.h \ |
| 147 |
analysis.h \ |
| 148 |
atom_parameter_manager.h \ |
| 149 |
alea.h \ |
| 150 |
autocomm.h \ |
| 151 |
autoglobal.h \ |
| 152 |
banner.h \ |
| 153 |
bestpdb.h \ |
| 154 |
calculateEnergies.h \ |
| 155 |
call_glss.h \ |
| 156 |
call_ls.h \ |
| 157 |
center_ligand.h \ |
| 158 |
changeState.h \ |
| 159 |
check_header_float.h \ |
| 160 |
check_header_int.h \ |
| 161 |
check_header_line.h \ |
| 162 |
clmode.h \ |
| 163 |
cluster_analysis.h \ |
| 164 |
cnv_state_to_coords.h \ |
| 165 |
coliny.h \ |
| 166 |
conformation_sampler.h \ |
| 167 |
constants.h \ |
| 168 |
default_parameters.h \ |
| 169 |
dimLibrary.h \ |
| 170 |
distdepdiel.h \ |
| 171 |
dpftoken.h \ |
| 172 |
eintcal.h \ |
| 173 |
eintcalPrint.h \ |
| 174 |
energy.h \ |
| 175 |
eval.h \ |
| 176 |
gencau.h \ |
| 177 |
getInitialState.h \ |
| 178 |
get_atom_type.h \ |
| 179 |
getpdbcrds.h \ |
| 180 |
getrms.h \ |
| 181 |
globals.h \ |
| 182 |
grid.h \ |
| 183 |
gs.h \ |
| 184 |
hybrids.h \ |
| 185 |
initautodock.h \ |
| 186 |
input_state.h \ |
| 187 |
intnbtable.h \ |
| 188 |
investigate.h \ |
| 189 |
ls.h \ |
| 190 |
main.h \ |
| 191 |
mdist.h \ |
| 192 |
mingw_sysconf.h \ |
| 193 |
mingw_sys_times.h \ |
| 194 |
mkNewState.h \ |
| 195 |
mkRandomState.h \ |
| 196 |
mkTorTree.h \ |
| 197 |
nbe.h \ |
| 198 |
nonbonds.h \ |
| 199 |
openfile.h \ |
| 200 |
output_state.h \ |
| 201 |
parameters.h \ |
| 202 |
parse_PDBQT_line.h \ |
| 203 |
parse_dpf_line.h \ |
| 204 |
parse_param_line.h \ |
| 205 |
parse_trj_line.h \ |
| 206 |
parsetypes.h \ |
| 207 |
partokens.h \ |
| 208 |
prClusterHist.h \ |
| 209 |
prInitialState.h \ |
| 210 |
prTorConList.h \ |
| 211 |
printEnergies.h \ |
| 212 |
print_2x.h \ |
| 213 |
print_atomic_energies.h \ |
| 214 |
print_avsfld.h \ |
| 215 |
print_rem.h \ |
| 216 |
printdate.h \ |
| 217 |
printhms.h \ |
| 218 |
pso.h \ |
| 219 |
qmultiply.h \ |
| 220 |
qtransform.h \ |
| 221 |
quicksort.h \ |
| 222 |
ranlib.h \ |
| 223 |
readPDBQT.h \ |
| 224 |
read_parameter_library.h \ |
| 225 |
readfield.h \ |
| 226 |
readmap.h \ |
| 227 |
rep.h \ |
| 228 |
rep_constants.h \ |
| 229 |
setflags.h \ |
| 230 |
simanneal.h \ |
| 231 |
sort_enrg.h \ |
| 232 |
stateLibrary.h \ |
| 233 |
stack.h \ |
| 234 |
stop.h \ |
| 235 |
strindex.h \ |
| 236 |
structs.h \ |
| 237 |
success.h \ |
| 238 |
support.h \ |
| 239 |
swap.h \ |
| 240 |
threadlog.h \ |
| 241 |
timesys.h \ |
| 242 |
timesyshms.h \ |
| 243 |
torNorVec.h \ |
| 244 |
torsion.h \ |
| 245 |
trilinterp.h \ |
| 246 |
trjtokens.h \ |
| 247 |
typedefs.h \ |
| 248 |
usage.h \ |
| 249 |
version.h \ |
| 250 |
warn_bad_file.h \ |
| 251 |
weedbonds.h \ |
| 252 |
writePDBQT.h |
| 253 |
if WANT_OMP |
| 254 |
autodock4_omp_SOURCES = \ |
| 255 |
main.cc |
| 256 |
autodock4_omp_SOURCES += \ |
| 257 |
alea.cc \ |
| 258 |
analysis.cc \ |
| 259 |
atom_parameter_manager.cc \ |
| 260 |
banner.cc \ |
| 261 |
bestpdb.cc \ |
| 262 |
calculateEnergies.cc \ |
| 263 |
call_glss.cc \ |
| 264 |
call_ls.cc \ |
| 265 |
center_ligand.cc \ |
| 266 |
changeState.cc \ |
| 267 |
check_header_float.cc \ |
| 268 |
check_header_int.cc \ |
| 269 |
check_header_line.cc \ |
| 270 |
cluster_analysis.cc \ |
| 271 |
clmode.cc \ |
| 272 |
cnv_state_to_coords.cc \ |
| 273 |
com.cc \ |
| 274 |
conformation_sampler.cc \ |
| 275 |
dimLibrary.cc\ |
| 276 |
distdepdiel.cc \ |
| 277 |
stateLibrary.cc \ |
| 278 |
readfield.cc \ |
| 279 |
readmap.cc \ |
| 280 |
readPDBQT.cc \ |
| 281 |
read_parameter_library.cc \ |
| 282 |
eval.cc \ |
| 283 |
gencau.cc \ |
| 284 |
getrms.cc \ |
| 285 |
get_atom_type.cc \ |
| 286 |
getInitialState.cc \ |
| 287 |
getpdbcrds.cc \ |
| 288 |
gs.cc \ |
| 289 |
initautodock.cc \ |
| 290 |
input_state.cc \ |
| 291 |
investigate.cc \ |
| 292 |
linpack.cc \ |
| 293 |
ls.cc \ |
| 294 |
mapping.cc \ |
| 295 |
mingw_getrusage.cc \ |
| 296 |
minmeanmax.cc \ |
| 297 |
mkNewState.cc \ |
| 298 |
mkTorTree.cc \ |
| 299 |
mkRandomState.cc \ |
| 300 |
nonbonds.cc \ |
| 301 |
openfile.cc \ |
| 302 |
output_state.cc \ |
| 303 |
parse_dpf_line.cc \ |
| 304 |
parse_param_line.cc \ |
| 305 |
parse_PDBQT_line.cc \ |
| 306 |
parse_trj_line.cc \ |
| 307 |
parsetypes.cc \ |
| 308 |
print_2x.cc \ |
| 309 |
print_atomic_energies.cc \ |
| 310 |
print_avsfld.cc \ |
| 311 |
writePDBQT.cc \ |
| 312 |
print_rem.cc \ |
| 313 |
printdate.cc \ |
| 314 |
printEnergies.cc \ |
| 315 |
printhms.cc \ |
| 316 |
prClusterHist.cc \ |
| 317 |
prInitialState.cc \ |
| 318 |
prTorConList.cc \ |
| 319 |
pso.cc \ |
| 320 |
qmultiply.cc \ |
| 321 |
qtransform.cc \ |
| 322 |
quicksort.cc \ |
| 323 |
ranlib.cc \ |
| 324 |
rep.cc \ |
| 325 |
scauchy.cc \ |
| 326 |
setflags.cc \ |
| 327 |
simanneal.cc \ |
| 328 |
sort_enrg.cc \ |
| 329 |
stack.cc \ |
| 330 |
stop.cc \ |
| 331 |
strindex.cc \ |
| 332 |
success.cc \ |
| 333 |
support.cc \ |
| 334 |
swap.cc \ |
| 335 |
threadlog.cc \ |
| 336 |
timesys.cc \ |
| 337 |
timesyshms.cc \ |
| 338 |
torNorVec.cc \ |
| 339 |
torsion.cc \ |
| 340 |
trilinterp.cc \ |
| 341 |
usage.cc \ |
| 342 |
weedbonds.cc \ |
| 343 |
warn_bad_file.cc \ |
| 344 |
coliny.cc \ |
| 345 |
eintcal.cc \ |
| 346 |
eintcalPrint.cc \ |
| 347 |
intnbtable.cc \ |
| 348 |
nbe.cc \ |
| 349 |
PDBQT_tokens.h \ |
| 350 |
analysis.h \ |
| 351 |
atom_parameter_manager.h \ |
| 352 |
alea.h \ |
| 353 |
autocomm.h \ |
| 354 |
autoglobal.h \ |
| 355 |
banner.h \ |
| 356 |
bestpdb.h \ |
| 357 |
calculateEnergies.h \ |
| 358 |
call_glss.h \ |
| 359 |
call_ls.h \ |
| 360 |
center_ligand.h \ |
| 361 |
changeState.h \ |
| 362 |
check_header_float.h \ |
| 363 |
check_header_int.h \ |
| 364 |
check_header_line.h \ |
| 365 |
clmode.h \ |
| 366 |
cluster_analysis.h \ |
| 367 |
cnv_state_to_coords.h \ |
| 368 |
coliny.h \ |
| 369 |
conformation_sampler.h \ |
| 370 |
constants.h \ |
| 371 |
default_parameters.h \ |
| 372 |
dimLibrary.h \ |
| 373 |
distdepdiel.h \ |
| 374 |
dpftoken.h \ |
| 375 |
eintcal.h \ |
| 376 |
eintcalPrint.h \ |
| 377 |
energy.h \ |
| 378 |
eval.h \ |
| 379 |
gencau.h \ |
| 380 |
getInitialState.h \ |
| 381 |
get_atom_type.h \ |
| 382 |
getpdbcrds.h \ |
| 383 |
getrms.h \ |
| 384 |
globals.h \ |
| 385 |
grid.h \ |
| 386 |
gs.h \ |
| 387 |
hybrids.h \ |
| 388 |
initautodock.h \ |
| 389 |
input_state.h \ |
| 390 |
intnbtable.h \ |
| 391 |
investigate.h \ |
| 392 |
ls.h \ |
| 393 |
main.h \ |
| 394 |
mdist.h \ |
| 395 |
mingw_sysconf.h \ |
| 396 |
mingw_sys_times.h \ |
| 397 |
mkNewState.h \ |
| 398 |
mkRandomState.h \ |
| 399 |
mkTorTree.h \ |
| 400 |
nbe.h \ |
| 401 |
nonbonds.h \ |
| 402 |
openfile.h \ |
| 403 |
output_state.h \ |
| 404 |
parameters.h \ |
| 405 |
parse_PDBQT_line.h \ |
| 406 |
parse_dpf_line.h \ |
| 407 |
parse_param_line.h \ |
| 408 |
parse_trj_line.h \ |
| 409 |
parsetypes.h \ |
| 410 |
partokens.h \ |
| 411 |
prClusterHist.h \ |
| 412 |
prInitialState.h \ |
| 413 |
prTorConList.h \ |
| 414 |
printEnergies.h \ |
| 415 |
print_2x.h \ |
| 416 |
print_atomic_energies.h \ |
| 417 |
print_avsfld.h \ |
| 418 |
print_rem.h \ |
| 419 |
printdate.h \ |
| 420 |
printhms.h \ |
| 421 |
pso.h \ |
| 422 |
qmultiply.h \ |
| 423 |
qtransform.h \ |
| 424 |
quicksort.h \ |
| 425 |
ranlib.h \ |
| 426 |
readPDBQT.h \ |
| 427 |
read_parameter_library.h \ |
| 428 |
readfield.h \ |
| 429 |
readmap.h \ |
| 430 |
rep.h \ |
| 431 |
rep_constants.h \ |
| 432 |
setflags.h \ |
| 433 |
simanneal.h \ |
| 434 |
sort_enrg.h \ |
| 435 |
stateLibrary.h \ |
| 436 |
stack.h \ |
| 437 |
stop.h \ |
| 438 |
strindex.h \ |
| 439 |
structs.h \ |
| 440 |
success.h \ |
| 441 |
support.h \ |
| 442 |
swap.h \ |
| 443 |
threadlog.h \ |
| 444 |
timesys.h \ |
| 445 |
timesyshms.h \ |
| 446 |
torNorVec.h \ |
| 447 |
torsion.h \ |
| 448 |
trilinterp.h \ |
| 449 |
trjtokens.h \ |
| 450 |
typedefs.h \ |
| 451 |
usage.h \ |
| 452 |
version.h \ |
| 453 |
warn_bad_file.h \ |
| 454 |
weedbonds.h \ |
| 455 |
writePDBQT.h |
| 456 |
|
| 457 |
endif |
| 458 |
|
| 459 |
|
| 460 |
BUILT_SOURCES = $(autodock4_SOURCES) default_parameters.h |
| 461 |
|
| 462 |
AM_CXXFLAGS = -O3 # Agressive optimization |
| 463 |
#AM_CXXFLAGS = -g # debug |
| 464 |
|
| 465 |
# if gnu c++ compiler |
| 466 |
AM_CXXFLAGS += -Wall # All warnings |
| 467 |
AM_CXXFLAGS += -Wno-write-strings # increase compatibility with pre 4.x compilers for string handling |
| 468 |
|
| 469 |
if WANT_OMP |
| 470 |
# M Pique - I'm not sure which of these are really necessary |
| 471 |
# could this be replaced by : AC_SUBST(AM_CXXFLAGS,"$OPENMP_CXXFLAGS") |
| 472 |
autodock4_omp_CFLAGS = $(AM_CFLAGS) -fopenmp $(OPENMP_CXXFLAGS) |
| 473 |
autodock4_omp_CPPFLAGS = $(AM_CPPFLAGS) $(OPENMP_CXXFLAGS) |
| 474 |
autodock4_omp_LDFLAGS = $(AM_LDFLAGS) -fopenmp $(OPENMP_CXXFLAGS) |
| 475 |
|
| 476 |
autodock4_omp_CXXFLAGS = $(AM_CXXFLAGS) $(autodock4_CXXFLAGS) -fopenmp $(OPENMP_CXXFLAGS) |
| 477 |
autodock4_omp_LDADD = $(autodock4_LDADD) |
| 478 |
endif |
| 479 |
|
| 480 |
|
| 481 |
|
| 482 |
# M Pique - add ASSERTQUATOK if you want error checking in qmultiply.cc |
| 483 |
# M Pique - add USE_DOUBLE to define Real as double instead of float, see typedefs.h |
| 484 |
# M Pique - USE_INT_AS_FOURBYTELONG is for random number seeds only and is appropriate for |
| 485 |
# all post-2005 computers, which treat "int" as four bytes. |
| 486 |
# M Pique - add -g for debugging |
| 487 |
# M Pique - add -O3 for optimization |
| 488 |
AM_CPPFLAGS = -DNOSQRT \ |
| 489 |
-DUSE_DOUBLE \ |
| 490 |
-DUSE_8A_NBCUTOFF \ |
| 491 |
-DUSE_INT_AS_FOURBYTELONG \ |
| 492 |
-O3 |
| 493 |
# AM_LDFLAGS = -g # -g is MP debug |
| 494 |
|
| 495 |
|
| 496 |
#autodock4_CXXFLAGS = -Wall -O3 # All warnings, Agressive optimization |
| 497 |
#autodock4_CXXFLAGS = -Wall -O3 -ftree-vectorize # All warnings, Agressive optimization + GCC vectorization # MacOSX only? |
| 498 |
|
| 499 |
autodock4_CPPFLAGS = $(AM_CPPFLAGS) |
| 500 |
autodock4_LDFLAGS = $(AM_LDFLAGS) |
| 501 |
|
| 502 |
|
| 503 |
autodock4_LDADD = $(COLINY_LDFLAGS) -lm |
| 504 |
|
| 505 |
if WANT_BIGSTACK |
| 506 |
autodock4_LDFLAGS += -Wl,--stack,8388608 # Cygwin, big stacksize |
| 507 |
endif |
| 508 |
|
| 509 |
|
| 510 |
# |
| 511 |
# If you need to use debugging or profiling, these should also be |
| 512 |
# modified appropriately: |
| 513 |
# DBUG & PROF |
| 514 |
# |
| 515 |
# If you want to use the Coliny solver library, uncomment the following: |
| 516 |
# COLINY = yes |
| 517 |
# |
| 518 |
|
| 519 |
# Abbreviations: |
| 520 |
# |
| 521 |
# Alpha = Compaq/Digital Equipment Corp., Alpha |
| 522 |
# Convex = Convex, c2 |
| 523 |
# Cygwin = Cygwin running on Microsoft Windows |
| 524 |
# Darwin = Darwin |
| 525 |
# HP = Hewlett Packard Precision Architecture, hppa |
| 526 |
# Linux = Any platform that runs GNU/Linux, Linux |
| 527 |
# MacOSX = Apple Mac OS X 10.0 & higher, MacOSX |
| 528 |
# SGI = Silicon Graphics Inc., sgi4D |
| 529 |
# Sun = Sun Microsystems, sun4 |
| 530 |
|
| 531 |
# CFLAGS = $(CSTD) $(OPT) -DUSE_8A_NBCUTOFF # SGI, HP, Alpha, Sun, Convex, Cygwin, Linux, MacOSX: Standard accuracy, but faster; no crossover in quaternion |
| 532 |
# CFLAGS = $(CSTD) $(OPT) -DUSE_8A_NBCUTOFF # SGI, HP, Alpha, Sun, Convex, Linux, MacOSX: Standard accuracy, but faster |
| 533 |
# CFLAGS = $(CSTD) $(OPT) -DUSE_8A_NBCUTOFF -DUSE_DOUBLE # SGI, HP, Alpha, Sun, Convex, Linux, MacOSX: Standard accuracy, but faster; also use Double precision throughout |
| 534 |
# CFLAGS = $(CSTD) $(OPT) # SGI, HP, Alpha, Sun, Convex, Cygwin, Linux, MacOSX |
| 535 |
|
| 536 |
# CSTD = $(DBUG) $(PROF) $(WARN) # SGI, Sun, Linux, MacOSX |
| 537 |
# CSTD = $(DBUG) $(PROF) $(WARN) -DUSE_XCODE # Smaller memory footprint, good for Xcode |
| 538 |
# CSTD = $(DBUG) $(PROF) $(WARN) # SGI, Sun, Linux, MacOSX |
| 539 |
# CSTD = -std arm -verbose $(PROF) $(DBUG) $(WARN) # Alpha. sarah |
| 540 |
|
| 541 |
# OPTLEVEL = -O3 -ftree-vectorize # Agressive optimization + GCC vectorization |
| 542 |
# OPTLEVEL = -O3 -ffast-math # Agressive optimization, for Intel Itanium, ia64Linux2 |
| 543 |
# OPTLEVEL = -O3 # Agressive optimization |
| 544 |
# OPTLEVEL = -O2 # High optimization |
| 545 |
# OPTLEVEL = -O1 # Do optimizations that can be done quickly; default. Recommended for unit testing |
| 546 |
# OPTLEVEL = -O0 # Do not optimize |
| 547 |
|
| 548 |
|
| 549 |
|
| 550 |
# LINKOPT = $(CSTD) $(OPT) # All platforms except Cygwin and Sun |
| 551 |
# LINKOPT = $(CSTD) $(OPT) -fno-stack-limit # Cygwin, 32MB stacksize |
| 552 |
# LINKOPT = $(CSTD) $(OPT) -Wl,--stack=0x4000000 # Cygwin, 64MB stacksize |
| 553 |
# LINKOPT = $(CSTD) $(OPT) -L/opt/sfw/lib # Sun |
| 554 |
|
| 555 |
# LINK = $(LINKOPT) # Linking flags |
| 556 |
|
| 557 |
# LIB = -lm # for all platforms |
| 558 |
|
| 559 |
# DBUG = # Use assert code |
| 560 |
# DBUG = -DNDEBUG # No debugging and no assert code |
| 561 |
# DBUG = -g # dbx, or Gnu gdb |
| 562 |
# DBUG = -g -DDEBUG # dbx + DEBUG-specific code |
| 563 |
# DBUG = -g3 # dbx + optimization |
| 564 |
# DBUG = -g3 -DDEBUG # dbx + optimization, + DEBUG-specific code |
| 565 |
# DBUG = -DDEBUG # Just DEBUG-specific code |
| 566 |
# DBUG = -DDEBUG2 # Just DEBUG2-specific code for tracking prop.selection |
| 567 |
# DBUG = -DDEBUG3 # Just DEBUG3-specific code for print age of individuals |
| 568 |
# DBUG = -g -DDEBUG -DDEBUG2 -DDEBUG3 # Debug everything |
| 569 |
# DBUG = -g3 -DDEBUG_QUAT # Use assert code, & assert quaternions are 4D-normalised |
| 570 |
# DBUG = -g3 -DDEBUG_QUAT -DDEBUG_QUAT_PRINT # Use assert code, & assert quaternions are 4D-normalised, and print out |
| 571 |
# DBUG = -g3 -DDEBUG_QUAT -DDEBUG_QUAT_PRINT -DDEBUG # Use assert code, & assert quaternions are 4D-normalised, and use DEBUG-specific code, and print out |
| 572 |
# DBUG = -g3 -DDEBUG_MUTATION # dbx + optimization; Use assert code, & print out information anywhere involving mutation |
| 573 |
# DBUG = -g3 -DDEBUG_MUTATION -DDEBUG # dbx + optimization; Use assert code, & print out information anywhere involving mutation + all debug statements |
| 574 |
# DBUG = -g3 -DDEBUG_MUTATION -DDEBUG -DDEBUG3 # dbx + optimization; Use assert code, & print out information anywhere involving mutation + all debug statements incl. 3 |
| 575 |
# DBUG = -DASSERTQUATOK # Uses the macro "assertQuatOK()" to ensure the quaternion magnitude is near unity |
| 576 |
|
| 577 |
# PROF = # No profiling |
| 578 |
# PROF = -p # CC Profiling |
| 579 |
# PROF = -pg # For GNU gcc & GNU g++ Profiling with GNU gprof |
| 580 |
|
| 581 |
# WARN = # Default warning level |
| 582 |
# WARN = -woff all # For no warnings |
| 583 |
# WARN = -Wall # All warnings, gcc -- Recommended for developers |
| 584 |
# WARN = -fullwarn -ansiE -ansiW # For full warnings during compilation |
| 585 |
|
| 586 |
### ifeq ($(COLINY),yes) |
| 587 |
### COLINYLIB = libcoliny.a # Using Coliny |
| 588 |
### else |
| 589 |
#COLINY_LDADD = # Not using Coliny |
| 590 |
### endif |
| 591 |
|
| 592 |
# |
| 593 |
# Makefile targets |
| 594 |
# |
| 595 |
|
| 596 |
autodock4.html : |
| 597 |
@echo " " |
| 598 |
@echo "Creating a colour-coded HTML report of the AutoDock source code" |
| 599 |
@echo " " |
| 600 |
enscript -E --color -Whtml --toc -p$@ *.h *.cc |
| 601 |
|
| 602 |
check : test |
| 603 |
|
| 604 |
if WANT_OMP |
| 605 |
test : autodock4 autodock4.omp $(srcdir)/Tests/test_autodock4.py |
| 606 |
else |
| 607 |
test : autodock4 $(srcdir)/Tests/test_autodock4.py |
| 608 |
endif |
| 609 |
#if HAVE_PYTHON |
| 610 |
@echo " " |
| 611 |
@echo "Running the Python test_autodock4.py unit-tests on autodock4" |
| 612 |
@echo " " |
| 613 |
# for technical reasons, autodock must be run in the directory where the |
| 614 |
# test files reside because it writes its logs into its current directory |
| 615 |
# and expects to find AD4.1_bound.dat in that same directory. |
| 616 |
# We create a run-time Testruns directory for this purpose. |
| 617 |
# The name is different from Tests to allow "configure;make;make check" in the source dir. |
| 618 |
outputdir=`pwd` ;\ |
| 619 |
umask 0 ;\ |
| 620 |
test -d $$outputdir/Testruns && chmod -fR a+w $$outputdir/Testruns;\ |
| 621 |
test -d $$outputdir/Testruns || mkdir $$outputdir/Testruns ;\ |
| 622 |
cp $(srcdir)/AD4.1_bound.dat $$outputdir/Testruns;\ |
| 623 |
cp $(srcdir)/AD4_parameters.dat $$outputdir/Testruns;\ |
| 624 |
cp $(srcdir)/Tests/*.py $$outputdir/Testruns;\ |
| 625 |
cp $(srcdir)/Tests/*.dpf $$outputdir/Testruns;\ |
| 626 |
cp $(srcdir)/Tests/*.pdbqt $$outputdir/Testruns;\ |
| 627 |
cp $(srcdir)/Tests/*.map* $$outputdir/Testruns;\ |
| 628 |
chmod -fR a+w $$outputdir/Testruns; |
| 629 |
-cd Testruns; rm -f test_*.dlg ; \ |
| 630 |
python ./test_autodock4.py -d . -e ../autodock4$(EXEEXT) -o . ; |
| 631 |
if WANT_OMP |
| 632 |
@echo " " |
| 633 |
@echo "Running the Python test_autodock4.py unit-tests on autodock4.omp" |
| 634 |
@echo " " |
| 635 |
-cd Testruns; rm -f test_*.dlg ; \ |
| 636 |
python ./test_autodock4.py -d . -e ../autodock4.omp$(EXEEXT) -o . ; |
| 637 |
endif |
| 638 |
|
| 639 |
#else |
| 640 |
# @echo " " |
| 641 |
# @echo "Python version 2.1 or higher needed for 'make check', but not found." |
| 642 |
# @echo "Skipping AutoDock4 unit tests." |
| 643 |
# @echo " " |
| 644 |
#endif |
| 645 |
|
| 646 |
#$(COLINYLIB) : $(OBJS) $(OBJNOSQRT) $(OBJNOMINPT) |
| 647 |
# @echo " " |
| 648 |
# @echo Making the Coliny library |
| 649 |
# @echo " " |
| 650 |
# $(AR) $(ARFLAGS) $(COLINYLIB) $(?:.cc=.o) |
| 651 |
# $(RANLIB) $(RANLIBFLAGS) $(COLINYLIB) |
| 652 |
### |
| 653 |
### alternative from another CVS user |
| 654 |
### |
| 655 |
# coliny: $(ACRO) |
| 656 |
|
| 657 |
### acro: |
| 658 |
### @echo " " |
| 659 |
### @echo Making the Coliny library |
| 660 |
### @echo " " |
| 661 |
### @(cd ../acro;\ |
| 662 |
### if [ ! -e Makefile ]; then\ |
| 663 |
### ./setup configure;\ |
| 664 |
### fi;\ |
| 665 |
### $(MAKE)) |
| 666 |
|
| 667 |
|
| 668 |
# |
| 669 |
# Object dependencies: |
| 670 |
# |
| 671 |
|
| 672 |
gs.o : gs.cc gs.h ranlib.h eval.h rep.h support.h writePDBQT.h |
| 673 |
$(CXXCOMPILE) -DCHECK_ISNAN -c $(srcdir)/gs.cc |
| 674 |
|
| 675 |
# 2007-04-30 MP & GMM: this line is necessary to be able to compile read_parameter_library.o |
| 676 |
read_parameter_library.o : default_parameters.h |
| 677 |
|
| 678 |
default_parameters.h : AD4_parameters.dat AD4.1_bound.dat paramdat2h.csh |
| 679 |
rm -f $@ |
| 680 |
csh $(srcdir)/paramdat2h.csh $(srcdir)/AD4_parameters.dat $(srcdir)/AD4.1_bound.dat > $@ |
| 681 |
|
| 682 |
#coliny.o : coliny.h |
| 683 |
# $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(ACRO_INCLUDES) -c coliny.cc -o coliny.o |
| 684 |
|
| 685 |
# see Autoconf manual 4.7.3 (p. 25) support for VPATH |
| 686 |
# enabling multi-platform builds |
| 687 |
srcdir = @srcdir@ |
| 688 |
VPATH = @srcdir@ |
| 689 |
|
| 690 |
# see Autoconf manual for how to extend 'make clean' to directories: |
| 691 |
clean-local: clean-local-check |
| 692 |
.PHONY: clean-local-check |
| 693 |
clean-local-check: |
| 694 |
-rm -rf Testruns |
| 695 |
# |
| 696 |
# EOF |
| 697 |
# |