OpenMM build not dependent on fftw anymore
[gromacs/rigid-bodies.git] / Makefile.am
blob4ba1dec362b4932201f3279a5c213a23b8260ef1
1 ## Process this file with automake to produce Makefile.in
2 # Note: Makefile is automatically generated from Makefile.in by the configure
3 # script, and Makefile.in is automatically from Makefile.am by automake.
5 # N.B.: To be able to use dependency tracking on all hosts (not only w. gmake/gcc)
6 # and to use the suffix in library names we need the development versions of
7 # automake. Presently, this means automake version 1.4f. In Groningen, you
8 # can find that under ~lindahl/gnu/bin , or download a copy from www.gromacs.org
11 AUTOMAKE_OPTIONS = foreign 
13 SUBDIRS = include src admin scripts share man
16 # Most files in the config subdir is included automatically when
17 # we issue "make dist", but not depcomp
19 EXTRA_DIST = config/depcomp                                    
21 install-exec-hook:
22         @echo ""
23         @echo "GROMACS is installed under $(prefix)."
24         @echo "Make sure to update your PATH and MANPATH to find the"
25         @echo "programs and unix manual pages, and possibly LD_LIBRARY_PATH"
26         @echo "or /etc/ld.so.conf if you are using dynamic libraries."
27         @echo ""
28         @echo "Please run \"make tests\" now to verify your installation."
29         @echo ""
30         @echo "If you want links to the executables in /usr/local/bin,"
31         @echo "you can issue \"make links\" now."
33 # Shortcuts to construct and install the mdrun executable
35 mdrun:          
36         (cd $(top_builddir)/src/gmxlib && $(MAKE) ; exit 0)
37         (cd $(top_builddir)/src/mdlib && $(MAKE) ; exit 0)
38         (cd $(top_builddir)/src/kernel && $(MAKE) lib_LTLIBRARIES ; exit 0)
39         (cd $(top_builddir)/src/kernel && $(MAKE) mdrun ; exit 0)
41 install-mdrun:
42         (cd $(top_builddir)/src/gmxlib && $(MAKE) install ; exit 0)
43         (cd $(top_builddir)/src/mdlib && $(MAKE) install ; exit 0)
44         (cd $(top_builddir)/src/kernel && $(MAKE) install-libLTLIBRARIES ; exit 0)
45         (cd $(top_builddir)/src/kernel && $(MAKE) install-mdrun ; exit 0)
47 fahcore:
48         (cd $(top_builddir)/src/gmxlib && $(MAKE) ; exit 0)
49         (cd $(top_builddir)/src/mdlib && $(MAKE) ; exit 0)
50         (cd $(top_builddir)/src/kernel && $(MAKE) fahcore ; exit 0)
52 links:
53         cd $(bindir) && programs=`ls` && cd /usr/local/bin && \
54         for i in $$programs; do \
55            (test ! -f $$i && $(LN_S) $(bindir)/$$i . ; exit 0); \
56         done
57 tests:
58         (if test -d "gmxtest"; then cd "gmxtest"; ./gmxtest.pl all; cd ..; \
59         else echo "No gmxtest directory found. Please download and unpack it here.";\
60         fi)
62 RPMARCH=`rpm --showrc | awk '/^build arch/ {print $$4}'`
65 # Use --buildroot ???
66 rpm:
67         mkdir -p rpmdir/BUILD \
68           rpmdir/SPECS \
69           rpmdir/SOURCES \
70           rpmdir/SRPMS \
71           rpmdir/RPMS/$(RPMARCH)
72         cp -f $(PACKAGE)-$(VERSION).tar.gz rpmdir/SOURCES
73         rpmbuild --clean -ba $(top_srcdir)/admin/$(PACKAGE).spec --define "_topdir $$PWD/rpmdir" 
74         @echo "============================================================"
75         @echo "Finished - the packages are in rpmdir/RPMS and rpmdir/SRPMS!"
78 mpi-rpm:        
79         mkdir -p rpmdir/BUILD \
80           rpmdir/SPECS \
81           rpmdir/SOURCES \
82           rpmdir/SRPMS \
83           rpmdir/RPMS/$(RPMARCH)
84         cp -f $(PACKAGE)-$(VERSION).tar.gz rpmdir/SOURCES/$(PACKAGE)-$(VERSION).tar.gz
85         rpmbuild --clean -bb $(top_srcdir)/admin/$(PACKAGE)-mpi.spec --define "_topdir $$PWD/rpmdir"
86         @echo "============================================"
87         @echo "Finished - the packages are in rpmdir/RPMS!"
89 CLEANFILES = *~ \\\#* 
91 DISTCLEANFILES = libtool config.cache config.log