Fixed a bug in the pdb-writing code.
[gromacs.git] / src / mdlib / Makefile.am
blobfe02298bae06f926d419ffbc831f902b66afe23a
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 generated from Makefile.am by automake.
5 AM_CPPFLAGS = -I$(top_srcdir)/include -DGMXLIBDIR=\"$(datadir)/top\"
7 libmd@LIBSUFFIX@_la_LIBADD         = @MDLIB_LIBOBJS@    
8 libmd@LIBSUFFIX@_la_DEPENDENCIES   = @MDLIB_LIBOBJS@    
9 libmd@LIBSUFFIX@_la_LDFLAGS        = -version-info @SHARED_VERSION_INFO@
11 lib_LTLIBRARIES = libmd@LIBSUFFIX@.la
13 libmd@LIBSUFFIX@_la_SOURCES = \
14         calcmu.c        calcvir.c       constr.c        \
15         coupling.c      dummies.c       ebin.c          \
16         edsam.c         ewald.c         fftgrid.c       \
17         force.c         ghat.c          init.c          \
18         mdatom.c        mdebin.c        minimize.c      \
19         ns.c            nsb.c           nsgrid.c        \
20         pme.c           poisson.c       pppm.c          \
21         psgather.c      pull.c          pullinit.c      \
22         pullio.c        pullutil.c      pssolve.c       \
23         psspread.c      shakef.c        sim_util.c      \
24         splittop.c      tables.c        tgroup.c        \
25         update.c        vcm.c           wnblist.c       \
26         poisson.h       splittop.h      wnblist.h       \
27         pull_internal.h
29 EXTRA_libmd@LIBSUFFIX@_la_SOURCES = \
30         csettle.c       clincs.c        \
31         fshake.f        fsettle.f       flincs.f        \
32         fshaked.f       fsettled.f      flincsd.f
35 # link the mpi library to non-mpi names if the latter are not present
36 install-exec-hook:
37         libname="libmd@LIBSUFFIX@"; \
38         nompi="`echo $$libname | sed -e 's,_mpi,,'`"; \
39         libdir="$(libdir)"; \
40         if echo $$libname | grep mpi >/dev/null ; then \
41           (cd $$libdir && test -e $$libname.a -a ! -e $$nompi.a && $(LN_S) $$libname.a $$nompi.a ; exit 0); \
42           (cd $$libdir && test -e $$libname.so -a ! -e $$nompi.so && $(LN_S) $$libname.so $$nompi.so ; exit 0); \
43         fi; 
46 # clean all libtool libraries, since the target names might have changed
47 CLEANFILES     = *.la *~ \\\#*