2 # /**-------------------------------------------------------------------**
4 # **-------------------------------------------------------------------**
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 # *****************************************************************************
18 # * Copyright (C) 2001 Cedric Bastoul *
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. *
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. *
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 *
35 # * CLooG, the Chunky Loop Generator *
36 # * Written by Cedric Bastoul, Cedric.Bastoul@inria.fr *
38 # *****************************************************************************/
41 ISL_LA = $(top_builddir)/isl/libisl.la
44 SUBDIRS = $(MAYBE_ISL) . doc test
45 DIST_SUBDIRS = $(MAYBE_ISL) . doc test
47 ACLOCAL_AMFLAGS = -I m4
51 cd isl; $(MAKE) $(AM_MAKEFLAGS) libisl.la
58 LIBCLOOG = libcloog-isl.la
60 bin_PROGRAMS = $(CLOOG)
61 lib_LTLIBRARIES = $(LIBCLOOG)
63 if NEED_GET_MEMORY_FUNCTIONS
64 GET_MEMORY_FUNCTIONS=source/mp_get_memory_functions.c
68 $(GET_MEMORY_FUNCTIONS) \
82 source/union_domain.c \
85 DEFAULT_INCLUDES = -I.
86 INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
87 AM_CFLAGS = $(CFLAGS_WARN)
88 libcloog_isl_la_CPPFLAGS = @ISL_CPPFLAGS@
89 libcloog_isl_la_LDFLAGS = -rpath $(libdir) @ISL_LDFLAGS@
90 libcloog_isl_la_LIBADD = @ISL_LIBS@ $(ISL_LA)
91 libcloog_isl_la_SOURCES = \
94 source/isl/constraints.c \
96 LDADD = libcloog-isl.la
97 cloog_DEPENDENCIES = libcloog-isl.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/input.h \
105 include/cloog/int.h \
106 include/cloog/matrix.h \
107 include/cloog/state.h \
108 include/cloog/domain.h \
109 include/cloog/loop.h \
110 include/cloog/constraints.h \
111 include/cloog/names.h \
112 include/cloog/options.h \
113 include/cloog/pprint.h \
114 include/cloog/program.h \
115 include/cloog/statement.h \
116 include/cloog/stride.h \
117 include/cloog/union_domain.h \
118 include/cloog/version.h
120 pkgmatrixincludedir = $(pkgincludedir)/matrix
121 pkgmatrixinclude_HEADERS = \
122 include/cloog/matrix/constraintset.h
124 pkgislincludedir = $(pkgincludedir)/isl
125 pkgislinclude_HEADERS = \
126 include/cloog/isl/backend.h \
127 include/cloog/isl/cloog.h \
128 include/cloog/isl/domain.h \
129 include/cloog/isl/constraintset.h
131 version.h: @GIT_INDEX@
132 echo '#define CLOOG_HEAD "'`$(top_builddir)/genversion.sh`'"' > $@
135 autoconf/Doxyfile.in \
136 source/matrix/constraintset.c \
142 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
143 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
146 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
149 rm -f $(distdir)/test/Makefile
150 $(top_builddir)/genversion.sh > $(distdir)/CLOOG_HEAD
151 (cd doc; make cloog.pdf) && cp doc/cloog.pdf $(distdir)/doc/
153 #/*****************************************************************************
155 # *****************************************************************************/
161 $(MAKE) valgrind -C test
164 @echo " /*-----------------------------------------------*"
166 @echo " *-----------------------------------------------*/"
173 @echo " /*-----------------------------------------------*"
174 @echo " * Generating CLooG's documentation *"
175 @echo " *-----------------------------------------------*/"
176 doxygen ./autoconf/Doxyfile