Merge branch 'release-4-5-patches'
[gromacs/adressmacs.git] / share / template / Makefile.am
blob90b6f2f985d7f29ba6a19e246b20968427f6f69b
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@ 
14 XCC = @CC@
15 if GMX_DOUBLE
16 MYCFLAGS = @CFLAGS@ @INCLUDES@ -I@includedir@ -DGMX_DOUBLE
17 else
18 MYCFLAGS = @CFLAGS@ @INCLUDES@ -I@includedir@
19 endif
21 if GMX_DOUBLE
22 template_DATA = template.c README Makefile.@host@_double Makefile.pkg
23 else
24 template_DATA = template.c README Makefile.@host@ Makefile.pkg
25 endif
26 EXTRA_DIST = template.c template_doc.c README Template.mak Makefile.pkg
28 BUILT_SOURCES = gromacs
30 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
48 clean-local:
49         rm -rf gromacs