Add osl extbody extension support
[cloog.git] / Makefile.am
blobfd0f5c3221a57674a818f4564541fc24342403bc
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 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.        *
24 # *                                                                           *
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.                           *
29 # *                                                                           *
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                                               *
34 # *                                                                           *
35 # * CLooG, the Chunky Loop Generator                                          *
36 # * Written by Cedric Bastoul, Cedric.Bastoul@inria.fr                        *
37 # *                                                                           *
38 # *****************************************************************************/
39 if BUNDLED_ISL
40     MAYBE_ISL = isl
41     ISL_LA = $(top_builddir)/isl/libisl.la
42 endif
44 if BUNDLED_OSL
45     MAYBE_OSL = osl
46     OSL_LA = $(top_builddir)/osl/libosl.la
47 endif
49 SUBDIRS = $(MAYBE_ISL) $(MAYBE_OSL) . doc test
50 DIST_SUBDIRS = $(MAYBE_ISL) $(MAYBE_OSL) . doc test
52 ACLOCAL_AMFLAGS = -I m4
54 FORCE:
55 isl/libisl.la: FORCE
56         cd isl; $(MAKE) $(AM_MAKEFLAGS) libisl.la
58 if NO_ISL
59 CLOOG =
60 LIBCLOOG =
61 else
62 CLOOG = cloog
63 LIBCLOOG = libcloog-isl.la
64 endif
65 bin_PROGRAMS = $(CLOOG)
66 lib_LTLIBRARIES = $(LIBCLOOG)
68 if NEED_GET_MEMORY_FUNCTIONS
69 GET_MEMORY_FUNCTIONS=source/mp_get_memory_functions.c
70 endif
72 SOURCES_CORE = \
73         $(GET_MEMORY_FUNCTIONS) \
74         source/block.c \
75         source/clast.c \
76         source/matrix.c \
77         source/state.c \
78         source/input.c \
79         source/int.c \
80         source/loop.c \
81         source/names.c \
82         source/options.c \
83         source/pprint.c \
84         source/program.c \
85         source/statement.c \
86         source/stride.c \
87         source/union_domain.c \
88         source/version.c
90 AM_CPPFLAGS = -I. -I$(top_builddir)/include -I$(top_srcdir)/include
91 AM_CFLAGS = $(CFLAGS_WARN)
92 libcloog_isl_la_CPPFLAGS = @ISL_CPPFLAGS@ @OSL_CPPFLAGS@
93 libcloog_isl_la_LDFLAGS = -version-info @versioninfo@ \
94         -rpath $(libdir) @ISL_LDFLAGS@ @OSL_LDFLAGS@
95 libcloog_isl_la_LIBADD = @ISL_LIBS@ @OSL_LIBS@ $(ISL_LA) $(OSL_LA)
96 libcloog_isl_la_SOURCES = \
97         $(SOURCES_CORE) \
98         source/isl/domain.c \
99         source/isl/constraints.c \
100         source/isl/backend.c
101 LDADD = libcloog-isl.la
102 cloog_DEPENDENCIES = libcloog-isl.la
103 cloog_SOURCES = source/cloog.c
105 pkginclude_HEADERS = \
106         include/cloog/block.h \
107         include/cloog/clast.h \
108         include/cloog/cloog.h \
109         include/cloog/input.h \
110         include/cloog/int.h \
111         include/cloog/matrix.h \
112         include/cloog/state.h \
113         include/cloog/domain.h \
114         include/cloog/loop.h \
115         include/cloog/constraints.h \
116         include/cloog/names.h \
117         include/cloog/options.h \
118         include/cloog/pprint.h \
119         include/cloog/program.h \
120         include/cloog/statement.h \
121         include/cloog/stride.h \
122         include/cloog/union_domain.h \
123         include/cloog/version.h
125 pkgmatrixincludedir = $(pkgincludedir)/matrix
126 pkgmatrixinclude_HEADERS = \
127         include/cloog/matrix/constraintset.h
129 pkgislincludedir = $(pkgincludedir)/isl
130 pkgislinclude_HEADERS = \
131         include/cloog/isl/backend.h \
132         include/cloog/isl/cloog.h \
133         include/cloog/isl/domain.h \
134         include/cloog/isl/constraintset.h
136 version.h: @GIT_INDEX@
137         echo '#define CLOOG_HEAD "'`$(top_builddir)/genversion.sh`'"' > $@
139 EXTRA_DIST = \
140         autoconf/Doxyfile.in \
141         source/matrix/constraintset.c \
142         doc/cloog.texi \
143         doc/images \
144         examples
146 install-data-local:
147         @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
148         $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
149         @test -z "$(DESTDIR)$(libdir)/isl" || $(mkdir_p) "$(DESTDIR)$(libdir)/isl"
150         $(INSTALL_DATA) "cmake/isl-config.cmake" "$(DESTDIR)$(libdir)/isl/"
151         @test -z "$(DESTDIR)$(libdir)/$(PACKAGE_NAME)" || $(mkdir_p) "$(DESTDIR)$(libdir)/$(PACKAGE_NAME)"
152         $(INSTALL_DATA) "cmake/cloog-isl-config.cmake" "$(DESTDIR)$(libdir)/$(PACKAGE_NAME)/"
154 uninstall-local:
155         rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
157 dist-hook:
158         rm -f $(distdir)/test/Makefile
159         $(top_builddir)/genversion.sh > $(distdir)/CLOOG_HEAD
160         (cd doc; make cloog.pdf) && cp doc/cloog.pdf $(distdir)/doc/
162 #/*****************************************************************************
163 # *                                   Rules                                   *
164 # *****************************************************************************/
166 valcheck:
167         $(MAKE) valgrind -C test
169 total:
170         @echo "             /*-----------------------------------------------*"
171         @echo "              *                     CLooG                     *"
172         @echo "              *-----------------------------------------------*/"
173         $(MAKE) uninstall
174         $(MAKE) clean
175         $(MAKE)
176         $(MAKE) install
178 doc:
179         @echo "             /*-----------------------------------------------*"
180         @echo "              *        Generating CLooG's documentation       *"
181         @echo "              *-----------------------------------------------*/"
182         doxygen ./autoconf/Doxyfile