1 ## Process this file with automake to produce Makefile.in
3 # Don't edit - this file is generated automatically from Makefile.am
6 templatedir = ${pkgdatadir}/template
8 # we don't build this, it's meant for the user to play with.
9 # Since a Makefile is used for the installation, we call the
10 # template makefile Template.mak, and rename it to Makefile when installing.
11 # We add the GMX_DOUBLE define to CPPFLAGS, so users can do without config.h
12 XLDFLAGS = -L@libdir@ @LDFLAGS@
13 XLIBS = -lmd@LIBSUFFIX@ -lgmx@LIBSUFFIX@ @FFT_LIBS@ @XML_LIBS@ @GSL_LIBS@ @LIBS@
16 MYCFLAGS = @CFLAGS@ @INCLUDES@ -I@includedir@ -DGMX_DOUBLE
18 MYCFLAGS = @CFLAGS@ @INCLUDES@ -I@includedir@
22 template_DATA = template.c README Makefile.@host@_double Makefile.pkg
24 template_DATA = template.c README Makefile.@host@ Makefile.pkg
26 EXTRA_DIST = template.c template_doc.c README Template.mak Makefile.pkg CMakeLists.txt.template
28 BUILT_SOURCES = gromacs
31 $(LN_S) $(top_srcdir)/include gromacs
33 Makefile.@host@ Makefile.@host@_double: Template.mak Makefile
34 cat $(srcdir)/Template.mak | \
35 sed 's,@LDFLAGS\@,$(XLDFLAGS),' | \
36 sed 's,@LIBS\@,$(XLIBS),' | \
37 sed 's,@CFLAGS\@,$(MYCFLAGS),' | \
38 sed 's,@CC\@,$(XCC),' | \
39 sed 's,@host\@,@host@,' >$@
41 CLEANFILES = Makefile.@host@ Makefile.@host@_double *~ \\\#*
43 template_SOURCES = template.c
44 noinst_PROGRAMS = template
45 LDADD = ../../src/mdlib/libmd@LIBSUFFIX@.la ../../src/gmxlib/libgmx@LIBSUFFIX@.la
46 #template.$(OBJEXT): gromacs