3 MAYBE_INTERFACE = interface
5 interface/extract_interface$(BUILD_EXEEXT): FORCE
6 $(MAKE) $(AM_MAKEFLAGS) -C interface extract_interface$(BUILD_EXEEXT)
9 SUBDIRS = . $(MAYBE_INTERFACE) doc
10 DIST_SUBDIRS = $(MAYBE_INTERFACE) doc
12 ACLOCAL_AMFLAGS = -I m4
13 AUTOMAKE_OPTIONS = nostdinc subdir-objects
15 lib_LTLIBRARIES = libisl.la
16 noinst_PROGRAMS = isl_test isl_polyhedron_sample isl_pip \
17 isl_polyhedron_minimize isl_polytope_scan \
18 isl_polyhedron_detect_equalities \
19 isl_polyhedron_remove_redundant_equalities isl_cat \
20 isl_closure isl_bound isl_schedule isl_codegen isl_test_int \
21 isl_flow isl_flow_cmp isl_schedule_cmp
22 TESTS = isl_test codegen_test.sh pip_test.sh bound_test.sh isl_test_int \
23 flow_test.sh schedule_test.sh
24 CPP_H = $(srcdir)/include/isl/cpp.h $(srcdir)/include/isl/typed_cpp.h
26 noinst_PROGRAMS += isl_test2 isl_test_cpp
27 TESTS += isl_test2 isl_test_cpp isl_test_cpp_failed.sh
30 noinst_PROGRAMS += isl_test_cpp17 isl_test_cpp17-checked
31 TESTS += isl_test_cpp17 isl_test_cpp17-checked
34 noinst_PROGRAMS += isl_test_cpp-checked isl_test_cpp-checked-conversion
35 TESTS += isl_test_cpp-checked isl_test_cpp-checked-conversion
38 TESTS += isl_test_python.py
39 noinst_PYTHON = interface/isl.py
40 isl_test_python.py: interface/isl.py libisl.la
43 AM_TESTS_ENVIRONMENT = \
44 export PYTHONPATH=interface; \
45 export ISL_DYLD_LIBRARY_PATH=.libs; \
46 export LD_LIBRARY_PATH=".libs:$(LD_LIBRARY_PATH)";
47 PY_LOG_COMPILER = $(PYTHON)
55 imath_wrap/gmp_compat.h \
59 imath_wrap/gmp_compat.c \
63 noinst_PROGRAMS += isl_test_imath
64 TESTS += isl_test_imath
67 MP_SRC += isl_int_sioimath.h \
71 MP_SRC += isl_val_imath.c
78 if NEED_GET_MEMORY_FUNCTIONS
79 GET_MEMORY_FUNCTIONS=mp_get_memory_functions.c
83 $(GET_MEMORY_FUNCTIONS) \
88 MP_INCLUDE_H = include/isl/val_gmp.h
91 includes = -I. -I$(srcdir) -I$(srcdir)/include -Iinclude/
92 AM_CPPFLAGS = $(includes) @MP_CPPFLAGS@
93 AM_CFLAGS = @WARNING_FLAGS@ @MP_CFLAGS@
105 isl_ast_build_private.h \
106 isl_ast_build_expr.c \
107 isl_ast_build_expr.h \
110 isl_ast_graft_private.h \
111 isl_basis_reduction.h \
112 basis_reduction_tab.c \
122 isl_constraint_private.h \
131 isl_factorization.c \
132 isl_factorization.h \
139 isl_id_to_ast_expr.c \
147 isl_local_private.h \
150 isl_local_space_private.h \
159 isl_map_to_basic_set.c \
168 isl_options_private.h \
170 isl_output_private.h \
171 isl_point_private.h \
173 isl_polynomial_private.h \
175 isl_printer_private.h \
187 isl_schedule_band.c \
188 isl_schedule_band.h \
189 isl_schedule_node.c \
190 isl_schedule_node_private.h \
191 isl_schedule_read.c \
192 isl_schedule_tree.c \
193 isl_schedule_tree.h \
194 isl_schedule_private.h \
195 isl_schedule_constraints.c \
196 isl_schedule_constraints.h \
199 isl_scheduler_clustering.c \
200 isl_scheduler_clustering.h \
201 isl_scheduler_scc.c \
202 isl_scheduler_scc.h \
207 isl_space_private.h \
209 isl_stream_private.h \
212 isl_set_to_ast_graft_list.c \
213 isl_set_to_ast_graft_list.h \
220 isl_transitive_closure.c \
222 isl_union_map_private.h \
223 isl_union_set_private.h \
229 isl_vertices_private.h \
232 libisl_la_LIBADD = @MP_LIBS@
233 libisl_la_LDFLAGS = -version-info @versioninfo@ \
236 isl_test_LDFLAGS = @MP_LDFLAGS@
237 isl_test_LDADD = libisl.la @MP_LIBS@
239 isl_test2_SOURCES = \
241 $(srcdir)/include/isl/cpp.h
242 isl_test2_LDFLAGS = @MP_LDFLAGS@
243 isl_test2_LDADD = libisl.la @MP_LIBS@
245 isl_test_int_LDFLAGS = @MP_LDFLAGS@
246 isl_test_int_LDADD = libisl.la @MP_LIBS@
249 isl_test_imath_LDFLAGS = @MP_LDFLAGS@
250 isl_test_imath_LDADD = libisl.la @MP_LIBS@
253 isl_polyhedron_sample_LDADD = libisl.la
254 isl_polyhedron_sample_SOURCES = \
257 isl_pip_LDFLAGS = @MP_LDFLAGS@
258 isl_pip_LDADD = libisl.la @MP_LIBS@
262 isl_schedule_LDFLAGS = @MP_LDFLAGS@
263 isl_schedule_LDADD = libisl.la @MP_LIBS@
264 isl_schedule_SOURCES = \
267 isl_schedule_cmp_LDFLAGS = @MP_LDFLAGS@
268 isl_schedule_cmp_LDADD = libisl.la @MP_LIBS@
269 isl_schedule_cmp_SOURCES = \
272 isl_flow_LDFLAGS = @MP_LDFLAGS@
273 isl_flow_LDADD = libisl.la @MP_LIBS@
277 isl_flow_cmp_LDFLAGS = @MP_LDFLAGS@
278 isl_flow_cmp_LDADD = libisl.la @MP_LIBS@
279 isl_flow_cmp_SOURCES = \
282 isl_codegen_LDFLAGS = @MP_LDFLAGS@
283 isl_codegen_LDADD = libisl.la @MP_LIBS@
284 isl_codegen_SOURCES = \
287 isl_bound_LDFLAGS = @MP_LDFLAGS@
288 isl_bound_LDADD = libisl.la @MP_LIBS@
289 isl_bound_SOURCES = \
292 isl_polyhedron_minimize_LDFLAGS = @MP_LDFLAGS@
293 isl_polyhedron_minimize_LDADD = libisl.la @MP_LIBS@
294 isl_polyhedron_minimize_SOURCES = \
295 polyhedron_minimize.c
297 isl_polytope_scan_LDADD = libisl.la
298 isl_polytope_scan_SOURCES = \
301 isl_polyhedron_detect_equalities_LDADD = libisl.la
302 isl_polyhedron_detect_equalities_SOURCES = \
303 polyhedron_detect_equalities.c
305 isl_polyhedron_remove_redundant_equalities_LDADD = libisl.la
306 isl_polyhedron_remove_redundant_equalities_SOURCES = \
307 polyhedron_remove_redundant_equalities.c
309 isl_cat_LDADD = libisl.la
313 isl_closure_LDADD = libisl.la
314 isl_closure_SOURCES = \
317 isl_test_cpp_CPPFLAGS = $(AM_CPPFLAGS) -UCOMPILE_ERROR
318 isl_test_cpp_SOURCES = \
320 $(srcdir)/include/isl/cpp.h
321 isl_test_cpp_LDFLAGS = @MP_LDFLAGS@
322 isl_test_cpp_LDADD = libisl.la @MP_LIBS@
324 # This program is not meant to be compiled by default.
325 # In fact it is meant not to be compilable.
326 # It is identical to isl_test_cpp, except that it gets compiled
327 # with the COMPILE_ERROR flag set.
328 EXTRA_PROGRAMS = isl_test_cpp_failed
329 isl_test_cpp_failed_CPPFLAGS = $(AM_CPPFLAGS) -DCOMPILE_ERROR
330 isl_test_cpp_failed_SOURCES = \
332 $(srcdir)/include/isl/cpp.h
333 isl_test_cpp_failed_LDFLAGS = @MP_LDFLAGS@
334 isl_test_cpp_failed_LDADD = libisl.la @MP_LIBS@
336 isl_test_cpp17_SOURCES = \
338 $(srcdir)/include/isl/cpp.h
339 isl_test_cpp17_LDFLAGS = @MP_LDFLAGS@
340 isl_test_cpp17_LDADD = libisl.la @MP_LIBS@
342 isl_test_cpp_checked_SOURCES = \
343 isl_test_cpp-checked.cc \
344 $(srcdir)/include/isl/cpp-checked.h
345 isl_test_cpp_checked_LDFLAGS = @MP_LDFLAGS@
346 isl_test_cpp_checked_LDADD = libisl.la @MP_LIBS@
348 isl_test_cpp17_checked_SOURCES = \
349 isl_test_cpp17-checked.cc \
350 $(srcdir)/include/isl/cpp.h
351 isl_test_cpp17_checked_LDFLAGS = @MP_LDFLAGS@
352 isl_test_cpp17_checked_LDADD = libisl.la @MP_LIBS@
354 isl_test_cpp_checked_conversion_SOURCES = \
355 isl_test_cpp-checked-conversion.cc \
356 $(srcdir)/include/isl/cpp-checked-conversion.h
357 isl_test_cpp_checked_conversion_LDFLAGS = @MP_LDFLAGS@
358 isl_test_cpp_checked_conversion_LDADD = libisl.la @MP_LIBS@
360 # dummy library that captures the dependencies on all headers
361 # that are relevant for the bindings
362 noinst_LIBRARIES = libdep.a
363 libdep_a_SOURCES = dep.c
367 $(srcdir)/interface/isl.py.core: interface/extract_interface$(BUILD_EXEEXT) \
369 $(AM_V_GEN)interface/extract_interface$(BUILD_EXEEXT) \
370 --language=python $(includes) $(srcdir)/all.h \
371 > interface/isl.py.Tcore && mv interface/isl.py.Tcore $@
373 $(srcdir)/include/isl/cpp.h: interface/extract_interface$(BUILD_EXEEXT) \
374 libdep.a cpp/cpp.h.top cpp/cpp.h.bot
375 $(AM_V_GEN)$(MKDIR_P) "include/isl" && \
376 (cat $(srcdir)/cpp/cpp.h.top $(srcdir)/all.h && \
377 interface/extract_interface$(BUILD_EXEEXT) --language=cpp \
378 $(includes) $(srcdir)/all.h && \
379 cat $(srcdir)/cpp/cpp.h.bot) \
380 > interface/cpp.Th && mv interface/cpp.Th $@
382 $(srcdir)/include/isl/cpp-checked.h: \
383 interface/extract_interface$(BUILD_EXEEXT) libdep.a \
384 cpp/cpp-checked.h.top cpp/cpp-checked.h.bot
385 $(AM_V_GEN)$(MKDIR_P) "include/isl" && \
386 (cat $(srcdir)/cpp/cpp-checked.h.top $(srcdir)/all.h && \
387 interface/extract_interface$(BUILD_EXEEXT) \
388 --language=cpp-checked \
389 $(includes) $(srcdir)/all.h && \
390 cat $(srcdir)/cpp/cpp-checked.h.bot) \
391 > interface/cpp-checked.Th && \
392 mv interface/cpp-checked.Th $@
394 $(srcdir)/include/isl/cpp-checked-conversion.h: \
395 interface/extract_interface$(BUILD_EXEEXT) \
397 cpp/cpp-checked-conversion.h.top \
398 cpp/cpp-checked-conversion.h.bot
399 $(AM_V_GEN)$(MKDIR_P) "include/isl" && \
400 (cat $(srcdir)/cpp/cpp-checked-conversion.h.top && \
401 interface/extract_interface$(BUILD_EXEEXT) \
402 --language=cpp-checked-conversion \
403 $(includes) $(srcdir)/all.h && \
404 cat $(srcdir)/cpp/cpp-checked-conversion.h.bot) \
405 > interface/cpp-checked-conversion.Th && \
406 mv interface/cpp-checked-conversion.Th $@
408 $(srcdir)/include/isl/typed_cpp.h: interface/extract_interface$(BUILD_EXEEXT) \
409 libdep.a cpp/typed_cpp.h.top cpp/typed_cpp.h.bot
410 $(AM_V_GEN)$(MKDIR_P) "include/isl" && \
411 (cat $(srcdir)/cpp/typed_cpp.h.top && \
412 interface/extract_interface$(BUILD_EXEEXT) \
413 --language=template-cpp \
414 $(includes) $(srcdir)/all.h && \
415 cat $(srcdir)/cpp/typed_cpp.h.bot) \
416 > interface/typed_cpp.Th && mv interface/typed_cpp.Th $@
420 interface/isldlname.py: libisl.la
421 $(AM_V_GEN)$(MKDIR_P) "interface" && \
422 $(GREP) dlname libisl.la | \
423 $(SED) -e 's/dlname/isl_dlname/' > $@
424 interface/isl.py: python/isl.py.top interface/isldlname.py \
425 $(srcdir)/interface/isl.py.core
426 $(AM_V_GEN)cat interface/isldlname.py $(srcdir)/python/isl.py.top \
427 $(srcdir)/interface/isl.py.core > interface/isl.Tpy && \
428 mv interface/isl.Tpy $@
430 nodist_pkginclude_HEADERS = \
432 pkginclude_HEADERS = \
436 include/isl/aff_type.h \
439 include/isl/ast_type.h \
440 include/isl/ast_build.h \
441 include/isl/constraint.h \
443 include/isl/fixed_box.h \
446 include/isl/id_type.h \
447 include/isl/id_to_ast_expr.h \
448 include/isl/id_to_id.h \
449 include/isl/id_to_pw_aff.h \
453 include/isl/hmap_templ.c \
455 include/isl/local_space.h \
459 include/isl/map_to_basic_set.h \
460 include/isl/map_type.h \
461 include/isl/maybe.h \
462 include/isl/maybe_ast_expr.h \
463 include/isl/maybe_basic_set.h \
464 include/isl/maybe_id.h \
465 include/isl/maybe_pw_aff.h \
466 include/isl/maybe_templ.h \
467 include/isl/multi.h \
469 include/isl/options.h \
470 include/isl/point.h \
471 include/isl/polynomial.h \
472 include/isl/polynomial_type.h \
473 include/isl/printer.h \
474 include/isl/printer_type.h \
475 include/isl/schedule.h \
476 include/isl/schedule_node.h \
477 include/isl/schedule_type.h \
479 include/isl/set_type.h \
480 include/isl/space.h \
481 include/isl/space_type.h \
482 include/isl/stream.h \
483 include/isl/stride_info.h \
484 include/isl/union_map.h \
485 include/isl/union_map_type.h \
486 include/isl/union_set.h \
487 include/isl/union_set_type.h \
489 include/isl/val_type.h \
491 include/isl/version.h \
492 include/isl/vertices.h
495 $(srcdir)/include/isl/cpp.h \
496 $(srcdir)/include/isl/cpp-checked.h \
497 $(srcdir)/include/isl/cpp-checked-conversion.h \
498 $(srcdir)/include/isl/typed_cpp.h
501 BUILT_CPP_INTERFACES = $(CPP_INTERFACES)
504 BUILT_SOURCES = gitversion.h $(BUILT_CPP_INTERFACES) interface/isl.py
507 interface/isldlname.py \
510 interface/__pycache__/*.pyc
522 isl_aff_lex_templ.c \
523 isl_align_params_templ.c \
524 isl_align_params_bin_templ.c \
525 isl_ast_node_set_field_templ.c \
526 basis_reduction_templ.c \
527 isl_bind_domain_templ.c \
530 isl_check_named_params_templ.c \
531 check_parse_fail_test_templ.c \
532 check_reparse_templ.c \
533 check_reparse_test_templ.c \
534 check_single_reference_templ.c \
535 check_type_range_templ.c \
536 isl_copy_tuple_id_templ.c \
537 isl_domain_factor_templ.c \
538 isl_drop_unused_params_templ.c \
540 isl_from_range_templ.c \
541 isl_ilp_opt_fn_val_templ.c \
542 isl_ilp_opt_multi_val_templ.c \
543 isl_ilp_opt_val_templ.c \
544 has_single_reference_templ.c \
545 isl_insert_domain_templ.c \
549 isl_list_read_templ.c \
550 isl_list_read_yaml_templ.c \
551 isl_map_bound_templ.c \
552 isl_map_lexopt_templ.c \
553 isl_maybe_ast_graft_list.h \
556 isl_multi_bind_templ.c \
557 isl_multi_explicit_domain.c \
558 isl_multi_pw_aff_explicit_domain.c \
559 isl_multi_union_pw_aff_explicit_domain.c \
560 isl_multi_no_explicit_domain.c \
561 isl_multi_no_domain_templ.c \
564 isl_multi_add_constant_templ.c \
565 isl_multi_align_set.c \
566 isl_multi_align_union_set.c \
567 isl_multi_apply_templ.c \
568 isl_multi_apply_explicit_domain_templ.c \
569 isl_multi_apply_no_explicit_domain_templ.c \
570 isl_multi_apply_set_explicit_domain_templ.c \
571 isl_multi_apply_set_no_explicit_domain_templ.c \
572 isl_multi_apply_union_set_explicit_domain_templ.c \
573 isl_multi_arith_templ.c \
574 isl_multi_bin_val_templ.c \
575 isl_multi_bind_domain_templ.c \
576 isl_multi_check_domain_templ.c \
578 isl_multi_coalesce.c \
579 isl_multi_dim_id_templ.c \
581 isl_multi_domain_templ.c \
582 isl_multi_domain_reverse_templ.c \
584 isl_multi_from_base_templ.c \
585 isl_multi_from_tuple_templ.c \
588 isl_multi_insert_domain_templ.c \
589 isl_multi_intersect.c \
590 isl_multi_identity_templ.c \
591 isl_multi_locals_templ.c \
592 isl_multi_min_max_templ.c \
593 isl_multi_move_dims_templ.c \
594 isl_multi_nan_templ.c \
595 isl_multi_param_templ.c \
596 isl_multi_product_templ.c \
597 isl_multi_pw_aff_pullback_templ.c \
598 isl_multi_read_no_explicit_domain_templ.c \
599 isl_multi_splice_templ.c \
600 isl_multi_tuple_id_templ.c \
601 isl_multi_un_op_templ.c \
602 isl_multi_unbind_params_templ.c \
603 isl_multi_union_add_templ.c \
604 isl_multi_zero_templ.c \
605 isl_multi_zero_space_templ.c \
606 isl_opt_mpa_templ.c \
610 print_yaml_field_templ.c \
612 isl_project_out_all_params_templ.c \
613 isl_project_out_param_templ.c \
617 isl_pw_add_constant_templ.c \
618 isl_pw_add_constant_multi_val_templ.c \
619 isl_pw_add_constant_val_templ.c \
620 isl_pw_add_disjoint_templ.c \
621 isl_pw_bind_domain_templ.c \
622 isl_pw_domain_reverse_templ.c \
625 isl_pw_from_range_templ.c \
627 isl_pw_insert_dims_templ.c \
628 isl_pw_insert_domain_templ.c \
629 isl_pw_lift_templ.c \
630 isl_pw_locals_templ.c \
631 isl_pw_morph_templ.c \
632 isl_pw_move_dims_templ.c \
635 isl_pw_print_templ.c \
636 isl_pw_pullback_templ.c \
637 isl_pw_range_tuple_id_templ.c \
638 isl_pw_scale_templ.c \
639 isl_pw_split_dims_templ.c \
641 isl_pw_un_op_templ.c \
643 isl_read_from_str_templ.c \
644 read_in_string_templ.c \
647 set_list_from_map_list_inl.c \
648 isl_stream_read_pw_with_params_templ.c \
649 isl_stream_read_with_params_templ.c \
650 isl_tab_lexopt_templ.c \
651 isl_test_list_templ.c \
652 isl_test_plain_equal_templ.c \
653 isl_type_check_equal_space_templ.c \
654 isl_type_check_match_range_multi_val.c \
655 isl_type_has_equal_space_bin_templ.c \
656 isl_type_has_equal_space_templ.c \
657 isl_type_has_space_templ.c \
658 isl_unbind_params_templ.c \
665 isl_union_domain_reverse_templ.c \
667 isl_union_locals_templ.c \
668 isl_union_map_lex_templ.c \
670 isl_union_print_templ.c \
671 isl_union_pw_templ.c \
672 isl_union_sub_templ.c \
675 doc/SubmittingPatches \
676 doc/implementation.tex \
688 interface/isl.py.core \
692 isl_test_cpp-generic.cc \
693 isl_test_cpp_failed.sh \
694 isl_test_cpp17-generic.cc \
699 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
700 (cd doc; make manual.pdf)
701 cp doc/manual.pdf $(distdir)/doc/
702 chmod -R u+w $(distdir)/include/isl
703 cp $(CPP_INTERFACES) $(distdir)/include/isl
705 pkgconfigdir=$(pkgconfig_libdir)
706 pkgconfig_DATA = $(pkgconfig_libfile)
708 gitversion.h: @GIT_HEAD@
709 $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@
711 install-data-local: $(srcdir)/libisl-gdb.py
712 @libisl=`sed -ne "/^library_names=/{s/.*='//;s/'$$//;s/ .*//;p;}" \
713 $(builddir)/libisl.la`; \
715 '') echo Cannot find isl library name. GDB bindings not installed.;; \
716 *) echo $(INSTALL_DATA) $(srcdir)/libisl-gdb.py \
717 $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
718 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"; \
719 $(INSTALL_DATA) $(srcdir)/libisl-gdb.py \
720 $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
724 @libisl=`sed -ne "/^library_names=/{s/.*='//;s/'$$//;s/ .*//;p;}" \
725 $(builddir)/libisl.la`; \
726 if test -n "$${libisl}"; then \
727 rm -f $(DESTDIR)$(libdir)/$$libisl-gdb.py; \