update isl for normalization during convex hull computation
[cloog.git] / Makefile.am
blob6e91cd56808e47ce6afa68d87cc832ce5384a1a7
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 # *****************************************************************************/
38 if BUNDLED_ISL
39     MAYBE_ISL = isl
40     ISL_LA = $(top_builddir)/isl/libisl.la
41 endif
43 SUBDIRS = $(MAYBE_ISL) . doc test
45 ACLOCAL_AMFLAGS = -I m4
47 FORCE:
48 isl/libisl.la: FORCE
49         cd isl; $(MAKE) $(AM_MAKEFLAGS) libisl.la
51 bin_PROGRAMS = cloog
52 lib_LTLIBRARIES = @CLOOG_LIBRARIES@
53 EXTRA_LTLIBRARIES = libcloog-polylib.la libcloog-isl.la
55 if NEED_GET_MEMORY_FUNCTIONS
56 GET_MEMORY_FUNCTIONS=source/mp_get_memory_functions.c
57 endif
59 SOURCES_CORE = \
60         $(GET_MEMORY_FUNCTIONS) \
61         source/block.c \
62         source/clast.c \
63         source/int.c \
64         source/loop.c \
65         source/names.c \
66         source/options.c \
67         source/pprint.c \
68         source/program.c \
69         source/statement.c \
70         source/version.c
72 # avoid -I$(top_builddir)/include/cloog ending up in DEFAULT_INCLUDES
73 # as that may result in polylib/matrix.h confusion
74 DEFAULT_INCLUDES = -I.
75 INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
76 AM_CFLAGS = -Wall
77 libcloog_polylib_la_CPPFLAGS = @POLYLIB_CPPFLAGS@ -DCLOOG_POLYLIB
78 libcloog_polylib_la_LDFLAGS = -rpath $(libdir) @POLYLIB_LDFLAGS@
79 libcloog_polylib_la_LIBADD = @POLYLIB_LIBS@
80 libcloog_polylib_la_SOURCES = \
81         $(SOURCES_CORE) \
82         source/polylib/domain.c \
83         source/polylib/matrix.c \
84         source/polylib/backend_options.c
85 libcloog_isl_la_CPPFLAGS = @ISL_CPPFLAGS@ -DCLOOG_ISL
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_options.c
93 LDADD = libcloog-@BACKEND@.la
94 cloog_DEPENDENCIES = libcloog-@BACKEND@.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/domain.h \
102         include/cloog/loop.h \
103         include/cloog/constraints.h \
104         include/cloog/names.h \
105         include/cloog/options.h \
106         include/cloog/pprint.h \
107         include/cloog/program.h \
108         include/cloog/statement.h \
109         include/cloog/version.h
110 nodist_pkginclude_HEADERS = \
111         include/cloog/int.h
113 pkgpolylibincludedir = $(pkgincludedir)/polylib
114 pkgpolylibinclude_HEADERS = \
115         include/cloog/polylib/cloog.h \
116         include/cloog/polylib/domain.h \
117         include/cloog/polylib/matrix.h \
118         include/cloog/polylib/options.h
119 nodist_pkgpolylibinclude_HEADERS = \
120         include/cloog/polylib/backend.h
122 pkgislincludedir = $(pkgincludedir)/isl
123 pkgislinclude_HEADERS = \
124         include/cloog/isl/backend.h \
125         include/cloog/isl/cloog.h \
126         include/cloog/isl/domain.h \
127         include/cloog/isl/matrix.h \
128         include/cloog/isl/options.h
130 version.h: @GIT_INDEX@
131         echo '#define CLOOG_HEAD "'`$(top_builddir)/genversion.sh`'"' > $@
133 EXTRA_DIST = autoconf/Doxyfile.in doc/images examples
135 dist-hook:
136         rm -f $(distdir)/test/Makefile
137         $(top_builddir)/genversion.sh > $(distdir)/CLOOG_HEAD
138         (cd doc; make cloog.pdf) && cp doc/cloog.pdf $(distdir)/doc/
140 #/*****************************************************************************
141 # *                                   Rules                                   *
142 # *****************************************************************************/
144 check:
145         $(MAKE) test -C test
147 valcheck:
148         $(MAKE) valgrind -C test
150 total:
151         @echo "             /*-----------------------------------------------*"
152         @echo "              *                     CLooG                     *"
153         @echo "              *-----------------------------------------------*/"
154         $(MAKE) uninstall
155         $(MAKE) clean
156         $(MAKE)
157         $(MAKE) install
159 doc:
160         @echo "             /*-----------------------------------------------*"
161         @echo "              *        Generating CLooG's documentation       *"
162         @echo "              *-----------------------------------------------*/"
163         doxygen ./autoconf/Doxyfile