| 1 |
## Process this file with automake to produce Makefile.in |
| 2 |
|
| 3 |
# $Id: Makefile.am,v 1.31 2014/07/04 01:27:43 mp Exp $ |
| 4 |
# |
| 5 |
# AutoGrid |
| 6 |
# |
| 7 |
# Copyright (C) 1989-2009, TSRI |
| 8 |
# All Rights Reserved. |
| 9 |
# |
| 10 |
# AutoGrid 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 AutoGrid 4 |
| 28 |
# |
| 29 |
|
| 30 |
# Autotools |
| 31 |
|
| 32 |
EXTRA_DIST = Tests |
| 33 |
|
| 34 |
dist-hook: |
| 35 |
rm -rf `find $(distdir)/Tests -name CVS -o -name '*.glg'` |
| 36 |
|
| 37 |
bin_PROGRAMS = autogrid4 |
| 38 |
|
| 39 |
autogrid4_SOURCES = main.cpp \ |
| 40 |
check_size.cpp \ |
| 41 |
setflags.cpp \ |
| 42 |
timesys.cpp \ |
| 43 |
timesyshms.cpp \ |
| 44 |
printhms.cpp \ |
| 45 |
prHMSfixed.cpp \ |
| 46 |
printdate.cpp \ |
| 47 |
strindex.cpp \ |
| 48 |
banner.cpp \ |
| 49 |
gpfparser.cpp \ |
| 50 |
parsetypes.cpp \ |
| 51 |
atom_parameter_manager.cpp \ |
| 52 |
read_parameter_library.cpp \ |
| 53 |
parse_param_line.cpp \ |
| 54 |
distdepdiel.cpp \ |
| 55 |
mingw_getrusage.cpp \ |
| 56 |
calc_vina_potential.cpp \ |
| 57 |
stop.cpp \ |
| 58 |
atom_parameter_manager.h \ |
| 59 |
autoglobal.h \ |
| 60 |
autogrid.h \ |
| 61 |
constants.h \ |
| 62 |
default_parameters.h \ |
| 63 |
distdepdiel.h \ |
| 64 |
gpftoken.h \ |
| 65 |
grid.h \ |
| 66 |
mingw_sysconf.h \ |
| 67 |
mingw_sys_times.h \ |
| 68 |
parameters.h \ |
| 69 |
parm.h \ |
| 70 |
parse_param_line.h \ |
| 71 |
partokens.h \ |
| 72 |
printdate.h \ |
| 73 |
printhms.h \ |
| 74 |
prototypes.h \ |
| 75 |
ranlib.h \ |
| 76 |
read_parameter_library.h \ |
| 77 |
times.h \ |
| 78 |
timesys.h \ |
| 79 |
timesyshms.h \ |
| 80 |
typedefs.h \ |
| 81 |
util.h \ |
| 82 |
calc_vina_potential.h \ |
| 83 |
gridmap.h \ |
| 84 |
version.h |
| 85 |
|
| 86 |
|
| 87 |
# Define the AutoGrid 4 source code files: |
| 88 |
# See GNU Automake documentation, section 10.4 re BUILT_SOURCES; |
| 89 |
# "default_parameters.h" is generated using the rules below |
| 90 |
# which invoke "paramdat2h.csh" to convert the AD4.1_bound.dat |
| 91 |
# parameter library file into a C++ header file. |
| 92 |
# This same step runs "copyfilesfromAD" to copy common source files |
| 93 |
# from the autodock source directory to the autogrid build directory. |
| 94 |
BUILT_SOURCES = default_parameters.h |
| 95 |
|
| 96 |
|
| 97 |
AM_CFLAGS = -Wall -O3 # All warnings, Agressive optimization |
| 98 |
|
| 99 |
AM_CPPFLAGS = -Wall -O3 -I $(srcdir) -I$(srcdir)/../autodock # All warnings, Agressive optimization |
| 100 |
AM_CPPFLAGS += -Wno-write-strings # increase compatibility with pre 4.x compilers for string handling |
| 101 |
# M Pique - add USE_8A_NBCUTOFF |
| 102 |
AM_CPPFLAGS += -DUSE_8A_NBCUTOFF |
| 103 |
# M Pique - add USE_DOUBLE to define Real as double instead of float, see typedefs.h |
| 104 |
AM_CPPFLAGS += -DUSE_DOUBLE |
| 105 |
|
| 106 |
# autogrid4_CXXFLAGS = -Wall -O3 -ftree-vectorize # All warnings, Agressive optimization, GCC vectorization in Mac OS X |
| 107 |
|
| 108 |
autogrid4_CPPFLAGS=$(AM_CPPFLAGS) |
| 109 |
|
| 110 |
# LINKOPT = $(CSTD) $(OPT) -Wl,--stack=0x2000000 # Cygwin, 32MB stacksize |
| 111 |
|
| 112 |
if WANT_BIGSTACK |
| 113 |
autogrid4_LDFLAGS = -Wl,--stack,8388608 # Cygwin, 32MB stacksize |
| 114 |
endif |
| 115 |
|
| 116 |
|
| 117 |
# DBUG = -DNDEBUG # No debugging and no assert code. |
| 118 |
# DBUG = # Use assert code. |
| 119 |
# DBUG = -g # dbx. |
| 120 |
# DBUG = -g -DDEBUG # dbx + DEBUG-specific code. |
| 121 |
# DBUG = -g3 # dbx + optimization. |
| 122 |
# DBUG = -g3 -DDEBUG # dbx + optimization, + DEBUG-specific code. |
| 123 |
# DBUG = -DDEBUG # Just DEBUG-specific code. |
| 124 |
# DBUG = -DDEBUG2 # Just DEBUG2-specific code for tracking prop.selection. |
| 125 |
# DBUG = -DDEBUG3 # Just DEBUG3-specific code for print age of individuals. |
| 126 |
|
| 127 |
check : test |
| 128 |
|
| 129 |
test : autogrid4 $(srcdir)/Tests/test_autogrid4.py |
| 130 |
#if HAVE_PYTHON |
| 131 |
@echo " " |
| 132 |
@echo "Running the Python test_autogrid4.py unit-tests on autogrid4" |
| 133 |
@echo " " |
| 134 |
# for technical reasons, autogrid must be run in the directory where the |
| 135 |
# test files reside because it writes its maps into its current directory |
| 136 |
# and expects to find AD4.1_bound.dat in that same directory. |
| 137 |
# We create a run-time Testruns directory for this purpose. |
| 138 |
# The name is different to allow "configure;make;make check" in the source dir. |
| 139 |
outputdir=`pwd` ;\ |
| 140 |
umask 0 ;\ |
| 141 |
test -d $$outputdir/Testruns && chmod -fR a+w $$outputdir/Testruns;\ |
| 142 |
test -d $$outputdir/Testruns || mkdir $$outputdir/Testruns ;\ |
| 143 |
cp $(srcdir)/Tests/AD4.1_bound.dat $$outputdir/Testruns;\ |
| 144 |
cp $(srcdir)/Tests/*.py $$outputdir/Testruns;\ |
| 145 |
cp $(srcdir)/Tests/*.gpf $$outputdir/Testruns;\ |
| 146 |
cp $(srcdir)/Tests/*.pdbqt $$outputdir/Testruns;\ |
| 147 |
cp $(srcdir)/Tests/*.map* $$outputdir/Testruns;\ |
| 148 |
chmod -fR a+w $$outputdir/Testruns;\ |
| 149 |
cd $$outputdir/Testruns;\ |
| 150 |
python ./test_autogrid4.py -d . -e ../autogrid4$(EXEEXT) -o . |
| 151 |
#else |
| 152 |
# @echo " " |
| 153 |
# @echo "Python version 2.1 or higher needed for 'make test', but not found." |
| 154 |
# @echo "Skipping AutoGrid4 unit tests." |
| 155 |
# @echo " " |
| 156 |
#endif |
| 157 |
|
| 158 |
|
| 159 |
main.o : $(srcdir)/../autodock/autocomm.h |
| 160 |
|
| 161 |
default_parameters.h : $(srcdir)/../autodock/paramdat2h.csh $(srcdir)/../autodock/AD4_parameters.dat $(srcdir)/../autodock/AD4.1_bound.dat |
| 162 |
rm -f $@ |
| 163 |
csh $(srcdir)/../autodock/paramdat2h.csh $(srcdir)/../autodock/AD4_parameters.dat $(srcdir)/../autodock/AD4.1_bound.dat > $@ |
| 164 |
sh $(srcdir)/copyfilesfromAD |
| 165 |
|
| 166 |
# 2007-04-30 MP & GMM: this line is necessary to be able to compile read_parameter_library.o |
| 167 |
read_parameter_library.o : default_parameters.h |
| 168 |
|
| 169 |
# see Autoconf manual 4.7.3 (p. 25) support for VPATH |
| 170 |
# enabling multi-platform builds |
| 171 |
srcdir = @srcdir@ |
| 172 |
VPATH = @srcdir@ |
| 173 |
|
| 174 |
# see Autoconf manual for how to extend 'make clean' to directories: |
| 175 |
clean-local: clean-local-check |
| 176 |
.PHONY: clean-local-check |
| 177 |
clean-local-check: |
| 178 |
sh $(srcdir)/copyfilesfromAD -r |
| 179 |
-rm -f default_parameters.h |
| 180 |
-rm -rf Testruns |
| 181 |
# |
| 182 |
# EOF |
| 183 |
# |