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
55 if NEED_GET_MEMORY_FUNCTIONS
56 GET_MEMORY_FUNCTIONS=source/mp_get_memory_functions.c
60 $(GET_MEMORY_FUNCTIONS) \
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
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 = \
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 = \
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 = \
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
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 #/*****************************************************************************
142 # *****************************************************************************/
148 $(MAKE) valgrind -C test
151 @echo " /*-----------------------------------------------*"
153 @echo " *-----------------------------------------------*/"
160 @echo " /*-----------------------------------------------*"
161 @echo " * Generating CLooG's documentation *"
162 @echo " *-----------------------------------------------*/"
163 doxygen ./autoconf/Doxyfile