isl_map_sum: add memory management annotations
[isl.git] / Makefile.am
blob82eb1ed37477d31fd30c37e9f5a621a9ff82c8f4
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 TESTS = isl_test codegen_test.sh pip_test.sh bound_test.sh isl_test_int
17 if IMATH_FOR_MP
19 MP_SRC = \
20         isl_hide_deprecated.h \
21         isl_imath.c \
22         isl_imath.h \
23         isl_int_imath.h \
24         imath_wrap/gmp_compat.h \
25         imath_wrap/imath.h \
26         imath_wrap/imrat.h \
27         imath_wrap/wrap.h \
28         imath_wrap/gmp_compat.c \
29         imath_wrap/imath.c \
30         imath_wrap/imrat.c
32 noinst_PROGRAMS += isl_test_imath
33 TESTS += isl_test_imath
35 if SMALL_INT_OPT
36 MP_SRC += isl_int_sioimath.h \
37         isl_int_sioimath.c \
38         isl_val_sioimath.c
39 else
40 MP_SRC += isl_val_imath.c
41 endif
43 DEPRECATED_SRC =
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 DEPRECATED_SRC = isl_ast_int.c
59 MP_INCLUDE_H = include/isl/val_gmp.h
60 endif
62 AM_CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)/include -Iinclude/ @MP_CPPFLAGS@
63 AM_CFLAGS = @WARNING_FLAGS@
65 libisl_la_SOURCES = \
66         $(MP_SRC) \
67         $(DEPRECATED_SRC) \
68         isl_aff.c \
69         isl_aff_private.h \
70         isl_affine_hull.c \
71         isl_arg.c \
72         isl_ast.c \
73         isl_ast_private.h \
74         isl_ast_build.c \
75         isl_ast_build_private.h \
76         isl_ast_build_expr.c \
77         isl_ast_build_expr.h \
78         isl_ast_codegen.c \
79         isl_ast_graft.c \
80         isl_ast_graft_private.h \
81         isl_band.c \
82         isl_band_private.h \
83         isl_basis_reduction.h \
84         basis_reduction_tab.c \
85         isl_bernstein.c \
86         isl_bernstein.h \
87         isl_blk.c \
88         isl_blk.h \
89         isl_bound.c \
90         isl_bound.h \
91         isl_coalesce.c \
92         isl_constraint.c \
93         isl_constraint_private.h \
94         isl_convex_hull.c \
95         isl_ctx.c \
96         isl_ctx_private.h \
97         isl_deprecated.c \
98         isl_dim_map.h \
99         isl_dim_map.c \
100         isl_equalities.c \
101         isl_equalities.h \
102         isl_factorization.c \
103         isl_factorization.h \
104         isl_farkas.c \
105         isl_ffs.c \
106         isl_flow.c \
107         isl_fold.c \
108         isl_hash.c \
109         isl_hash_private.h \
110         isl_id_to_ast_expr.c \
111         isl_id_to_id.c \
112         isl_id_to_pw_aff.c \
113         isl_ilp.c \
114         isl_ilp_private.h \
115         isl_input.c \
116         isl_int.h \
117         isl_local.h \
118         isl_local.c \
119         isl_local_space_private.h \
120         isl_local_space.c \
121         isl_lp.c \
122         isl_lp_private.h \
123         isl_map.c \
124         isl_map_list.c \
125         isl_map_simplify.c \
126         isl_map_subtract.c \
127         isl_map_private.h \
128         isl_map_to_basic_set.c \
129         isl_mat.c \
130         isl_mat_private.h \
131         isl_morph.c \
132         isl_morph.h \
133         isl_id.c \
134         isl_id_private.h \
135         isl_obj.c \
136         isl_options.c \
137         isl_options_private.h \
138         isl_output.c \
139         isl_output_private.h \
140         isl_point_private.h \
141         isl_point.c \
142         isl_polynomial_private.h \
143         isl_polynomial.c \
144         isl_printer_private.h \
145         isl_printer.c \
146         print.c \
147         isl_range.c \
148         isl_range.h \
149         isl_reordering.c \
150         isl_reordering.h \
151         isl_sample.h \
152         isl_sample.c \
153         isl_scan.c \
154         isl_scan.h \
155         isl_schedule.c \
156         isl_schedule_band.c \
157         isl_schedule_band.h \
158         isl_schedule_node.c \
159         isl_schedule_node_private.h \
160         isl_schedule_read.c \
161         isl_schedule_tree.c \
162         isl_schedule_tree.h \
163         isl_schedule_private.h \
164         isl_schedule_constraints.c \
165         isl_schedule_constraints.h \
166         isl_scheduler.c \
167         isl_set_list.c \
168         isl_sort.c \
169         isl_sort.h \
170         isl_space.c \
171         isl_space_private.h \
172         isl_stream.c \
173         isl_stream_private.h \
174         isl_seq.c \
175         isl_seq.h \
176         isl_tab.c \
177         isl_tab.h \
178         isl_tab_pip.c \
179         isl_tarjan.c \
180         isl_tarjan.h \
181         isl_transitive_closure.c \
182         isl_union_map.c \
183         isl_union_map_private.h \
184         isl_val.c \
185         isl_val_private.h \
186         isl_vec_private.h \
187         isl_vec.c \
188         isl_version.c \
189         isl_vertices_private.h \
190         isl_vertices.c \
191         isl_yaml.h
192 libisl_la_LIBADD = @MP_LIBS@
193 libisl_la_LDFLAGS = -version-info @versioninfo@ \
194         @MP_LDFLAGS@
196 isl_test_LDFLAGS = @MP_LDFLAGS@
197 isl_test_LDADD = libisl.la @MP_LIBS@
199 isl_test_int_LDFLAGS = @MP_LDFLAGS@
200 isl_test_int_LDADD = libisl.la @MP_LIBS@
202 if IMATH_FOR_MP
203 isl_test_imath_LDFLAGS = @MP_LDFLAGS@
204 isl_test_imath_LDADD = libisl.la @MP_LIBS@
205 endif
207 isl_polyhedron_sample_LDADD = libisl.la
208 isl_polyhedron_sample_SOURCES = \
209         polyhedron_sample.c
211 isl_pip_LDFLAGS = @MP_LDFLAGS@
212 isl_pip_LDADD = libisl.la @MP_LIBS@
213 isl_pip_SOURCES = \
214         pip.c
216 isl_schedule_LDFLAGS = @MP_LDFLAGS@
217 isl_schedule_LDADD = libisl.la @MP_LIBS@
218 isl_schedule_SOURCES = \
219         schedule.c
221 isl_codegen_LDFLAGS = @MP_LDFLAGS@
222 isl_codegen_LDADD = libisl.la @MP_LIBS@
223 isl_codegen_SOURCES = \
224         codegen.c
226 isl_bound_LDFLAGS = @MP_LDFLAGS@
227 isl_bound_LDADD = libisl.la @MP_LIBS@
228 isl_bound_SOURCES = \
229         bound.c
231 isl_polyhedron_minimize_LDFLAGS = @MP_LDFLAGS@
232 isl_polyhedron_minimize_LDADD = libisl.la @MP_LIBS@
233 isl_polyhedron_minimize_SOURCES = \
234         polyhedron_minimize.c
236 isl_polytope_scan_LDADD = libisl.la
237 isl_polytope_scan_SOURCES = \
238         polytope_scan.c
240 isl_polyhedron_detect_equalities_LDADD = libisl.la
241 isl_polyhedron_detect_equalities_SOURCES = \
242         polyhedron_detect_equalities.c
244 isl_cat_LDADD = libisl.la
245 isl_cat_SOURCES = \
246         cat.c
248 isl_closure_LDADD = libisl.la
249 isl_closure_SOURCES = \
250         closure.c
252 nodist_pkginclude_HEADERS = \
253         include/isl/stdint.h
254 pkginclude_HEADERS = \
255         $(MP_INCLUDE_H) \
256         include/isl/aff.h \
257         include/isl/aff_type.h \
258         include/isl/arg.h \
259         include/isl/ast.h \
260         include/isl/ast_type.h \
261         include/isl/ast_build.h \
262         include/isl/band.h \
263         include/isl/constraint.h \
264         include/isl/ctx.h \
265         include/isl/flow.h \
266         include/isl/id.h \
267         include/isl/id_to_ast_expr.h \
268         include/isl/id_to_id.h \
269         include/isl/id_to_pw_aff.h \
270         include/isl/ilp.h \
271         include/isl/hash.h \
272         include/isl/hmap.h \
273         include/isl/hmap_templ.c \
274         include/isl/list.h \
275         include/isl/local_space.h \
276         include/isl/lp.h \
277         include/isl/mat.h \
278         include/isl/map.h \
279         include/isl/map_to_basic_set.h \
280         include/isl/map_type.h \
281         include/isl/maybe.h \
282         include/isl/maybe_ast_expr.h \
283         include/isl/maybe_basic_set.h \
284         include/isl/maybe_id.h \
285         include/isl/maybe_pw_aff.h \
286         include/isl/maybe_templ.h \
287         include/isl/multi.h \
288         include/isl/obj.h \
289         include/isl/options.h \
290         include/isl/point.h \
291         include/isl/polynomial.h \
292         include/isl/polynomial_type.h \
293         include/isl/printer.h \
294         include/isl/printer_type.h \
295         include/isl/schedule.h \
296         include/isl/schedule_node.h \
297         include/isl/schedule_type.h \
298         include/isl/set.h \
299         include/isl/set_type.h \
300         include/isl/space.h \
301         include/isl/stream.h \
302         include/isl/union_map.h \
303         include/isl/union_map_type.h \
304         include/isl/union_set.h \
305         include/isl/union_set_type.h \
306         include/isl/val.h \
307         include/isl/vec.h \
308         include/isl/version.h \
309         include/isl/vertices.h
310 deprecateddir = $(pkgincludedir)/deprecated
311 deprecated_HEADERS = \
312         include/isl/deprecated/int.h \
313         include/isl/deprecated/aff_int.h \
314         include/isl/deprecated/ast_int.h \
315         include/isl/deprecated/constraint_int.h \
316         include/isl/deprecated/ilp_int.h \
317         include/isl/deprecated/map_int.h \
318         include/isl/deprecated/mat_int.h \
319         include/isl/deprecated/point_int.h \
320         include/isl/deprecated/polynomial_int.h \
321         include/isl/deprecated/set_int.h \
322         include/isl/deprecated/union_map_int.h \
323         include/isl/deprecated/val_int.h \
324         include/isl/deprecated/vec_int.h
326 BUILT_SOURCES = gitversion.h
328 CLEANFILES = \
329         gitversion.h
331 DISTCLEANFILES = \
332         isl-uninstalled.sh \
333         isl-uninstalled.pc \
334         isl.pc \
335         isl.pc.in \
336         include/isl/stdint.h
338 EXTRA_DIST = \
339         LICENSE \
340         isl_config_post.h \
341         basis_reduction_templ.c \
342         bset_to_bmap.c \
343         bset_from_bmap.c \
344         isl_list_templ.c \
345         isl_list_templ.h \
346         isl_map_lexopt_templ.c \
347         isl_multi_macro.h \
348         isl_multi_templ.c \
349         isl_multi_templ.h \
350         isl_multi_apply_templ.c \
351         isl_multi_apply_set.c \
352         isl_multi_apply_union_set.c \
353         isl_multi_cmp.c \
354         isl_multi_coalesce.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         isl_union_macro.h \
371         isl_union_templ.c \
372         isl_union_single.c \
373         isl_union_multi.c \
374         isl_union_eval.c \
375         isl_union_neg.c \
376         isl.py \
377         doc/CodingStyle \
378         doc/SubmittingPatches \
379         doc/implementation.tex \
380         doc/isl.bib \
381         doc/mypod2latex \
382         doc/manual.tex \
383         doc/reading.tex \
384         doc/user.pod \
385         imath/gmp_compat.c \
386         imath/gmp_compat.h \
387         imath/imath.c \
388         imath/imath.h \
389         imath/imrat.c \
390         imath/imrat.h \
391         interface/all.h \
392         interface/isl.py.top \
393         test_inputs
395 dist-hook:
396         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
397         (cd doc; make manual.pdf)
398         cp doc/manual.pdf $(distdir)/doc/
400 pkgconfigdir=$(pkgconfig_libdir)
401 pkgconfig_DATA = $(pkgconfig_libfile)
403 gitversion.h: @GIT_HEAD@
404         $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@
406 install-data-local: $(srcdir)/isl.py
407         @libisl=`sed -ne "/^library_names=/{s/.*='//;s/'$$//;s/ .*//;p;}" \
408                  $(builddir)/libisl.la`; \
409         case $$libisl in \
410         '') echo Cannot find isl library name. GDB bindings not installed.;; \
411         *) echo $(INSTALL_DATA) $(srcdir)/isl.py \
412                 $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
413         test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"; \
414         $(INSTALL_DATA) $(srcdir)/isl.py $(DESTDIR)$(libdir)/$$libisl-gdb.py; esac
416 uninstall-local:
417         @libisl=`sed -ne "/^library_names=/{s/.*='//;s/'$$//;s/ .*//;p;}" \
418                  $(builddir)/libisl.la`; \
419         if test -n "$${libisl}"; then \
420                 rm -f $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
421         fi