Initial porting, do_md_openmm_nopatch.h is used.
[gromacs.git] / src / kernel / Makefile.am
blobd771fd0978e3f4f0034804cbe13933e72cb57df7
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 lib_LTLIBRARIES  = libgmxpreprocess@LIBSUFFIX@.la 
9 pkgconfigdir = ${libdir}/pkgconfig
10 pkgconfig_DATA = libgmxpreprocess@LIBSUFFIX@.pc
12 LDADD = $(lib_LTLIBRARIES) ../mdlib/libmd@LIBSUFFIX@.la ../gmxlib/libgmx@LIBSUFFIX@.la 
14 if USE_OPENMM
15 #AM_CPPFLAGS += -I$(top_srcdir)/libraries/openmm/include
16 #LDADD += $(top_srcdir)/libraries/openmm/lib/linux64/libOpenMM.*
17 lib_LTLIBRARIES += libopenmminterface.la
18 libopenmminterface_la_SOURCES = md_openmm.cpp
19 #mdrun_LINK = $(CXXLINK)
20 endif
22 libgmxpreprocess@LIBSUFFIX@_la_LIBADD       = ../mdlib/libmd@LIBSUFFIX@.la
23 libgmxpreprocess@LIBSUFFIX@_la_DEPENDENCIES =
25 libgmxpreprocess@LIBSUFFIX@_la_SOURCES = \
26 add_par.c       add_par.h       \
27 compute_io.c    compute_io.h    \
28 convparm.c      convparm.h      \
29 fflibutil.c     fflibutil.h     \
30 gen_ad.c        \
31 gen_vsite.c     gen_vsite.h     \
32 genhydro.c      genhydro.h      \
33 gpp_atomtype.c          \
34 gpp_bond_atomtype.c     gpp_bond_atomtype.h     \
35 h_db.c          h_db.h          \
36 hackblock.c             \
37 hizzie.c        hizzie.h        \
38 pdb2top.h       pdb2top.c       \
39 pgutil.c        pgutil.h        \
40 readir.c        readir.h        \
41 readpull.c      \
42 resall.c        \
43 sorting.c       sorting.h       \
44 specbond.c      specbond.h      \
45 ter_db.c        ter_db.h        \
46 tomorse.c       gpp_tomorse.h   \
47 topdirs.c       topdirs.h       \
48 topexcl.c       topexcl.h       \
49 topio.c         topio.h         \
50 toppush.c       toppush.h       \
51 topshake.c      topshake.h      \
52 toputil.c       \
53 tpbcmp.c        tpbcmp.h        \
54 vsite_parm.c    vsite_parm.h    \
55 xlate.c         xlate.h 
57 bin_PROGRAMS = \
58         grompp          mdrun           tpbconv         pdb2gmx         \
59         protonate       luck            gmxdump                         \
60         gmxcheck        x2top
62 x2top_SOURCES = x2top.c nm2type.c x2top.h
64 mdrun_SOURCES = \
65         gctio.c         \
66         ionize.c        ionize.h        xmdrun.h        \
67         do_gct.c        repl_ex.c       repl_ex.h       \
68         xutils.c        runner.c        md.c            mdrun.c         \
69         genalg.c        genalg.h
71 if GMX_FAHCORE
72   noinst_LTLIBRARIES = libfahcore.la
73   libfahcore_la_SOURCES = $(mdrun_SOURCES) 
74   libfahcore_la_CFLAGS = $(AM_CFLAGS)
75   libfahcore_la_LDFLAGS = -all-static $(AM_LDFLAGS)
76   libfahcore_la_LIBADD = libgmxpreprocess@LIBSUFFIX@.la
77 endif
79 fahcore: libfahcore.la 
81 # shortcut to install only mdrun
83 install-mdrun: mdrun$(EXEEXT)
84         $(mkinstalldirs) $(DESTDIR)$(bindir)
85         if test -f mdrun$(EXEEXT); then \
86           f=`echo mdrun$(EXEEXT)|sed 's/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
87           echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) mdrun$(EXEEXT) $(DESTDIR)$(bindir)/$$f"; \
88           $(INSTALL_PROGRAM_ENV) $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) mdrun$(EXEEXT) $(DESTDIR)$(bindir)/$$f; \
89         else :; fi 
91 CLEANFILES = *~ \\\#*