Two patch fo extra functionality in python and fortran.
[gromacs/libxdrfile.git] / Makefile.am
blob8fbc6dd94ce3dfb8ded9e885c99fc39a8f147c0c
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
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 "libxdrfile 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 test\" 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 RPMARCH=`rpm --showrc | awk '/^build arch/ {print $$4}'`
37 test:   
38         cd src; make test
40 # Use --buildroot ???
41 rpm:
42         mkdir -p rpmdir/BUILD \
43           rpmdir/SPECS \
44           rpmdir/SOURCES \
45           rpmdir/SRPMS \
46           rpmdir/RPMS/$(RPMARCH)
47         cp -f $(PACKAGE)-$(VERSION).tar.gz rpmdir/SOURCES
48         rpmbuild --clean -ba $(top_srcdir)/admin/$(PACKAGE).spec --define "_topdir $$PWD/rpmdir" 
49         @echo "============================================================"
50         @echo "Finished - the packages are in rpmdir/RPMS and rpmdir/SRPMS!"
53 mpi-rpm:        
54         mkdir -p rpmdir/BUILD \
55           rpmdir/SPECS \
56           rpmdir/SOURCES \
57           rpmdir/SRPMS \
58           rpmdir/RPMS/$(RPMARCH)
59         cp -f $(PACKAGE)-$(VERSION).tar.gz rpmdir/SOURCES/$(PACKAGE)-$(VERSION).tar.gz
60         rpmbuild --clean -bb $(top_srcdir)/admin/$(PACKAGE)-mpi.spec --define "_topdir $$PWD/rpmdir"
61         @echo "============================================"
62         @echo "Finished - the packages are in rpmdir/RPMS!"
64 CLEANFILES = *~ \\\#* 
66 DISTCLEANFILES = libtool config.cache config.log