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 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 *
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. *
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 *
34 # * CLooG, the Chunky Loop Generator *
35 # * Written by Cedric Bastoul, Cedric.Bastoul@inria.fr *
37 # *****************************************************************************/
40 ISL_LA = $(top_builddir)/isl/libisl.la
43 SUBDIRS = $(MAYBE_ISL) . doc test
45 ACLOCAL_AMFLAGS = -I m4
49 cd isl; $(MAKE) $(AM_MAKEFLAGS) libisl.la
52 lib_LTLIBRARIES = @CLOOG_LIBRARIES@
53 EXTRA_LTLIBRARIES = libcloog-polylib.la libcloog-isl.la
67 # avoid -I$(top_builddir)/include/cloog ending up in DEFAULT_INCLUDES
68 # as that may result in polylib/matrix.h confusion
69 DEFAULT_INCLUDES = -I.
70 INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
72 libcloog_polylib_la_CPPFLAGS = @POLYLIB_CPPFLAGS@ -DCLOOG_POLYLIB
73 libcloog_polylib_la_LDFLAGS = -rpath $(libdir) @POLYLIB_LDFLAGS@
74 libcloog_polylib_la_LIBADD = @POLYLIB_LIBS@
75 libcloog_polylib_la_SOURCES = \
77 source/polylib/domain.c \
78 source/polylib/matrix.c \
79 source/polylib/backend_options.c
80 libcloog_isl_la_CPPFLAGS = @ISL_CPPFLAGS@ -DCLOOG_ISL
81 libcloog_isl_la_LDFLAGS = -rpath $(libdir) @ISL_LDFLAGS@
82 libcloog_isl_la_LIBADD = @ISL_LIBS@ $(ISL_LA)
83 libcloog_isl_la_SOURCES = \
86 source/isl/constraints.c \
87 source/isl/backend_options.c
88 LDADD = libcloog-@BACKEND@.la
89 cloog_DEPENDENCIES = libcloog-@BACKEND@.la
90 cloog_SOURCES = source/cloog.c
92 pkginclude_HEADERS = \
93 include/cloog/block.h \
94 include/cloog/clast.h \
95 include/cloog/cloog.h \
96 include/cloog/domain.h \
97 include/cloog/loop.h \
98 include/cloog/constraints.h \
99 include/cloog/names.h \
100 include/cloog/options.h \
101 include/cloog/pprint.h \
102 include/cloog/program.h \
103 include/cloog/statement.h \
104 include/cloog/version.h
105 nodist_pkginclude_HEADERS = \
108 pkgpolylibincludedir = $(pkgincludedir)/polylib
109 pkgpolylibinclude_HEADERS = \
110 include/cloog/polylib/cloog.h \
111 include/cloog/polylib/domain.h \
112 include/cloog/polylib/matrix.h \
113 include/cloog/polylib/options.h
114 nodist_pkgpolylibinclude_HEADERS = \
115 include/cloog/polylib/backend.h
117 pkgislincludedir = $(pkgincludedir)/isl
118 pkgislinclude_HEADERS = \
119 include/cloog/isl/backend.h \
120 include/cloog/isl/cloog.h \
121 include/cloog/isl/domain.h \
122 include/cloog/isl/matrix.h \
123 include/cloog/isl/options.h
125 version.h: @GIT_INDEX@
126 echo '#define CLOOG_HEAD "'`$(top_builddir)/genversion.sh`'"' > $@
128 EXTRA_DIST = autoconf/Doxyfile.in doc/images examples
131 rm -f $(distdir)/test/Makefile
132 $(top_builddir)/genversion.sh > $(distdir)/CLOOG_HEAD
133 (cd doc; make cloog.pdf) && cp doc/cloog.pdf $(distdir)/doc/
135 #/*****************************************************************************
137 # *****************************************************************************/
143 $(MAKE) valgrind -C test
146 @echo " /*-----------------------------------------------*"
148 @echo " *-----------------------------------------------*/"
155 @echo " /*-----------------------------------------------*"
156 @echo " * Generating CLooG's documentation *"
157 @echo " *-----------------------------------------------*/"
158 doxygen ./autoconf/Doxyfile