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 \
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 \
29 EXTRA_libmd@LIBSUFFIX@_la_SOURCES = \
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
37 libname="libmd@LIBSUFFIX@"; \
38 nompi="`echo $$libname | sed -e 's,_mpi,,'`"; \
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); \
46 # clean all libtool libraries, since the target names might have changed
47 CLEANFILES = *.la *~ \\\#*