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
46 OSL_LA = $(top_builddir)/osl/libosl.la
49 SUBDIRS = $(MAYBE_ISL) $(MAYBE_OSL) . doc test
50 DIST_SUBDIRS = $(MAYBE_ISL) $(MAYBE_OSL) . doc test
52 ACLOCAL_AMFLAGS = -I m4
56 cd isl; $(MAKE) $(AM_MAKEFLAGS) libisl.la
63 LIBCLOOG = libcloog-isl.la
65 bin_PROGRAMS = $(CLOOG)
66 lib_LTLIBRARIES = $(LIBCLOOG)
68 if NEED_GET_MEMORY_FUNCTIONS
69 GET_MEMORY_FUNCTIONS=source/mp_get_memory_functions.c
73 $(GET_MEMORY_FUNCTIONS) \
87 source/union_domain.c \
91 AM_CPPFLAGS = -I. -I$(top_builddir)/include -I$(top_srcdir)/include
92 AM_CFLAGS = $(CFLAGS_WARN)
93 libcloog_isl_la_CPPFLAGS = -I. -I$(top_builddir)/include -I$(top_srcdir)/include @ISL_CPPFLAGS@ @OSL_CPPFLAGS@
94 libcloog_isl_la_LDFLAGS = -version-info @versioninfo@ \
95 -rpath $(libdir) @ISL_LDFLAGS@ @OSL_LDFLAGS@
96 libcloog_isl_la_LIBADD = @ISL_LIBS@ @OSL_LIBS@ $(ISL_LA) $(OSL_LA)
97 libcloog_isl_la_SOURCES = \
100 source/isl/constraints.c \
102 LDADD = libcloog-isl.la
103 cloog_DEPENDENCIES = libcloog-isl.la
104 cloog_SOURCES = source/cloog.c
106 pkginclude_HEADERS = \
107 include/cloog/block.h \
108 include/cloog/clast.h \
109 include/cloog/cloog.h \
110 include/cloog/input.h \
111 include/cloog/int.h \
112 include/cloog/matrix.h \
113 include/cloog/state.h \
114 include/cloog/domain.h \
115 include/cloog/loop.h \
116 include/cloog/constraints.h \
117 include/cloog/names.h \
118 include/cloog/options.h \
119 include/cloog/pprint.h \
120 include/cloog/program.h \
121 include/cloog/statement.h \
122 include/cloog/stride.h \
123 include/cloog/union_domain.h \
124 include/cloog/util.h \
125 include/cloog/version.h
127 pkgmatrixincludedir = $(pkgincludedir)/matrix
128 pkgmatrixinclude_HEADERS = \
129 include/cloog/matrix/constraintset.h
131 pkgislincludedir = $(pkgincludedir)/isl
132 pkgislinclude_HEADERS = \
133 include/cloog/isl/backend.h \
134 include/cloog/isl/cloog.h \
135 include/cloog/isl/domain.h \
136 include/cloog/isl/constraintset.h
138 version.h: @GIT_INDEX@
139 echo '#define CLOOG_HEAD "'`$(top_builddir)/genversion.sh`'"' > $@
142 autoconf/Doxyfile.in \
143 source/matrix/constraintset.c \
149 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
150 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
151 @test -z "$(DESTDIR)$(libdir)/isl" || $(mkdir_p) "$(DESTDIR)$(libdir)/isl"
152 $(INSTALL_DATA) "$(top_srcdir)/cmake/isl-config.cmake" "$(DESTDIR)$(libdir)/isl/"
153 @test -z "$(DESTDIR)$(libdir)/$(PACKAGE_NAME)" || $(mkdir_p) "$(DESTDIR)$(libdir)/$(PACKAGE_NAME)"
154 $(INSTALL_DATA) "$(top_srcdir)/cmake/cloog-isl-config.cmake" "$(DESTDIR)$(libdir)/$(PACKAGE_NAME)/"
157 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
160 rm -f $(distdir)/test/Makefile
161 $(top_builddir)/genversion.sh > $(distdir)/CLOOG_HEAD
162 (cd doc; make cloog.pdf) && cp doc/cloog.pdf $(distdir)/doc/
164 #/*****************************************************************************
166 # *****************************************************************************/
169 $(MAKE) test_valgrind -C test
172 @echo " /*-----------------------------------------------*"
174 @echo " *-----------------------------------------------*/"
181 @echo " /*-----------------------------------------------*"
182 @echo " * Generating CLooG's documentation *"
183 @echo " *-----------------------------------------------*/"
184 doxygen ./autoconf/Doxyfile