Solve the missed local dimension bug with strides and modulo guards
[clan.git] / Makefile.am
blob020ea9a822d0a6515f8fad9b0710442fddd96a43
2 #   /**------- <| --------------------------------------------------------**
3 #    **         A                     Clan                                **
4 #    **---     /.\   -----------------------------------------------------**
5 #    **   <|  [""M#                makefile.am                            **
6 #    **-   A   | #   -----------------------------------------------------**
7 #    **   /.\ [""M#         First version: 30/04/2008                     **
8 #    **- [""M# | #  U"U#U  -----------------------------------------------**
9 #         | #  | #  \ .:/
10 #         | #  | #___| #
11 # ******  | "--'     .-"  *****************************************************
12 # *     |"-"-"-"-"-#-#-##   Clan : the Chunky Loop Analyser (experimental)    *
13 # ****  |     # ## ######  ****************************************************
14 # *      \       .::::'/                                                      *
15 # *       \      ::::'/     Copyright (C) 2008 University Paris-Sud 11        *
16 # *     :8a|    # # ##                                                        *
17 # *     ::88a      ###      This is free software; you can redistribute it    *
18 # *    ::::888a  8a ##::.   and/or modify it under the terms of the GNU       *
19 # *  ::::::::888a88a[]:::   Lesser General Public License as published by     *
20 # *::8:::::::::SUNDOGa8a::. the Free Software Foundation, either version 2.1  *
21 # *::::::::8::::888:Y8888::                of the License, or (at your        *
22 # *::::':::88::::888::Y88a::::::::::::...  option) any later version.         *
23 # *::'::..    .   .....   ..   ...  .                                         *
24 # * This software is distributed in the hope that it will be useful, but      *
25 # * WITHOUT ANY WARRANTY; without even the implied warranty of                *
26 # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General *
27 # * Public License  for more details.                                         *
28 # *                                                                           *
29 # * You should have received a copy of the GNU Lesser General Public          *
30 # * License along with software; if not, write to the Free Software           *
31 # * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA  *
32 # *                                                                           *
33 # * Clan, the Chunky Loop Analyser                                            *
34 # * Written by Cedric Bastoul, Cedric.Bastoul@u-psud.fr                       *
35 # *                                                                           *
36 # *****************************************************************************/
38 # Makefile.am (or makefile if generated) of Clan, the Chunky Loop Analyser.
39 # Makefile.am is not a makefile, you must run the 'autogen.sh' THEN the
40 # configure shellscript to generate the Makefile thanks to this file.
42 #############################################################################
44 if BUNDLED_OSL
45     MAYBE_OSL = osl
46     OSL_LA = $(top_builddir)/osl/libosl.la
47 endif
49 CLAN_INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include
51 AUTOMAKE_OPTIONS = subdir-objects
52 SUBDIRS = $(MAYBE_OSL) . doc tests
53 DIST_SUBDIRS = $(MAYBE_OSL) . doc tests
54 ACLOCAL_AMFLAGS = -I m4
56 #############################################################################
58 bin_PROGRAMS    = clan
59 lib_LTLIBRARIES = libclan.la
61 #############################################################################
63 pkginclude_HEADERS = \
64         include/clan/clan.h \
65         include/clan/options.h \
66         include/clan/statement.h \
67         include/clan/vector.h \
68         include/clan/relation.h \
69         include/clan/relation_list.h \
70         include/clan/domain.h \
71         include/clan/macros.h \
72         include/clan/scop.h \
73         include/clan/symbol.h
75 # Add dependence on parser.h needed by source/scop.c
76 BUILT_SOURCES = source/parser.h
78 AM_CPPFLAGS = $(CLAN_INCLUDES)
79 AM_CFLAGS = $(CFLAGS_WARN)
80 AM_YFLAGS = -y -d
82 EXTRA_DIST = clan-config.cmake
84 install-data-local:
85         @test -z "$(DESTDIR)$(libdir)/$(PACKAGE_NAME)" || $(mkdir_p) "$(DESTDIR)$(libdir)/$(PACKAGE_NAME)"
86         $(INSTALL_DATA) "$(top_srcdir)/clan-config.cmake" "$(DESTDIR)$(libdir)/$(PACKAGE_NAME)/"
88 uninstall-local:
89         rm -f "$(DESTDIR)$(libdir)/$(PACKAGE_NAME)/clan-config.cmake"
91 #############################################################################
93 libclan_la_LIBADD = @OSL_LIBS@ $(OSL_LA)
94 libclan_la_CPPFLAGS = $(CLAN_INCLUDES) @OSL_CFLAGS@
95 libclan_la_LDFLAGS = @OSL_LDFLAGS@
96 libclan_la_SOURCES = \
97         source/parser.y \
98         source/scanner.l \
99         source/options.c \
100         source/symbol.c \
101         source/scop.c \
102         source/statement.c \
103         source/relation.c \
104         source/relation_list.c \
105         source/domain.c \
106         source/vector.c
108 #############################################################################
110 LDADD = @OSL_LIBS@ $(OSL_LA) libclan.la
111 clan_CPPFLAGS = $(CLAN_INCLUDES) @OSL_CFLAGS@
112 clan_DEPENDENCIES = libclan.la
113 clan_SOURCES = source/clan.c
115 #############################################################################
117 MAINTAINERCLEANFILES = \
118         Makefile.in \
119         aclocal.m4 \
120         configure \
121         source/stamp-h.in \
122         $(AUX_DIST)
124 #############################################################################
126 dist-hook:
127         (cd $(distdir) && mkdir -p $(ac_aux_dir))
128         for file in $(AUX_DIST); do \
129           cp $$file $(distdir)/$$file; \
130         done
132 #############################################################################
134 valcheck:
135         $(MAKE) valcheck -C tests
137 #############################################################################
139 ctags:
140         ctags -R --c++-kinds=+p --fields=+iaS --extra=+q -f$(HOME)/.ctags .
142 #############################################################################