Use top_builddir, not builddir that is undefined.
[cloog-ppl.git] / Makefile.am
blobd12a949b1dc979f43517bea81be79306118530d2
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 \
78         include/cloog/cloog-config.h
80 version.h: @GIT_INDEX@
81         echo '#define CLOOG_HEAD "'`$(top_builddir)/genversion.sh`'"' > $@
83 EXTRA_DIST = autoconf/Doxyfile.in doc/images test
85 dist-hook:
86         rm -f $(distdir)/test/Makefile
87         $(top_builddir)/genversion.sh > $(distdir)/CLOOG_HEAD
88         (cd doc; make cloog.pdf) && cp doc/cloog.pdf $(distdir)/doc/
90 #/*****************************************************************************
91 # *                                   Rules                                   *
92 # *****************************************************************************/
94 check:
95         $(MAKE) test -C test
97 valcheck:
98         $(MAKE) valgrind -C test
100 total:
101         @echo "             /*-----------------------------------------------*"
102         @echo "              *                     CLooG                     *"
103         @echo "              *-----------------------------------------------*/"
104         $(MAKE) uninstall
105         $(MAKE) clean
106         $(MAKE)
107         $(MAKE) install
109 doc:
110         @echo "             /*-----------------------------------------------*"
111         @echo "              *        Generating CLooG's documentation       *"
112         @echo "              *-----------------------------------------------*/"
113         doxygen ./autoconf/Doxyfile
115 clean-local:
116         rm $(top_builddir)/version.h
117         rm $(top_builddir)/doc/gitversion.texi