add examples subdirectory to the distribution
[cloog.git] / Makefile.am
blob23c4b965fdafbc24fe3b7d1ac9071a845fadce10
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 bin_PROGRAMS = cloog
42 lib_LTLIBRARIES = libcloog.la
44 INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
45 AM_CFLAGS = -Wall -fomit-frame-pointer
46 libcloog_la_SOURCES = \
47         source/block.c \
48         source/clast.c \
49         source/domain.c \
50         source/loop.c \
51         source/matrix.c \
52         source/names.c \
53         source/options.c \
54         source/pprint.c \
55         source/program.c \
56         source/statement.c \
57         source/version.c
58 LDADD = libcloog.la
59 cloog_SOURCES = source/cloog.c
61 pkginclude_HEADERS = \
62         include/cloog/block.h \
63         include/cloog/clast.h \
64         include/cloog/cloog.h \
65         include/cloog/domain.h \
66         include/cloog/loop.h \
67         include/cloog/matrix.h \
68         include/cloog/names.h \
69         include/cloog/options.h \
70         include/cloog/pprint.h \
71         include/cloog/program.h \
72         include/cloog/statement.h \
73         include/cloog/version.h
75 version.h: @GIT_INDEX@
76         echo '#define CLOOG_HEAD "'`$(top_builddir)/genversion.sh`'"' > $@
78 EXTRA_DIST = autoconf/Doxyfile.in doc/images test examples
80 dist-hook:
81         rm -f $(distdir)/test/Makefile
82         $(top_builddir)/genversion.sh > $(distdir)/CLOOG_HEAD
83         (cd doc; make cloog.pdf) && cp doc/cloog.pdf $(distdir)/doc/
85 #/*****************************************************************************
86 # *                                   Rules                                   *
87 # *****************************************************************************/
89 check:
90         $(MAKE) test -C test
92 valcheck:
93         $(MAKE) valgrind -C test
95 total:
96         @echo "             /*-----------------------------------------------*"
97         @echo "              *                     CLooG                     *"
98         @echo "              *-----------------------------------------------*/"
99         $(MAKE) uninstall
100         $(MAKE) clean
101         $(MAKE)
102         $(MAKE) install
104 doc:
105         @echo "             /*-----------------------------------------------*"
106         @echo "              *        Generating CLooG's documentation       *"
107         @echo "              *-----------------------------------------------*/"
108         doxygen ./autoconf/Doxyfile