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 LDFLAGS = -L@libdir@ @LDFLAGS@
13 LIBS = -lmd@LIBSUFFIX@ -lgmx@LIBSUFFIX@ @LIBS@
16 MYCFLAGS = @CFLAGS@ @INCLUDES@ -I@includedir@ -I@includedir@/gromacs -DGMX_DOUBLE
18 MYCFLAGS = @CFLAGS@ @INCLUDES@ -I@includedir@ -I@includedir@/gromacs
22 template_DATA = template.c README Makefile.@host@_double
24 template_DATA = template.c README Makefile.@host@
26 EXTRA_DIST = template.c template_doc.c README Template.mak
28 Makefile.@host@ Makefile.@host@_double: Template.mak Makefile
29 cat $(srcdir)/Template.mak | \
30 sed 's,@LDFLAGS\@,$(LDFLAGS),' | \
31 sed 's,@LIBS\@,$(LIBS),' | \
32 sed 's,@CFLAGS\@,$(MYCFLAGS),' | \
33 sed 's,@CC\@,$(CC),' | \
34 sed 's,@host\@,@host@,' >$@
36 CLEANFILES = Makefile.@host@ Makefile.@host@_double *~ \\\#*