Fix ISS changing the relative execution order of statements in the cloned part
[clay.git] / Makefile.am
blob6b7895aa7c989a0d4483a869fe0fbba2967544ee
2 #   /*------------------------------------------------------------------+
3 #    |                             Clay                                 |
4 #    |------------------------------------------------------------------|
5 #    |                          makefile.am                             |
6 #    |------------------------------------------------------------------|
7 #    |                   First version: 03/04/2012                      |
8 #    +------------------------------------------------------------------+
10 # +------------------------------------------------------------------------+
11 # |  / __)(  )    /__\ ( \/ )                                              |
12 # | ( (__  )(__  /(__)\ \  /        Chunky Loop Alteration wizardrY        |
13 # |  \___)(____)(__)(__)(__)                                               |
14 # +------------------------------------------------------------------------+
15 # | Copyright (C) 2012 University of Paris-Sud                             |
16 # |                                                                        |
17 # | This library is free software; you can redistribute it and/or modify   |
18 # | it under the terms of the GNU Lesser General Public License as         |
19 # | published by the Free Software Foundation; either version 2.1 of the   |
20 # | License, or (at your option) any later version.                        |
21 # |                                                                        |
22 # | This library is distributed in the hope that it will be useful but     |
23 # | WITHOUT ANY WARRANTY; without even the implied warranty of             |
24 # | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU       |
25 # | Lesser General Public License for more details.                        |
26 # |                                                                        |
27 # | You should have received a copy of the GNU Lesser General Public       |
28 # | License along with this software; if not, write to the Free Software   |
29 # | Foundation, Inc., 51 Franklin Street, Fifth Floor,                     |
30 # | Boston, MA  02110-1301  USA                                            |
31 # |                                                                        |
32 # | Clay, the Chunky Loop Alteration wizardrY                              |
33 # | Written by Cedric Bastoul, Cedric.Bastoul@u-psud.fr                    |
34 # +------------------------------------------------------------------------*/
36 # Makefile.am (or makefile if generated) of Clay.
37 # Makefile.am is not a makefile, you must run the 'autogen.sh' THEN the
38 # configure shellscript to generate the Makefile thanks to this file.
40 #############################################################################
42 if BUNDLED_OSL
43     MAYBE_OSL = osl
44     OSL_LA  = $(top_builddir)/osl/libosl.la
45 endif
46 if BUNDLED_CLAN
47     MAYBE_CLAN = clan
48     CLAN_LA = $(top_builddir)/clan/libclan.la
49 endif
50 if BUNDLED_CLOOG
51     MAYBE_CLOOG = cloog
52     CLOOG_LA = $(top_builddir)/cloog/libcloog-isl.la
53 endif
54 if BUNDLED_CANDL
55     MAYBE_CANDL = candl
56     CANDL_LA = $(top_builddir)/candl/libcandl.la
57 endif
59 SUBDIRS         = $(MAYBE_OSL) $(MAYBE_CLAN) $(MAYBE_CLOOG) $(MAYBE_CANDL) doc tests
60 DIST_SUBDIRS    = $(MAYBE_OSL) $(MAYBE_CLAN) $(MAYBE_CLOOG) $(MAYBE_CANDL) doc tests
61 ACLOCAL_AMFLAGS = -I m4
63 #############################################################################
65 bin_PROGRAMS    = clay
66 lib_LTLIBRARIES = libclay.la
68 #############################################################################
70 pkginclude_HEADERS = \
71         include/clay/clay.h \
72         include/clay/array.h \
73         include/clay/list.h \
74         include/clay/options.h \
75         include/clay/ident.h \
76         include/clay/beta.h \
77         include/clay/macros.h \
78         include/clay/betatree.h \
79         include/clay/util.h \
80         include/clay/errors.h \
81         include/clay/functions.h \
82   include/clay/data.h \
83   include/clay/stack.h \
84         include/clay/transformation.h
86 DEFAULT_INCLUDES = -I.
87 INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
88 AM_CFLAGS = $(CFLAGS_WARN)
89 YFLAGS = -y -d
90 LEX_OUTPUT_ROOT = lex.clay_yy
92 #############################################################################
94 libclay_la_LIBADD   = @OSL_LIBS@ @CLAN_LIBS@ @CLOOG_LIBS@ @CANDL_LIBS@ $(OSL_LA) $(CLAN_LA) $(CLOOG_LA) $(CANDL_LA)
95 libclay_la_CPPFLAGS = @OSL_CPPFLAGS@ @CLAN_CPPFLAGS@ @CLOOG_CPPFLAGS@ @CANDL_CPPFLAGS@
96 #  libclay_la_LDFLAGS  = @OSL_LDFLAGS@ @CLAN_LDFLAGS@ @CLOOG_LDFLAGS@ @CANDL_LDFLAGS@ # TO BE REMOVED
97 libclay_la_SOURCES  = \
98   source/parser.y \
99   source/scanner.l \
100   source/array.c \
101   source/list.c \
102   source/ident.c \
103   source/options.c \
104   source/betatree.c \
105   source/util.c \
106   source/beta.c \
107   source/functions.c \
108   source/data.c \
109   source/stack.c \
110   source/transformation.c
112 #############################################################################
114 LDADD             = @OSL_LIBS@ @CLAN_LIBS@ @CLOOG_LIBS@ @CANDL_LIBS@ libclay.la
115 clay_CPPFLAGS     = @OSL_CPPFLAGS@ @CLAN_CPPFLAGS@ @CLOOG_CPPFLAGS@ @CANDL_CPPFLAGS@ -g
116 #  clay_LDFLAGS      = # @OSL_LDFLAGS@ @CLAN_LDFLAGS@ @CLOOG_LDFLAGS@ @CANDL_LDFLAGS@ # TO BE REMOVED
117 clay_DEPENDENCIES = libclay.la
118 clay_SOURCES      = source/clay.c
120 #############################################################################
122 MAINTAINERCLEANFILES = \
123         Makefile.in \
124         aclocal.m4 \
125         configure \
126         $(AUX_DIST)
128 #############################################################################
130 dist-hook:
131         (cd $(distdir) && mkdir -p $(ac_aux_dir))
132         for file in $(AUX_DIST); do \
133           cp $$file $(distdir)/$$file; \
134         done
135 #############################################################################