Fix missing matrix.h in generated tarball.
[cloog-ppl.git] / Makefile.am
blobb1b827fd1f8a31e619a5d85659f26ace087fbb57
2 #   /**-------------------------------------------------------------------**
3 #    **                              CLooG                                **
4 #    **-------------------------------------------------------------------**
5 #    **                           makefile.in                             **
6 #    **-------------------------------------------------------------------**
7 #    **                   First version: october 25th 2001                **
8 #    **-------------------------------------------------------------------**/
10 # makefile.in (or makefile if generated) of CLooG, the Chunky LOOp Generator.
11 # makefile.in is not a makefile, you must run the 'configure' shellscript to
12 # generate the makefile thanks to this file.
14 #/*****************************************************************************
15 # *               CLooG : the Chunky Loop Generator (experimental)            *
16 # *****************************************************************************
17 # *                                                                           *
18 # * Copyright (C) 2001 Cedric Bastoul                                         *
19 # *                                                                           *
20 # * This is free software; you can redistribute it and/or modify it under the *
21 # * terms of the GNU General Public License as published by the Free Software *
22 # * Foundation; either version 2 of the License, or (at your option) any      *
23 # * later version.                                                            *
24 # *                                                                           *
25 # * This software is distributed in the hope that it will be useful, but      *
26 # * WITHOUT ANY WARRANTY; without even the implied warranty of                *
27 # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General *
28 # * Public License for more details.                                          *
29 # *                                                                           *
30 # * You should have received a copy of the GNU General Public License along   *
31 # * with software; if not, write to the Free Software Foundation, Inc.,       *
32 # * 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA                    *
33 # *                                                                           *
34 # * CLooG, the Chunky Loop Generator                                          *
35 # * Written by Cedric Bastoul, Cedric.Bastoul@inria.fr                        *
36 # *                                                                           *
37 # *****************************************************************************/
39 SUBDIRS = . doc test
41 ACLOCAL_AMFLAGS = -I m4
43 bin_PROGRAMS = cloog
44 lib_LTLIBRARIES = libcloog.la
46 INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
47 AM_CFLAGS = -Wall -fomit-frame-pointer
48 libcloog_la_SOURCES = \
49         source/block.c \
50         source/loop.c \
51         source/names.c \
52         source/options.c \
53         source/@POLYHEDRAL_BACKEND@/clast.c \
54         source/@POLYHEDRAL_BACKEND@/domain.c \
55         source/@POLYHEDRAL_BACKEND@/matrix.c \
56         source/@POLYHEDRAL_BACKEND@/matrix.h \
57         source/pprint.c \
58         source/program.c \
59         source/statement.c \
60         source/version.c
61 LDADD = libcloog.la
62 cloog_SOURCES = source/cloog.c
64 pkginclude_HEADERS = \
65         include/cloog/block.h \
66         include/cloog/clast.h \
67         include/cloog/cloog.h \
68         include/cloog/domain.h \
69         include/cloog/loop.h \
70         include/cloog/names.h \
71         include/cloog/options.h \
72         include/cloog/polylib_backend.h \
73         include/cloog/ppl_backend.h \
74         include/cloog/pprint.h \
75         include/cloog/program.h \
76         include/cloog/statement.h \
77         include/cloog/version.h
79 version.h: @GIT_INDEX@
80         echo '#define CLOOG_HEAD "'`$(top_builddir)/genversion.sh`'"' > $@
82 EXTRA_DIST = autoconf/Doxyfile.in doc/images test
84 dist-hook:
85         rm -f $(distdir)/test/Makefile
86         $(top_builddir)/genversion.sh > $(distdir)/CLOOG_HEAD
87         (cd doc; make cloog.pdf) && cp doc/cloog.pdf $(distdir)/doc/
89 #/*****************************************************************************
90 # *                                   Rules                                   *
91 # *****************************************************************************/
93 check:
94         $(MAKE) test -C test
96 valcheck:
97         $(MAKE) valgrind -C test
99 total:
100         @echo "             /*-----------------------------------------------*"
101         @echo "              *                     CLooG                     *"
102         @echo "              *-----------------------------------------------*/"
103         $(MAKE) uninstall
104         $(MAKE) clean
105         $(MAKE)
106         $(MAKE) install
108 doc:
109         @echo "             /*-----------------------------------------------*"
110         @echo "              *        Generating CLooG's documentation       *"
111         @echo "              *-----------------------------------------------*/"
112         doxygen ./autoconf/Doxyfile