update isl
[cloog.git] / Makefile.am
blob0e824c3b6c0a70802c6e3406384ae13773daeb41
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 library is free software; you can redistribute it and/or             *
21 # * modify it under the terms of the GNU Lesser General Public                *
22 # * License as published by the Free Software Foundation; either              *
23 # * version 2.1 of the License, or (at your option) any later version.        *
24 # *                                                                           *
25 # * This library is distributed in the hope that it will be useful,           *
26 # * but WITHOUT ANY WARRANTY; without even the implied warranty of            *
27 # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
28 # * Lesser General Public License for more details.                           *
29 # *                                                                           *
30 # * You should have received a copy of the GNU Lesser General Public          *
31 # * License along with this library; if not, write to the Free Software       *
32 # * Foundation, Inc., 51 Franklin Street, Fifth Floor,                        *
33 # * Boston, MA  02110-1301  USA                                               *
34 # *                                                                           *
35 # * CLooG, the Chunky Loop Generator                                          *
36 # * Written by Cedric Bastoul, Cedric.Bastoul@inria.fr                        *
37 # *                                                                           *
38 # *****************************************************************************/
39 if BUNDLED_ISL
40     MAYBE_ISL = isl
41     ISL_LA = $(top_builddir)/isl/libisl.la
42 endif
44 SUBDIRS = $(MAYBE_ISL) . doc test
45 DIST_SUBDIRS = $(MAYBE_ISL) . doc test
47 ACLOCAL_AMFLAGS = -I m4
49 FORCE:
50 isl/libisl.la: FORCE
51         cd isl; $(MAKE) $(AM_MAKEFLAGS) libisl.la
53 bin_PROGRAMS = cloog
54 lib_LTLIBRARIES = @CLOOG_LIBRARIES@
55 EXTRA_LTLIBRARIES = libcloog-polylib.la libcloog-isl.la
57 if NEED_GET_MEMORY_FUNCTIONS
58 GET_MEMORY_FUNCTIONS=source/mp_get_memory_functions.c
59 endif
61 SOURCES_CORE = \
62         $(GET_MEMORY_FUNCTIONS) \
63         source/block.c \
64         source/clast.c \
65         source/matrix.c \
66         source/state.c \
67         source/int.c \
68         source/loop.c \
69         source/names.c \
70         source/options.c \
71         source/pprint.c \
72         source/program.c \
73         source/statement.c \
74         source/version.c
76 # avoid -I$(top_builddir)/include/cloog ending up in DEFAULT_INCLUDES
77 # as that may result in polylib/matrix.h confusion
78 DEFAULT_INCLUDES = -I.
79 INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
80 libcloog_polylib_la_CPPFLAGS = @POLYLIB_CPPFLAGS@ -DCLOOG_POLYLIB
81 libcloog_polylib_la_LDFLAGS = -rpath $(libdir) @POLYLIB_LDFLAGS@
82 libcloog_polylib_la_LIBADD = @POLYLIB_LIBS@
83 libcloog_polylib_la_SOURCES = \
84         $(SOURCES_CORE) \
85         source/polylib/domain.c \
86         source/polylib/constraintset.c \
87         source/polylib/backend.c
88 libcloog_isl_la_CPPFLAGS = @ISL_CPPFLAGS@ -DCLOOG_ISL
89 libcloog_isl_la_LDFLAGS = -rpath $(libdir) @ISL_LDFLAGS@
90 libcloog_isl_la_LIBADD = @ISL_LIBS@ $(ISL_LA)
91 libcloog_isl_la_SOURCES = \
92         $(SOURCES_CORE) \
93         source/isl/domain.c \
94         source/isl/constraints.c \
95         source/isl/backend.c
96 LDADD = libcloog-@BACKEND@.la
97 cloog_DEPENDENCIES = libcloog-@BACKEND@.la
98 cloog_SOURCES = source/cloog.c
100 pkginclude_HEADERS = \
101         include/cloog/block.h \
102         include/cloog/clast.h \
103         include/cloog/cloog.h \
104         include/cloog/matrix.h \
105         include/cloog/state.h \
106         include/cloog/domain.h \
107         include/cloog/loop.h \
108         include/cloog/constraints.h \
109         include/cloog/names.h \
110         include/cloog/options.h \
111         include/cloog/pprint.h \
112         include/cloog/program.h \
113         include/cloog/statement.h \
114         include/cloog/version.h
115 nodist_pkginclude_HEADERS = \
116         include/cloog/int.h
118 pkgpolylibincludedir = $(pkgincludedir)/polylib
119 pkgpolylibinclude_HEADERS = \
120         include/cloog/polylib/cloog.h \
121         include/cloog/polylib/domain.h \
122         include/cloog/polylib/constraintset.h
123 nodist_pkgpolylibinclude_HEADERS = \
124         include/cloog/polylib/backend.h
126 pkgislincludedir = $(pkgincludedir)/isl
127 pkgislinclude_HEADERS = \
128         include/cloog/isl/backend.h \
129         include/cloog/isl/cloog.h \
130         include/cloog/isl/domain.h \
131         include/cloog/isl/constraintset.h
133 version.h: @GIT_INDEX@
134         echo '#define CLOOG_HEAD "'`$(top_builddir)/genversion.sh`'"' > $@
136 EXTRA_DIST = autoconf/Doxyfile.in doc/images examples
138 dist-hook:
139         rm -f $(distdir)/test/Makefile
140         $(top_builddir)/genversion.sh > $(distdir)/CLOOG_HEAD
141         (cd doc; make cloog.pdf) && cp doc/cloog.pdf $(distdir)/doc/
143 #/*****************************************************************************
144 # *                                   Rules                                   *
145 # *****************************************************************************/
147 check:
148         $(MAKE) test -C test
150 valcheck:
151         $(MAKE) valgrind -C test
153 total:
154         @echo "             /*-----------------------------------------------*"
155         @echo "              *                     CLooG                     *"
156         @echo "              *-----------------------------------------------*/"
157         $(MAKE) uninstall
158         $(MAKE) clean
159         $(MAKE)
160         $(MAKE) install
162 doc:
163         @echo "             /*-----------------------------------------------*"
164         @echo "              *        Generating CLooG's documentation       *"
165         @echo "              *-----------------------------------------------*/"
166         doxygen ./autoconf/Doxyfile