isl_multi_union_pw_aff_apply_multi_aff: extract out 0D handling
[isl.git] / Makefile.am
blob4852c7e9182d65b7ab3e07606ea06d3b6f1d7dd8
1 if HAVE_CLANG
2     MAYBE_INTERFACE = interface
3 endif
4 SUBDIRS = . $(MAYBE_INTERFACE) doc
5 DIST_SUBDIRS = $(MAYBE_INTERFACE) doc
7 ACLOCAL_AMFLAGS = -I m4
8 AUTOMAKE_OPTIONS = nostdinc subdir-objects
10 lib_LTLIBRARIES = libisl.la
11 noinst_PROGRAMS = isl_test isl_polyhedron_sample isl_pip \
12         isl_polyhedron_minimize isl_polytope_scan \
13         isl_polyhedron_detect_equalities isl_cat \
14         isl_closure isl_bound isl_schedule isl_codegen isl_test_int \
15         isl_flow isl_flow_cmp isl_schedule_cmp
16 TESTS = isl_test codegen_test.sh pip_test.sh bound_test.sh isl_test_int \
17         flow_test.sh schedule_test.sh
19 if IMATH_FOR_MP
21 MP_SRC = \
22         isl_imath.c \
23         isl_imath.h \
24         isl_int_imath.h \
25         imath_wrap/gmp_compat.h \
26         imath_wrap/imath.h \
27         imath_wrap/imrat.h \
28         imath_wrap/wrap.h \
29         imath_wrap/gmp_compat.c \
30         imath_wrap/imath.c \
31         imath_wrap/imrat.c
33 noinst_PROGRAMS += isl_test_imath
34 TESTS += isl_test_imath
36 if SMALL_INT_OPT
37 MP_SRC += isl_int_sioimath.h \
38         isl_int_sioimath.c \
39         isl_val_sioimath.c
40 else
41 MP_SRC += isl_val_imath.c
42 endif
44 MP_INCLUDE_H =
45 endif
47 if GMP_FOR_MP
48 if NEED_GET_MEMORY_FUNCTIONS
49 GET_MEMORY_FUNCTIONS=mp_get_memory_functions.c
50 endif
52 MP_SRC = \
53         $(GET_MEMORY_FUNCTIONS) \
54         isl_int_gmp.h \
55         isl_gmp.c \
56         isl_val_gmp.c
58 MP_INCLUDE_H = include/isl/val_gmp.h
59 endif
61 AM_CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)/include -Iinclude/ @MP_CPPFLAGS@
62 AM_CFLAGS = @WARNING_FLAGS@
64 libisl_la_SOURCES = \
65         $(MP_SRC) \
66         isl_aff.c \
67         isl_aff_private.h \
68         isl_affine_hull.c \
69         isl_arg.c \
70         isl_ast.c \
71         isl_ast_private.h \
72         isl_ast_build.c \
73         isl_ast_build_private.h \
74         isl_ast_build_expr.c \
75         isl_ast_build_expr.h \
76         isl_ast_codegen.c \
77         isl_ast_graft.c \
78         isl_ast_graft_private.h \
79         isl_basis_reduction.h \
80         basis_reduction_tab.c \
81         isl_bernstein.c \
82         isl_bernstein.h \
83         isl_blk.c \
84         isl_blk.h \
85         isl_bound.c \
86         isl_bound.h \
87         isl_coalesce.c \
88         isl_constraint.c \
89         isl_constraint_private.h \
90         isl_convex_hull.c \
91         isl_ctx.c \
92         isl_ctx_private.h \
93         isl_deprecated.c \
94         isl_dim_map.h \
95         isl_dim_map.c \
96         isl_equalities.c \
97         isl_equalities.h \
98         isl_factorization.c \
99         isl_factorization.h \
100         isl_farkas.c \
101         isl_ffs.c \
102         isl_flow.c \
103         isl_fold.c \
104         isl_hash.c \
105         isl_hash_private.h \
106         isl_id_to_ast_expr.c \
107         isl_id_to_id.c \
108         isl_id_to_pw_aff.c \
109         isl_ilp.c \
110         isl_ilp_private.h \
111         isl_input.c \
112         isl_int.h \
113         isl_local.h \
114         isl_local.c \
115         isl_local_space_private.h \
116         isl_local_space.c \
117         isl_lp.c \
118         isl_lp_private.h \
119         isl_map.c \
120         isl_map_list.c \
121         isl_map_simplify.c \
122         isl_map_subtract.c \
123         isl_map_private.h \
124         isl_map_to_basic_set.c \
125         isl_mat.c \
126         isl_mat_private.h \
127         isl_morph.c \
128         isl_morph.h \
129         isl_id.c \
130         isl_id_private.h \
131         isl_obj.c \
132         isl_options.c \
133         isl_options_private.h \
134         isl_output.c \
135         isl_output_private.h \
136         isl_point_private.h \
137         isl_point.c \
138         isl_polynomial_private.h \
139         isl_polynomial.c \
140         isl_printer_private.h \
141         isl_printer.c \
142         print.c \
143         isl_range.c \
144         isl_range.h \
145         isl_reordering.c \
146         isl_reordering.h \
147         isl_sample.h \
148         isl_sample.c \
149         isl_scan.c \
150         isl_scan.h \
151         isl_schedule.c \
152         isl_schedule_band.c \
153         isl_schedule_band.h \
154         isl_schedule_node.c \
155         isl_schedule_node_private.h \
156         isl_schedule_read.c \
157         isl_schedule_tree.c \
158         isl_schedule_tree.h \
159         isl_schedule_private.h \
160         isl_schedule_constraints.c \
161         isl_schedule_constraints.h \
162         isl_scheduler.c \
163         isl_set_list.c \
164         isl_sort.c \
165         isl_sort.h \
166         isl_space.c \
167         isl_space_private.h \
168         isl_stream.c \
169         isl_stream_private.h \
170         isl_seq.c \
171         isl_seq.h \
172         isl_stride.c \
173         isl_tab.c \
174         isl_tab.h \
175         isl_tab_pip.c \
176         isl_tarjan.c \
177         isl_tarjan.h \
178         isl_transitive_closure.c \
179         isl_union_map.c \
180         isl_union_map_private.h \
181         isl_union_set_private.h \
182         isl_val.c \
183         isl_val_private.h \
184         isl_vec_private.h \
185         isl_vec.c \
186         isl_version.c \
187         isl_vertices_private.h \
188         isl_vertices.c \
189         isl_yaml.h
190 libisl_la_LIBADD = @MP_LIBS@
191 libisl_la_LDFLAGS = -version-info @versioninfo@ \
192         @MP_LDFLAGS@
194 isl_test_LDFLAGS = @MP_LDFLAGS@
195 isl_test_LDADD = libisl.la @MP_LIBS@
197 isl_test_int_LDFLAGS = @MP_LDFLAGS@
198 isl_test_int_LDADD = libisl.la @MP_LIBS@
200 if IMATH_FOR_MP
201 isl_test_imath_LDFLAGS = @MP_LDFLAGS@
202 isl_test_imath_LDADD = libisl.la @MP_LIBS@
203 endif
205 isl_polyhedron_sample_LDADD = libisl.la
206 isl_polyhedron_sample_SOURCES = \
207         polyhedron_sample.c
209 isl_pip_LDFLAGS = @MP_LDFLAGS@
210 isl_pip_LDADD = libisl.la @MP_LIBS@
211 isl_pip_SOURCES = \
212         pip.c
214 isl_schedule_LDFLAGS = @MP_LDFLAGS@
215 isl_schedule_LDADD = libisl.la @MP_LIBS@
216 isl_schedule_SOURCES = \
217         schedule.c
219 isl_schedule_cmp_LDFLAGS = @MP_LDFLAGS@
220 isl_schedule_cmp_LDADD = libisl.la @MP_LIBS@
221 isl_schedule_cmp_SOURCES = \
222         schedule_cmp.c
224 isl_flow_LDFLAGS = @MP_LDFLAGS@
225 isl_flow_LDADD = libisl.la @MP_LIBS@
226 isl_flow_SOURCES = \
227         flow.c
229 isl_flow_cmp_LDFLAGS = @MP_LDFLAGS@
230 isl_flow_cmp_LDADD = libisl.la @MP_LIBS@
231 isl_flow_cmp_SOURCES = \
232         flow_cmp.c
234 isl_codegen_LDFLAGS = @MP_LDFLAGS@
235 isl_codegen_LDADD = libisl.la @MP_LIBS@
236 isl_codegen_SOURCES = \
237         codegen.c
239 isl_bound_LDFLAGS = @MP_LDFLAGS@
240 isl_bound_LDADD = libisl.la @MP_LIBS@
241 isl_bound_SOURCES = \
242         bound.c
244 isl_polyhedron_minimize_LDFLAGS = @MP_LDFLAGS@
245 isl_polyhedron_minimize_LDADD = libisl.la @MP_LIBS@
246 isl_polyhedron_minimize_SOURCES = \
247         polyhedron_minimize.c
249 isl_polytope_scan_LDADD = libisl.la
250 isl_polytope_scan_SOURCES = \
251         polytope_scan.c
253 isl_polyhedron_detect_equalities_LDADD = libisl.la
254 isl_polyhedron_detect_equalities_SOURCES = \
255         polyhedron_detect_equalities.c
257 isl_cat_LDADD = libisl.la
258 isl_cat_SOURCES = \
259         cat.c
261 isl_closure_LDADD = libisl.la
262 isl_closure_SOURCES = \
263         closure.c
265 nodist_pkginclude_HEADERS = \
266         include/isl/stdint.h
267 pkginclude_HEADERS = \
268         $(MP_INCLUDE_H) \
269         include/isl/aff.h \
270         include/isl/aff_type.h \
271         include/isl/arg.h \
272         include/isl/ast.h \
273         include/isl/ast_type.h \
274         include/isl/ast_build.h \
275         include/isl/constraint.h \
276         include/isl/ctx.h \
277         include/isl/flow.h \
278         include/isl/id.h \
279         include/isl/id_to_ast_expr.h \
280         include/isl/id_to_id.h \
281         include/isl/id_to_pw_aff.h \
282         include/isl/ilp.h \
283         include/isl/hash.h \
284         include/isl/hmap.h \
285         include/isl/hmap_templ.c \
286         include/isl/list.h \
287         include/isl/local_space.h \
288         include/isl/lp.h \
289         include/isl/mat.h \
290         include/isl/map.h \
291         include/isl/map_to_basic_set.h \
292         include/isl/map_type.h \
293         include/isl/maybe.h \
294         include/isl/maybe_ast_expr.h \
295         include/isl/maybe_basic_set.h \
296         include/isl/maybe_id.h \
297         include/isl/maybe_pw_aff.h \
298         include/isl/maybe_templ.h \
299         include/isl/multi.h \
300         include/isl/obj.h \
301         include/isl/options.h \
302         include/isl/point.h \
303         include/isl/polynomial.h \
304         include/isl/polynomial_type.h \
305         include/isl/printer.h \
306         include/isl/printer_type.h \
307         include/isl/schedule.h \
308         include/isl/schedule_node.h \
309         include/isl/schedule_type.h \
310         include/isl/set.h \
311         include/isl/set_type.h \
312         include/isl/space.h \
313         include/isl/stream.h \
314         include/isl/union_map.h \
315         include/isl/union_map_type.h \
316         include/isl/union_set.h \
317         include/isl/union_set_type.h \
318         include/isl/val.h \
319         include/isl/vec.h \
320         include/isl/version.h \
321         include/isl/vertices.h
323 BUILT_SOURCES = gitversion.h
325 CLEANFILES = \
326         gitversion.h
328 DISTCLEANFILES = \
329         isl-uninstalled.sh \
330         isl-uninstalled.pc \
331         isl.pc \
332         isl.pc.in \
333         include/isl/stdint.h
335 EXTRA_DIST = \
336         LICENSE \
337         isl_config_post.h \
338         basis_reduction_templ.c \
339         bset_to_bmap.c \
340         bset_from_bmap.c \
341         extract_key.c \
342         isl_list_templ.c \
343         isl_list_templ.h \
344         isl_map_lexopt_templ.c \
345         isl_maybe_map.h \
346         isl_multi_macro.h \
347         isl_multi_templ.c \
348         isl_multi_templ.h \
349         isl_multi_apply_templ.c \
350         isl_multi_apply_set.c \
351         isl_multi_apply_union_set.c \
352         isl_multi_cmp.c \
353         isl_multi_coalesce.c \
354         isl_multi_dims.c \
355         isl_multi_floor.c \
356         isl_multi_gist.c \
357         isl_multi_hash.c \
358         isl_multi_intersect.c \
359         print_templ.c \
360         print_templ_yaml.c \
361         isl_power_templ.c \
362         isl_pw_macro.h \
363         isl_pw_templ.c \
364         isl_pw_hash.c \
365         isl_pw_union_opt.c \
366         read_in_string_templ.c \
367         set_to_map.c \
368         set_from_map.c \
369         isl_tab_lexopt_templ.c \
370         uset_to_umap.c \
371         isl_union_macro.h \
372         isl_union_templ.c \
373         isl_union_single.c \
374         isl_union_multi.c \
375         isl_union_eval.c \
376         isl_union_neg.c \
377         libisl-gdb.py \
378         doc/CodingStyle \
379         doc/SubmittingPatches \
380         doc/implementation.tex \
381         doc/isl.bib \
382         doc/mypod2latex \
383         doc/manual.tex \
384         doc/reading.tex \
385         doc/user.pod \
386         imath/gmp_compat.c \
387         imath/gmp_compat.h \
388         imath/imath.c \
389         imath/imath.h \
390         imath/imrat.c \
391         imath/imrat.h \
392         interface/all.h \
393         interface/isl.py.top \
394         interface/isl_test_python.py \
395         test_inputs
397 dist-hook:
398         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
399         (cd doc; make manual.pdf)
400         cp doc/manual.pdf $(distdir)/doc/
402 pkgconfigdir=$(pkgconfig_libdir)
403 pkgconfig_DATA = $(pkgconfig_libfile)
405 gitversion.h: @GIT_HEAD@
406         $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@
408 install-data-local: $(srcdir)/libisl-gdb.py
409         @libisl=`sed -ne "/^library_names=/{s/.*='//;s/'$$//;s/ .*//;p;}" \
410                  $(builddir)/libisl.la`; \
411         case $$libisl in \
412         '') echo Cannot find isl library name. GDB bindings not installed.;; \
413         *) echo $(INSTALL_DATA) $(srcdir)/libisl-gdb.py \
414                 $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
415         test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"; \
416         $(INSTALL_DATA) $(srcdir)/libisl-gdb.py \
417             $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
418         esac
420 uninstall-local:
421         @libisl=`sed -ne "/^library_names=/{s/.*='//;s/'$$//;s/ .*//;p;}" \
422                  $(builddir)/libisl.la`; \
423         if test -n "$${libisl}"; then \
424                 rm -f $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
425         fi