Work around failure of endianness testing on BlueGene
[gromacs.git] / Makefile.am
blob815637d054d858a360b2b0d370c21e0c061d1b1d
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
10 ACLOCAL_AMFLAGS = -I config
12 AUTOMAKE_OPTIONS = foreign 
14 SUBDIRS = include src admin scripts share man
17 # Most files in the config subdir is included automatically when
18 # we issue "make dist", but not depcomp
20 EXTRA_DIST = config/depcomp \
21                          CMakeLists.txt cmake \
22                          include/thread_mpi/atomic/CMakeLists.txt \
23                          include/thread_mpi/CMakeLists.txt \
24                          include/CMakeLists.txt \
25                          man/CMakeLists.txt \
26                          tests/CMakeLists.txt \
27                          share/CMakeLists.txt \
28                          src/kernel/gmx_gpu_utils \
29                          src/kernel/CMakeLists.txt \
30                          src/kernel/openmm_wrapper.cpp \
31                          src/kernel/openmm_wrapper.h \
32                          src/ngmx/CMakeLists.txt \
33                          src/mdlib/CMakeLists.txt \
34                          src/config.h.cmakein \
35                          src/gmxlib/version.c.cmakein \
36                          src/gmxlib/thread_mpi/CMakeLists.txt \
37                          src/gmxlib/CMakeLists.txt \
38                          src/CMakeLists.txt \
39                          src/tools/CMakeLists.txt \
40                          COPYING-GPU \
41                          COPYING-OTHER \
42                          INSTALL-GPU \
43                          INSTALL.cmake \
44                          INSTALL.automake
47 install-exec-hook:
48 if NO_LA_FILES
49         cd $(DESTDIR)$(libdir) && rm -f libmd@LIBSUFFIX@.la libgmx@LIBSUFFIX@.la libgmxpreprocess@LIBSUFFIX@.la libgmxana@LIBSUFFIX@.la
50 endif
51         @echo ""
52         @echo "GROMACS is installed under $(prefix)."
53         @echo "Make sure to update your PATH and MANPATH to find the"
54         @echo "programs and unix manual pages, and possibly LD_LIBRARY_PATH"
55         @echo "or /etc/ld.so.conf if you are using dynamic libraries."
56         @echo ""
57         @echo "Please run \"make tests\" now to verify your installation."
58         @echo ""
59         @echo "If you want links to the executables in /usr/local/bin,"
60         @echo "you can issue \"make links\" now."
62 # Shortcuts to construct and install the mdrun executable
64 mdrun:          
65         (cd $(top_builddir)/src/gmxlib && $(MAKE) ; exit 0)
66         (cd $(top_builddir)/src/mdlib && $(MAKE) ; exit 0)
67         (cd $(top_builddir)/src/kernel && $(MAKE) mdrun ; exit 0)
69 install-mdrun:
70         (cd $(top_builddir)/src/gmxlib && $(MAKE) install ; exit 0)
71         (cd $(top_builddir)/src/mdlib && $(MAKE) install ; exit 0)
72         (cd $(top_builddir)/src/kernel && $(MAKE) install-libLTLIBRARIES ; exit 0)
73         (cd $(top_builddir)/src/kernel && $(MAKE) install-mdrun ; exit 0)
74 if NO_LA_FILES
75         cd $(DESTDIR)$(libdir) && rm -f libmd@LIBSUFFIX@.la libgmx@LIBSUFFIX@.la libgmxpreprocess@LIBSUFFIX@.la libgmxana@LIBSUFFIX@.la
76 endif
78 fahcore:
79         (cd $(top_builddir)/src/gmxlib && $(MAKE) ; exit 0)
80         (cd $(top_builddir)/src/mdlib && $(MAKE) ; exit 0)
81         (cd $(top_builddir)/src/kernel && $(MAKE) fahcore ; exit 0)
83 links:
84         cd $(bindir) && programs=`ls` && cd /usr/local/bin && \
85         for i in $$programs; do \
86            (test ! -f $$i && $(LN_S) $(bindir)/$$i . ; exit 0); \
87         done
88 tests:
89         (if test -d "gmxtest"; then cd "gmxtest"; ./gmxtest.pl all; cd ..; \
90         else echo "No gmxtest directory found. Please download and unpack it here.";\
91         fi)
93 RPMARCH=`rpm --showrc | awk '/^build arch/ {print $$4}'`
96 # Use --buildroot ???
97 rpm:
98         mkdir -p rpmdir/BUILD \
99           rpmdir/SPECS \
100           rpmdir/SOURCES \
101           rpmdir/SRPMS \
102           rpmdir/RPMS/$(RPMARCH)
103         cp -f $(PACKAGE)-$(VERSION).tar.gz rpmdir/SOURCES
104         rpmbuild --clean -ba $(top_srcdir)/admin/$(PACKAGE).spec --define "_topdir $$PWD/rpmdir" 
105         @echo "============================================================"
106         @echo "Finished - the packages are in rpmdir/RPMS and rpmdir/SRPMS!"
109 mpi-rpm:        
110         mkdir -p rpmdir/BUILD \
111           rpmdir/SPECS \
112           rpmdir/SOURCES \
113           rpmdir/SRPMS \
114           rpmdir/RPMS/$(RPMARCH)
115         cp -f $(PACKAGE)-$(VERSION).tar.gz rpmdir/SOURCES/$(PACKAGE)-$(VERSION).tar.gz
116         rpmbuild --clean -bb $(top_srcdir)/admin/$(PACKAGE)-mpi.spec --define "_topdir $$PWD/rpmdir"
117         @echo "============================================"
118         @echo "Finished - the packages are in rpmdir/RPMS!"
120 CLEANFILES = *~ \\\#* 
122 DISTCLEANFILES = libtool config.cache config.log