2 # /**------- <| --------------------------------------------------------**
4 # **--- /.\ -----------------------------------------------------**
5 # ** <| [""M# makefile.am **
6 # **- A | # -----------------------------------------------------**
7 # ** /.\ [""M# First version: 30/04/2008 **
8 # **- [""M# | # U"U#U -----------------------------------------------**
11 # ****** | "--' .-" *****************************************************
12 # * |"-"-"-"-"-#-#-## Clan : the Chunky Loop Analyser (experimental) *
13 # **** | # ## ###### ****************************************************
15 # * \ ::::'/ Copyright (C) 2008 Cedric Bastoul *
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 3 of *
21 # *::::::::8::::888:Y8888:: the License, or (at your option) *
22 # *::::':::88::::888::Y88a::::::::::::... 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. *
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 *
33 # * Clan, the Chunky Loop Analyser *
34 # * Written by Cedric Bastoul, Cedric.Bastoul@inria.fr *
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.
43 #############################################################################
46 #############################################################################
48 MAINTAINERCLEANFILES = Makefile.in
50 TESTS_ENVIRONMENT = top_builddir=$(top_builddir) SRCDIR=$(srcdir)
52 #############################################################################
54 EXTRA_DIST = checker.sh
56 check_SCRIPTS = check_unitary.sh check_complex.sh \
57 check_fail.sh check_autoscop.sh
59 ## Replace by program names when needed
60 # check_PROGRAMS = ...
61 TESTS = $(check_SCRIPTS)
64 $(top_srcdir)/tests/ax-do.c \
65 $(top_srcdir)/tests/gauss.c \
66 $(top_srcdir)/tests/gemver.c \
67 $(top_srcdir)/tests/iir_4_64.c \
68 $(top_srcdir)/tests/matmul.c \
69 $(top_srcdir)/tests/swim.c
71 UNITARY_TEST_FILES = \
72 $(top_srcdir)/tests/unitary/classicloop.c \
73 $(top_srcdir)/tests/unitary/simpleloop.c \
74 $(top_srcdir)/tests/unitary/basicnest.c \
75 $(top_srcdir)/tests/unitary/condition_and.c \
76 $(top_srcdir)/tests/unitary/condition_and_else.c \
77 $(top_srcdir)/tests/unitary/condition_or.c \
78 $(top_srcdir)/tests/unitary/condition_or_else.c \
79 $(top_srcdir)/tests/unitary/condition_not.c \
80 $(top_srcdir)/tests/unitary/condition_not_else.c \
81 $(top_srcdir)/tests/unitary/doublewrite.c \
82 $(top_srcdir)/tests/unitary/modulo1.c \
83 $(top_srcdir)/tests/unitary/modulo2.c \
84 $(top_srcdir)/tests/unitary/modulo3.c \
85 $(top_srcdir)/tests/unitary/stride1.c \
86 $(top_srcdir)/tests/unitary/stride2.c \
87 $(top_srcdir)/tests/unitary/stride3.c \
88 $(top_srcdir)/tests/unitary/stride_neg1.c \
89 $(top_srcdir)/tests/unitary/stride_neg2.c \
90 $(top_srcdir)/tests/unitary/stride_neg3.c \
91 $(top_srcdir)/tests/unitary/infinite_loop1.c \
92 $(top_srcdir)/tests/unitary/infinite_loop2.c \
93 $(top_srcdir)/tests/unitary/infinite_loop3.c \
94 $(top_srcdir)/tests/unitary/infinite_loop4.c \
95 $(top_srcdir)/tests/unitary/multiscop1.c \
96 $(top_srcdir)/tests/unitary/multiscop2.c \
97 $(top_srcdir)/tests/unitary/multiscop3.c \
98 $(top_srcdir)/tests/unitary/loop_context1.c \
99 $(top_srcdir)/tests/unitary/loop_context2.c \
100 $(top_srcdir)/tests/unitary/loop_context3.c \
101 $(top_srcdir)/tests/unitary/ref1_parameter_after_reference.c \
102 $(top_srcdir)/tests/unitary/ref2_parameter_before_reference.c \
103 $(top_srcdir)/tests/unitary/ref3_iterator_reference.c \
104 $(top_srcdir)/tests/unitary/clay.c \
105 $(top_srcdir)/tests/unitary/empty.c \
106 $(top_srcdir)/tests/unitary/simplecond.c \
107 $(top_srcdir)/tests/unitary/twoconds.c \
108 $(top_srcdir)/tests/unitary/twocondincond.c \
109 $(top_srcdir)/tests/unitary/complexcond.c \
110 $(top_srcdir)/tests/unitary/multiparenthcond.c \
111 $(top_srcdir)/tests/unitary/maxloopsimple.c \
112 $(top_srcdir)/tests/unitary/maxloopcomplex.c \
113 $(top_srcdir)/tests/unitary/minloopsimple.c \
114 $(top_srcdir)/tests/unitary/minloopcomplex.c \
115 $(top_srcdir)/tests/unitary/minmax.c \
116 $(top_srcdir)/tests/unitary/negassign.c \
117 $(top_srcdir)/tests/unitary/binop.c \
118 $(top_srcdir)/tests/unitary/complexop.c \
119 $(top_srcdir)/tests/unitary/complexprog.c \
120 $(top_srcdir)/tests/unitary/noloop.c \
121 $(top_srcdir)/tests/unitary/noloop2.c \
122 $(top_srcdir)/tests/unitary/ternary.c \
123 $(top_srcdir)/tests/unitary/functioncall.c \
124 $(top_srcdir)/tests/unitary/functioncall2.c \
125 $(top_srcdir)/tests/unitary/redefiter.c \
126 $(top_srcdir)/tests/unitary/comments.c \
127 $(top_srcdir)/tests/unitary/underscore.c \
128 $(top_srcdir)/tests/unitary/parenthesis.c \
129 $(top_srcdir)/tests/unitary/intaddit.c \
130 $(top_srcdir)/tests/unitary/assigniter.c \
131 $(top_srcdir)/tests/unitary/assigniter2.c \
132 $(top_srcdir)/tests/unitary/increment.c \
133 $(top_srcdir)/tests/unitary/field.c \
134 $(top_srcdir)/tests/unitary/object.c \
135 $(top_srcdir)/tests/unitary/nestedcurly.c \
136 $(top_srcdir)/tests/unitary/float.c
139 $(top_srcdir)/tests/must_fail/array_in_affex.c \
140 $(top_srcdir)/tests/must_fail/variable_to_iterator.c \
141 $(top_srcdir)/tests/must_fail/function_call_in_affex.c \
142 $(top_srcdir)/tests/must_fail/non_affine_in_affex.c \
143 $(top_srcdir)/tests/must_fail/write_iterator.c \
144 $(top_srcdir)/tests/must_fail/write_parameter.c
146 AUTOSCOP_TEST_FILES = \
147 $(top_srcdir)/tests/autoscop/classicloop.c \
148 $(top_srcdir)/tests/autoscop/matmul_1_bare_metal.c \
149 $(top_srcdir)/tests/autoscop/matmul_2_non_static_fences.c \
150 $(top_srcdir)/tests/autoscop/matmul_3_user_scop.c
152 TEST_FILES_REF = $(TEST_FILES:.c=.c.scop)
153 UNITARY_TEST_FILES_REF = $(UNITARY_TEST_FILES:.c=.c.scop)
154 FAIL_TEST_FILES_REF = $(FAIL_TEST_FILES:.c=.c.scop)
155 AUTOSCOP_TEST_FILES_REF = $(AUTOSCOP_TEST_FILES:.c=.c.scop)
157 TEST_FILES_CLEAN = $(TEST_FILES:.c=.c.test)
158 UNITARY_TEST_FILES_CLEAN = $(UNITARY_TEST_FILES:.c=.c.test)
159 FAIL_TEST_FILES_CLEAN = $(FAIL_TEST_FILES:.c=.c.test)
160 AUTOSCOP_TEST_FILES_CLEAN = $(AUTOSCOP_TEST_FILES:.c=.c.test)
163 $(TEST_FILES_CLEAN) \
164 $(UNITARY_TEST_FILES_CLEAN) \
165 $(FAIL_TEST_FILES_CLEAN) \
166 $(AUTOSCOP_TEST_FILES_CLEAN)
171 $(UNITARY_TEST_FILES) \
172 $(UNITARY_TEST_FILES_REF) \
174 $(FAIL_TEST_FILES_REF) \
175 $(AUTOSCOP_TEST_FILES) \
176 $(AUTOSCOP_TEST_FILES_REF) \
179 TESTS_ENVIRONMENT += \
180 CHECKER="$(top_srcdir)/tests/checker.sh" \
181 TEST_FILES="$(TEST_FILES)" \
182 UNITARY_TEST_FILES="$(UNITARY_TEST_FILES)" \
183 FAIL_TEST_FILES="$(FAIL_TEST_FILES)" \
184 AUTOSCOP_TEST_FILES="$(AUTOSCOP_TEST_FILES)"