replace cloog_domain_integral_lowerbound by cloog_domain_can_stride
[cloog/uuh.git] / Makefile.am
blobc4be087f6502bec6c2329e6ed34a67ae66f002e0
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 if NO_ISL
54 CLOOG =
55 LIBCLOOG =
56 else
57 CLOOG = cloog
58 LIBCLOOG = libcloog-isl.la
59 endif
60 bin_PROGRAMS = $(CLOOG)
61 lib_LTLIBRARIES = $(LIBCLOOG)
63 if NEED_GET_MEMORY_FUNCTIONS
64 GET_MEMORY_FUNCTIONS=source/mp_get_memory_functions.c
65 endif
67 SOURCES_CORE = \
68         $(GET_MEMORY_FUNCTIONS) \
69         source/block.c \
70         source/clast.c \
71         source/matrix.c \
72         source/state.c \
73         source/int.c \
74         source/loop.c \
75         source/names.c \
76         source/options.c \
77         source/pprint.c \
78         source/program.c \
79         source/statement.c \
80         source/version.c
82 DEFAULT_INCLUDES = -I.
83 INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
84 AM_CFLAGS = $(CFLAGS_WARN)
85 libcloog_isl_la_CPPFLAGS = @ISL_CPPFLAGS@
86 libcloog_isl_la_LDFLAGS = -rpath $(libdir) @ISL_LDFLAGS@
87 libcloog_isl_la_LIBADD = @ISL_LIBS@ $(ISL_LA)
88 libcloog_isl_la_SOURCES = \
89         $(SOURCES_CORE) \
90         source/isl/domain.c \
91         source/isl/constraints.c \
92         source/isl/backend.c
93 LDADD = libcloog-isl.la
94 cloog_DEPENDENCIES = libcloog-isl.la
95 cloog_SOURCES = source/cloog.c
97 pkginclude_HEADERS = \
98         include/cloog/block.h \
99         include/cloog/clast.h \
100         include/cloog/cloog.h \
101         include/cloog/int.h \
102         include/cloog/matrix.h \
103         include/cloog/state.h \
104         include/cloog/domain.h \
105         include/cloog/loop.h \
106         include/cloog/constraints.h \
107         include/cloog/names.h \
108         include/cloog/options.h \
109         include/cloog/pprint.h \
110         include/cloog/program.h \
111         include/cloog/statement.h \
112         include/cloog/version.h
114 pkgmatrixincludedir = $(pkgincludedir)/matrix
115 pkgmatrixinclude_HEADERS = \
116         include/cloog/matrix/constraintset.h
118 pkgislincludedir = $(pkgincludedir)/isl
119 pkgislinclude_HEADERS = \
120         include/cloog/isl/backend.h \
121         include/cloog/isl/cloog.h \
122         include/cloog/isl/domain.h \
123         include/cloog/isl/constraintset.h
125 version.h: @GIT_INDEX@
126         echo '#define CLOOG_HEAD "'`$(top_builddir)/genversion.sh`'"' > $@
128 EXTRA_DIST = \
129         autoconf/Doxyfile.in \
130         source/matrix/constraintset.c \
131         doc/cloog.texi \
132         doc/images \
133         examples
135 install-data-local:
136         @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
137         $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
139 uninstall-local:
140         rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
142 dist-hook:
143         rm -f $(distdir)/test/Makefile
144         $(top_builddir)/genversion.sh > $(distdir)/CLOOG_HEAD
145         (cd doc; make cloog.pdf) && cp doc/cloog.pdf $(distdir)/doc/
147 #/*****************************************************************************
148 # *                                   Rules                                   *
149 # *****************************************************************************/
151 check:
152         $(MAKE) test -C test
154 valcheck:
155         $(MAKE) valgrind -C test
157 total:
158         @echo "             /*-----------------------------------------------*"
159         @echo "              *                     CLooG                     *"
160         @echo "              *-----------------------------------------------*/"
161         $(MAKE) uninstall
162         $(MAKE) clean
163         $(MAKE)
164         $(MAKE) install
166 doc:
167         @echo "             /*-----------------------------------------------*"
168         @echo "              *        Generating CLooG's documentation       *"
169         @echo "              *-----------------------------------------------*/"
170         doxygen ./autoconf/Doxyfile