Merge branch 'master' into rotation
[alexxy/gromacs.git] / src / kernel / Makefile.am
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.
4
5 AM_CPPFLAGS = -I$(top_srcdir)/include -DGMXLIBDIR=\"$(datadir)/top\"
6
7 lib_LTLIBRARIES  = libgmxpreprocess@LIBSUFFIX@.la 
8
9 pkgconfigdir = ${libdir}/pkgconfig
10 pkgconfig_DATA = libgmxpreprocess@LIBSUFFIX@.pc
11
12 EXTRA_DIST = libgmxpreprocess.pc.cmakein
13
14 LDADD = $(lib_LTLIBRARIES) ../mdlib/libmd@LIBSUFFIX@.la ../gmxlib/libgmx@LIBSUFFIX@.la 
15
16 libgmxpreprocess@LIBSUFFIX@_la_LIBADD       = ../mdlib/libmd@LIBSUFFIX@.la
17 libgmxpreprocess@LIBSUFFIX@_la_DEPENDENCIES =
18
19 libgmxpreprocess@LIBSUFFIX@_la_LDFLAGS = -no-undefined -version-info @SHARED_VERSION_INFO@ $(PTHREAD_LIBS)
20
21 libgmxpreprocess@LIBSUFFIX@_la_SOURCES = \
22 add_par.c       add_par.h       \
23 compute_io.c    compute_io.h    \
24 convparm.c      convparm.h      \
25 fflibutil.c     fflibutil.h     \
26 gen_ad.c        \
27 gen_vsite.c     gen_vsite.h     \
28 genhydro.c      genhydro.h      \
29 gpp_atomtype.c          \
30 gpp_bond_atomtype.c     gpp_bond_atomtype.h     \
31 h_db.c          h_db.h          \
32 hackblock.c             \
33 hizzie.c        hizzie.h        \
34 pdb2top.c       \
35 pgutil.c        pgutil.h        \
36 readir.c        readir.h        \
37 readpull.c      readrot.c       \
38 resall.c        \
39 sorting.c       sorting.h       \
40 specbond.c      specbond.h      \
41 ter_db.c        ter_db.h        \
42 tomorse.c       gpp_tomorse.h   \
43 topdirs.c       topdirs.h       \
44 topexcl.c       topexcl.h       \
45 topio.c         topio.h         \
46 toppush.c       toppush.h       \
47 topshake.c      topshake.h      \
48 toputil.c       \
49 tpbcmp.c        tpbcmp.h        \
50 vsite_parm.c    vsite_parm.h    \
51 xlate.c         xlate.h 
52
53 bin_PROGRAMS = \
54         grompp          mdrun           tpbconv         pdb2gmx         \
55         g_protonate     g_luck          gmxdump                         \
56         gmxcheck        g_x2top
57
58 g_x2top_SOURCES = g_x2top.c nm2type.c g_x2top.h
59
60 mdrun_SOURCES = \
61         gctio.c         membed.c        membed.h    \
62         ionize.c        ionize.h        xmdrun.h        \
63         do_gct.c        repl_ex.c       repl_ex.h       \
64         xutils.c        runner.c        md.c            mdrun.c         \
65         genalg.c        genalg.h        md_openmm.h     md_openmm.c
66
67 if GMX_FAHCORE
68   noinst_LTLIBRARIES = libfahcore.la
69   libfahcore_la_SOURCES = $(mdrun_SOURCES) 
70   libfahcore_la_CFLAGS = $(AM_CFLAGS)
71   libfahcore_la_LDFLAGS = -all-static $(AM_LDFLAGS)
72   libfahcore_la_LIBADD = libgmxpreprocess@LIBSUFFIX@.la
73 endif
74
75 fahcore: libfahcore.la 
76
77 # shortcut to install only mdrun
78
79 install-mdrun: mdrun$(EXEEXT)
80         $(mkinstalldirs) $(DESTDIR)$(bindir)
81         if test -f mdrun$(EXEEXT); then \
82           f=`echo mdrun$(EXEEXT)|sed 's/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
83           echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) mdrun$(EXEEXT) $(DESTDIR)$(bindir)/$$f"; \
84           $(INSTALL_PROGRAM_ENV) $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) mdrun$(EXEEXT) $(DESTDIR)$(bindir)/$$f; \
85         else :; fi 
86
87 CLEANFILES = *~ \\\#*
88