Removed some template files from installation.
[alexxy/gromacs.git] / share / template / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 #
3 # Don't edit - this file is generated automatically from Makefile.am
4 #
5
6 templatedir = ${pkgdatadir}/template
7
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
20
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 README Makefile.pkg CMakeLists.txt.template
27
28 BUILT_SOURCES = gromacs
29
30 gromacs:
31         $(LN_S) $(top_srcdir)/include gromacs
32
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@,' >$@
40
41 CLEANFILES = Makefile.@host@ Makefile.@host@_double *~ \\\#*
42
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
47
48 clean-local:
49         rm -rf gromacs