cloog_loop_separate: minor clean-ups
[cloog/uuh.git] / Makefile.am
blob2df7480305345a1db9f281af50f43b80b7526d03
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 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      *
23 # * later version.                                                            *
24 # *                                                                           *
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.                                          *
29 # *                                                                           *
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                    *
33 # *                                                                           *
34 # * CLooG, the Chunky Loop Generator                                          *
35 # * Written by Cedric Bastoul, Cedric.Bastoul@inria.fr                        *
36 # *                                                                           *
37 # *****************************************************************************/
38 if BUNDLED_ISL
39     MAYBE_ISL = isl
40     ISL_LA = $(top_builddir)/isl/libisl.la
41 endif
43 SUBDIRS = $(MAYBE_ISL) . doc test
45 ACLOCAL_AMFLAGS = -I m4
47 FORCE:
48 isl/libisl.la: FORCE
49         cd isl; $(MAKE) $(AM_MAKEFLAGS) libisl.la
51 bin_PROGRAMS = cloog
52 lib_LTLIBRARIES = @CLOOG_LIBRARIES@
53 EXTRA_LTLIBRARIES = libcloog-polylib.la libcloog-isl.la
55 SOURCES_CORE = \
56         source/block.c \
57         source/clast.c \
58         source/int.c \
59         source/loop.c \
60         source/names.c \
61         source/options.c \
62         source/pprint.c \
63         source/program.c \
64         source/statement.c \
65         source/version.c
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
71 AM_CFLAGS = -Wall
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 = \
76         $(SOURCES_CORE) \
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 = \
84         $(SOURCES_CORE) \
85         source/isl/domain.c \
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 = \
106         include/cloog/int.h
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
130 dist-hook:
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 #/*****************************************************************************
136 # *                                   Rules                                   *
137 # *****************************************************************************/
139 check:
140         $(MAKE) test -C test
142 valcheck:
143         $(MAKE) valgrind -C test
145 total:
146         @echo "             /*-----------------------------------------------*"
147         @echo "              *                     CLooG                     *"
148         @echo "              *-----------------------------------------------*/"
149         $(MAKE) uninstall
150         $(MAKE) clean
151         $(MAKE)
152         $(MAKE) install
154 doc:
155         @echo "             /*-----------------------------------------------*"
156         @echo "              *        Generating CLooG's documentation       *"
157         @echo "              *-----------------------------------------------*/"
158         doxygen ./autoconf/Doxyfile