-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
executable file
·500 lines (447 loc) · 15.2 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
## Process this file with automake to produce Makefile.in
# $Id: Makefile.am,v 1.9 2007/05/12 04:51:41 garrett Exp $
#
# AutoDock
#
# Copyright (C) 1989-2007, Garrett M. Morris, TSRI
# All Rights Reserved.
#
# AutoDock is a Trade Mark of The Scripps Research Institute.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# Makefile.am to build AutoDock 4
#
# NOTE: Must be run in the $(AUTODOCK_DEV) directory
#
# Autotools
EXTRA_DIST = AD4_PARM99.dat AD4_parameters.dat paramdat2h.csh Tests
dist-hook:
rm -rf `find $(distdir)/Tests -name CVS -o -name '*.dlg'`
bin_PROGRAMS = autodock4
# Define the AutoDock 4 source code files:
autodock4_SOURCES = \
main.cc
noinst_LIBRARIES = libad.a
libad_a_SOURCES = \
analysis.cc \
atom_parameter_manager.cc \
banner.cc \
bestpdb.cc \
calculateEnergies.cc \
call_glss.cc \
call_gs.cc \
call_ls.cc \
changeState.cc \
check_header_float.cc \
check_header_int.cc \
check_header_line.cc \
cluster_analysis.cc \
clmode.cc \
cmdmode.cc \
cnv_state_to_coords.cc \
com.cc \
conformation_sampler.cc \
distdepdiel.cc \
stateLibrary.cc \
readfield.cc \
readmap.cc \
readPDBQT.cc \
read_parameter_library.cc \
eval.cc \
gencau.cc \
getrms.cc \
get_atom_type.cc \
getInitialState.cc \
getpdbcrds.cc \
gs.cc \
initautodock.cc \
input_state.cc \
investigate.cc \
linpack.cc \
ls.cc \
mapping.cc \
minmeanmax.cc \
mkNewState.cc \
mkTorTree.cc \
mkRandomState.cc \
nonbonds.cc \
openfile.cc \
output_state.cc \
parse_com_line.cc \
parse_dpf_line.cc \
parse_param_line.cc \
parse_PDBQT_line.cc \
parse_trj_line.cc \
parsetypes.cc \
print_2x.cc \
print_atomic_energies.cc \
print_avsfld.cc \
writePDBQT.cc \
print_rem.cc \
printdate.cc \
printEnergies.cc \
printhms.cc \
prClusterHist.cc \
prInitialState.cc \
prTorConList.cc \
qmultiply.cc \
qtransform.cc \
quicksort.cc \
ranlib.cc \
rep.cc \
scauchy.cc \
set_cmd_io_std.cc \
setflags.cc \
simanneal.cc \
sort_enrg.cc \
stop.cc \
strindex.cc \
success.cc \
summarizegrids.cc \
support.cc \
swap.cc \
timesys.cc \
timesyshms.cc \
torNorVec.cc \
torsion.cc \
trilinterp.cc \
usage.cc \
weedbonds.cc \
warn_bad_file.cc \
coliny.cc \
eintcal.cc \
eintcalPrint.cc \
intnbtable.cc \
nbe.cc \
PDBQT_tokens.h \
analysis.h \
atom_parameter_manager.h \
autocomm.h \
autoglobal.h \
banner.h \
bestpdb.h \
calculateEnergies.h \
call_glss.h \
call_gs.h \
call_ls.h \
changeState.h \
check_header_float.h \
check_header_int.h \
check_header_line.h \
clmode.h \
cluster_analysis.h \
cmdmode.h \
cmdtokens.h \
cnv_state_to_coords.h \
coliny.h \
conformation_sampler.h \
constants.h \
default_parameters.h \
distdepdiel.h \
dpftoken.h \
eintcal.h \
eintcalPrint.h \
energy.h \
eval.h \
gencau.h \
getInitialState.h \
get_atom_type.h \
getpdbcrds.h \
getrms.h \
globals.h \
grid.h \
gs.h \
hybrids.h \
initautodock.h \
input_state.h \
intnbtable.h \
investigate.h \
ls.h \
main.h \
mdist.h \
mkNewState.h \
mkRandomState.h \
mkTorTree.h \
molstruct.h \
nbe.h \
nonbonds.h \
openfile.h \
output_state.h \
parameters.h \
parse_PDBQT_line.h \
parse_com_line.h \
parse_dpf_line.h \
parse_param_line.h \
parse_trj_line.h \
parsetypes.h \
partokens.h \
prClusterHist.h \
prInitialState.h \
prTorConList.h \
printEnergies.h \
print_2x.h \
print_atomic_energies.h \
print_avsfld.h \
print_rem.h \
printdate.h \
printhms.h \
qmultiply.h \
qtransform.h \
quicksort.h \
ranlib.h \
readPDBQT.h \
read_parameter_library.h \
readfield.h \
readmap.h \
rep.h \
rep_constants.h \
set_cmd_io_std.h \
setflags.h \
simanneal.h \
sort_enrg.h \
stateLibrary.h \
stop.h \
strindex.h \
structs.h \
success.h \
summarizegrids.h \
support.h \
swap.h \
timesys.h \
timesyshms.h \
torNorVec.h \
torsion.h \
trilinterp.h \
trjtokens.h \
typedefs.h \
usage.h \
version.h \
warn_bad_file.h \
weedbonds.h \
writePDBQT.h
if WANT_CUDA
#libad_a_SOURCES += eAllocPrepCuda.cc
libad_a_SOURCES += eMapPrepCuda.cc
endif
#AM_CXXFLAGS = -Wall -O3 # All warnings, Agressive optimization
#AM_CXXFLAGS = -Wall -O3 -ftree-vectorize # All warnings, Agressive optimization + GCC vectorization # MacOSX only?
AM_CPPFLAGS = -DNOSQRT \
-DUSE_8A_NBCUTOFF -DDO_NOT_CROSSOVER_IN_QUAT \
-DWRITEPDBQSTATE \
-I$(srcdir)/../acro/include # Standard accuracy, but faster; no crossover in quaternion
#autodock4_CXXFLAGS = -Wall -O3 # All warnings, Agressive optimization
#autodock4_CXXFLAGS = -Wall -O3 -ftree-vectorize # All warnings, Agressive optimization + GCC vectorization # MacOSX only?
#autodock4_CPPFLAGS = -DUSE_8A_NBCUTOFF -DDO_NOT_CROSSOVER_IN_QUAT \
# -DWRITEPDBQSTATE # Standard accuracy, but faster; no crossover in quaternion
autodock4_LDADD = libad.a -lm
if WANT_CUDA
# @echo "NVCC ADDED STUFF
autodock4_LDADD += select_alloc_wrapper.o eval_wrapper.o
endif
if WANT_BIGSTACK
autodock4_LDFLAGS = -fno-stack-limit # Cygwin, 32MB stacksize
endif
#
# If you need to use debugging or profiling, these should also be
# modified appropriately:
# DBUG & PROF
#
# If you want to use the Coliny solver library, uncomment the following:
# COLINY = yes
#
# Abbreviations:
#
# Alpha = Compaq/Digital Equipment Corp., Alpha
# Convex = Convex, c2
# Cygwin = Cygwin running on Microsoft Windows
# Darwin = Darwin
# HP = Hewlett Packard Precision Architecture, hppa
# Linux = Any platform that runs GNU/Linux, Linux
# MacOSX = Apple Mac OS X 10.0 & higher, MacOSX
# SGI = Silicon Graphics Inc., sgi4D
# Sun = Sun Microsystems, sun4
# CFLAGS = $(CSTD) $(OPT) -DUSE_8A_NBCUTOFF -DDO_NOT_CROSSOVER_IN_QUAT # SGI, HP, Alpha, Sun, Convex, Cygwin, Linux, MacOSX: Standard accuracy, but faster; no crossover in quaternion
# CFLAGS = $(CSTD) $(OPT) -DUSE_8A_NBCUTOFF # SGI, HP, Alpha, Sun, Convex, Linux, MacOSX: Standard accuracy, but faster
# CFLAGS = $(CSTD) $(OPT) -DUSE_8A_NBCUTOFF -DQUATERNION_MUTATION # As above, but treat quaternion genes properly when doing mutations--note, this is slow!
# CFLAGS = $(CSTD) $(OPT) -DUSE_8A_NBCUTOFF -DUSE_DOUBLE # SGI, HP, Alpha, Sun, Convex, Linux, MacOSX: Standard accuracy, but faster; also use Double precision throughout
# CFLAGS = $(CSTD) $(OPT) # SGI, HP, Alpha, Sun, Convex, Cygwin, Linux, MacOSX
# CC = g++ # HP, Gnu, Cygwin, Linux, Darwin, MacOSX
# CC = g++-4.0 -arch i386 # MacOSX -- Cross-compiling for Intel on PowerPC
# CC = g++-3.3 -arch ppc # MacOSX -- Cross-compiling for PowerPC on Intel
# CC = CC # SGI
# CC = cxx # Alpha
# CSTD = $(DBUG) $(PROF) $(WARN) # SGI, Sun, Linux, MacOSX
# CSTD = $(DBUG) $(PROF) $(WARN) -DUSE_XCODE # Smaller memory footprint, good for Xcode
# CSTD = $(DBUG) $(PROF) $(WARN) # SGI, Sun, Linux, MacOSX
# CSTD = $(DBUG) $(PROF) $(WARN) -I/opt/sfw/include # Sun Soliaris 8
# CSTD = $(DBUG) $(PROF) $(WARN) -std # Convex
# CSTD = -std -verbose $(PROF) $(DBUG) $(WARN) # Alpha. Not sarah
# CSTD = -std arm -verbose $(PROF) $(DBUG) $(WARN) # Alpha. sarah
# CSTD = -DHPPA -D_HPUX_SOURCE -ansi $(PROF) $(DBUG) $(WARN) # HP
# OPTLEVEL = -O3 -ftree-vectorize # Agressive optimization + GCC vectorization
# OPTLEVEL = -O3 -ffast-math # Agressive optimization, for Intel Itanium, ia64Linux2
# OPTLEVEL = -O3 # Agressive optimization
# OPTLEVEL = -fast # Agressive optimization for the G5 on MacOSX
# OPTLEVEL = -O2 # High optimization
# OPTLEVEL = -O1 # Do optimizations that can be done quickly; default. Recommended for unit testing
# OPTLEVEL = -O0 # Do not optimize
# OPT_SGI_IPNUM = # Alpha, HP, Sun, Convex, SGI, Cygwin, Linux, MacOSX
# OPT_SGI_IPNUM = -Ofast=ip19 # SGI, 'uname -a' says 'IP19'
# OPT_SGI_IPNUM = -Ofast=ip21 # SGI, 'uname -a' says 'IP21'
# OPT_SGI_IPNUM = -Ofast=ip25 # SGI, 'uname -a' says 'IP25' PowerChallenge is R10000, IP25
# OPT_SGI_IPNUM = -Ofast=ip27 # SGI, 'uname -a' says 'IP27'
# OPT_SGI_IPNUM = -Ofast=ip30 # SGI, 'uname -a' says 'IP30'
# OPT_SGI_IPNUM = `uname -m | sed 's/IP/-Ofast=ip/'` # SGI, dynamic
# OPT_SGI_R000 = # Alpha, HP, Sun, Convex, SGI, Cygwin, Linux, MacOSX
# OPT_SGI_R000 = -r4000 -mips2 # SGI, 'hinv' says MIPS Processor is R4000
# OPT_SGI_R000 = -r8000 -mips4 # SGI, 'hinv' says MIPS Processor is R8000
# OPT_SGI_R000 = -r10000 -mips4 # SGI, 'hinv' says MIPS Processor is R10000
# OPT_SGI_R000 = -r12000 -mips4 # SGI, 'hinv' says MIPS Processor is R12000
# OPT_SGI_R000 = -r14000 -mips4 # SGI, 'hinv' says MIPS Processor is R14000
# OPT_SGI_R000 = `hinv | grep '^CPU:' | awk '{print $3}' | sed 's/R/-r/'` -mips4 # SGI, dynamic, -mips4 (works with -r8000 to -r14000, not -r4000)
# OPT = $(OPTLEVEL) # Alpha, HP, Sun, Convex, Cygwin, Linux, MacOSX
# OPT = $(OPTLEVEL) -ffast-math # Gnu cc, fast-math is dangerous!
# OPT = $(OPTLEVEL) -n32 $(OPT_SGI_IPNUM) $(OPT_SGI_R000) -IPA $(LNO_OPT) # SGI
# OPT = $(OPTLEVEL) -n32 $(OPT_SGI_IPNUM) $(OPT_SGI_R000) -IPA $(LNO_OPT) -DUSE_INT_AS_LONG # SGI (long is 8bytes)
# OPT = $(OPTLEVEL) $(OPT_SGI_IPNUM) $(OPT_SGI_R000) $(LNO_OPT) # SGI, not new 32-bit
# LNO_OPT = # SGI, no special optimization at link time; Sun, Cygwin, Linux, MacOSX
# LNO_OPT = -LNO:auto_dist=ON:gather_scatter=2 # SGI
# LINKOPT = $(CSTD) $(OPT) # All platforms except Cygwin and Sun
# LINKOPT = $(CSTD) $(OPT) -fno-stack-limit # Cygwin, 32MB stacksize
# LINKOPT = $(CSTD) $(OPT) -Wl,--stack=0x4000000 # Cygwin, 64MB stacksize
# LINKOPT = $(CSTD) $(OPT) -L/opt/sfw/lib # Sun
# LINK = $(LINKOPT) # Linking flags
# LINK = $(LINKOPT) -cord # Procedure rearranger on SGI
# LIB = -lm # for all platforms
# LIB = -lSaturn # for profiling using MacOSX Saturn
# DBUG = # Use assert code
# DBUG = -DNDEBUG # No debugging and no assert code
# DBUG = -g # dbx, or Gnu gdb
# DBUG = -g -DDEBUG # dbx + DEBUG-specific code
# DBUG = -g3 # dbx + optimization
# DBUG = -g3 -DDEBUG # dbx + optimization, + DEBUG-specific code
# DBUG = -DDEBUG # Just DEBUG-specific code
# DBUG = -DDEBUG2 # Just DEBUG2-specific code for tracking prop.selection
# DBUG = -DDEBUG3 # Just DEBUG3-specific code for print age of individuals
# DBUG = -g -DDEBUG -DDEBUG2 -DDEBUG3 # Debug everything
# DBUG = -DDEBUG_MUTATION # Use assert code, & print out information anywhere involving mutation
# DBUG = -g3 -DDEBUG_QUAT # Use assert code, & assert quaternions are 4D-normalised
# DBUG = -g3 -DDEBUG_QUAT -DDEBUG_QUAT_PRINT # Use assert code, & assert quaternions are 4D-normalised, and print out
# DBUG = -g3 -DDEBUG_QUAT -DDEBUG_QUAT_PRINT -DDEBUG # Use assert code, & assert quaternions are 4D-normalised, and use DEBUG-specific code, and print out
# DBUG = -g3 -DDEBUG_MUTATION # dbx + optimization; Use assert code, & print out information anywhere involving mutation
# DBUG = -g3 -DDEBUG_MUTATION -DDEBUG # dbx + optimization; Use assert code, & print out information anywhere involving mutation + all debug statements
# DBUG = -g3 -DDEBUG_MUTATION -DDEBUG -DDEBUG3 # dbx + optimization; Use assert code, & print out information anywhere involving mutation + all debug statements incl. 3
# PROF = # No profiling
# PROF = -p # CC Profiling
# PROF = -pg # For GNU gcc & GNU g++ Profiling with GNU gprof
# WARN = # Default warning level
# WARN = -woff all # For no warnings
# WARN = -Wall # All warnings, gcc -- Recommended for developers
# WARN = -fullwarn -ansiE -ansiW # For full warnings during compilation
### ifeq ($(COLINY),yes)
### ACRO_OS = -DDARWIN # Darwin, MacOSX
### # ACRO_OS = -DLINUX # Linux
###
### # ACRO_LINK = -L../acro/lib -lcoliny -lcolin -lpico -lutilib -lappspack -l3po -lg2c # Linux
### ACRO_LINK = -L../acro/lib -lcoliny -lcolin -lpico -lutilib -lappspack -l3po -L/sw/lib -lg2c # Darwin, MacOSX (Fink needed)
###
### ACRO_INCLUDES = -I../acro/include -DUSING_COLINY $(ACRO_FLAGS)
### ACRO_FLAGS = -DDEBUGGING -DUNIX -DMULTITASK -DANSI_HDRS -DANSI_NAMESPACES $(ACRO_OS)
### LIB = $(ACRO_LINK)
### ACRO = acro
### COLINYLIB = libcoliny.a # Using Coliny
### else
COLINYLIB = # Not using Coliny
### endif
# Uncomment this section with "###" if cross-compiling on MacOSX (Intel and PowerPC)
# This section remains the same for either type of cross-compilation.
### HOST_CC="gcc-4.0"
### HOST_CXX="g++-4.0"
### RANLIB=ranlib
### AR=ar
### AS=$CC
### LD=ld
### STRIP="strip -x -S"
### CROSS_COMPILE=1
#
# Makefile targets
#
autodock4.html :
@echo " "
@echo "Creating a colour-coded HTML report of the AutoDock source code"
@echo " "
enscript -E --color -Whtml --toc -p$@ *.h *.cc
check : autodock4 $(srcdir)/Tests/test_autodock4.py
#if HAVE_PYTHON
@echo " "
@echo "Running the Python test_autodock4.py unit-tests on autodock4"
@echo " "
outputdir=`pwd` ;\
cd $(srcdir)/Tests ; chmod u+w . ; python ./test_autodock4.py -d . -e $$outputdir/autodock4 -o $$outputdir
#else
# @echo " "
# @echo "Python version 2.1 or higher needed for 'make check', but not found."
# @echo "Skipping AutoDock4 unit tests."
# @echo " "
#endif
#$(COLINYLIB) : $(OBJS) $(OBJNOSQRT) $(OBJNOMINPT)
# @echo " "
# @echo Making the Coliny library
# @echo " "
# $(AR) $(ARFLAGS) $(COLINYLIB) $(?:.cc=.o)
# $(RANLIB) $(RANLIBFLAGS) $(COLINYLIB)
###
### competing alternative from another CVS user
###
# coliny: $(ACRO)
### acro:
### @echo " "
### @echo Making the Coliny library
### @echo " "
### @(cd ../acro;\
### if [ ! -e Makefile ]; then\
### ./setup configure;\
### fi;\
### $(MAKE))
#
# Object dependencies:
#
gs.o : gs.cc gs.h ranlib.h eval.h rep.h support.h writePDBQT.h
$(CXXCOMPILE) -DCHECK_ISNAN -c $(srcdir)/gs.cc
### main.o : main.cc hybrids.h ranlib.h gs.h ls.h rep.h support.h main.h constants.h autocomm.h dpftoken.h structs.h autoglobal.h autocomm.h coliny.h parse_param_line.cc partokens.h eintcalPrint.cc eintcalPrint.h eintcal.cc atom_parameter_manager.cc atom_parameter_manager.h read_parameter_library.h calculateEnergies.cc calculateEnergies.h
### $(CXXCOMPILE) $(ACRO_INCLUDES) -c main.cc
# 2007-04-30 MP & GMM: this line is necessary to be able to compile read_parameter_library.o
read_parameter_library.o : default_parameters.h
default_parameters.h : AD4_parameters.dat paramdat2h.csh
rm -f $@
csh ./paramdat2h.csh > tmp-paramdat
mv -f tmp-paramdat $@
#coliny.o : coliny.h
# $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(ACRO_INCLUDES) -c coliny.cc -o coliny.o
# see Autoconf manual 4.7.3 (p. 25) support for VPATH
# enabling multi-platform builds
srcdir = @srcdir@
VPATH = @srcdir@
if WANT_CUDA
.cu.o:
$(NVCC) -c *.cu $(NVCCFLAGS) $(AM_CPPFLAGS)
# $(NVCC) -o $@ -c $< $(NVCCFLAGS) $(CUDA_LIBS) $(CUDA_CFLAGS)
endif
test :
$(prefix)/bin/autodock4
#
# EOF
#