2 MAYBE_INTERFACE = interface
4 interface/extract_interface: FORCE
5 $(MAKE) $(AM_MAKEFLAGS) -C interface extract_interface
7 SUBDIRS = . $(MAYBE_INTERFACE) doc
8 DIST_SUBDIRS = $(MAYBE_INTERFACE) doc
10 ACLOCAL_AMFLAGS = -I m4
11 AUTOMAKE_OPTIONS = nostdinc subdir-objects
13 lib_LTLIBRARIES = libisl.la
14 noinst_PROGRAMS = isl_test isl_polyhedron_sample isl_pip \
15 isl_polyhedron_minimize isl_polytope_scan \
16 isl_polyhedron_detect_equalities isl_cat \
17 isl_closure isl_bound isl_schedule isl_codegen isl_test_int \
18 isl_flow isl_flow_cmp isl_schedule_cmp
19 TESTS = isl_test codegen_test.sh pip_test.sh bound_test.sh isl_test_int \
20 flow_test.sh schedule_test.sh
22 CPP_H = include/isl/cpp.h
24 noinst_PROGRAMS += isl_test_cpp
30 noinst_PROGRAMS += isl_test_cpp-checked isl_test_cpp-checked-conversion
31 TESTS += isl_test_cpp-checked isl_test_cpp-checked-conversion
34 TESTS += isl_test_python.py
35 noinst_PYTHON = interface/isl.py
36 isl_test_python.py: interface/isl.py libisl.la
40 AM_TESTS_ENVIRONMENT = \
41 export PYTHONPATH=interface; \
42 export ISL_DYLD_LIBRARY_PATH=.libs; \
43 export LD_LIBRARY_PATH=.libs;
44 PY_LOG_COMPILER = $(PYTHON)
52 imath_wrap/gmp_compat.h \
56 imath_wrap/gmp_compat.c \
60 noinst_PROGRAMS += isl_test_imath
61 TESTS += isl_test_imath
64 MP_SRC += isl_int_sioimath.h \
68 MP_SRC += isl_val_imath.c
75 if NEED_GET_MEMORY_FUNCTIONS
76 GET_MEMORY_FUNCTIONS=mp_get_memory_functions.c
80 $(GET_MEMORY_FUNCTIONS) \
85 MP_INCLUDE_H = include/isl/val_gmp.h
88 includes = -I. -I$(srcdir) -I$(srcdir)/include -Iinclude/
89 AM_CPPFLAGS = $(includes) @MP_CPPFLAGS@
90 AM_CFLAGS = @WARNING_FLAGS@ @MP_CFLAGS@
102 isl_ast_build_private.h \
103 isl_ast_build_expr.c \
104 isl_ast_build_expr.h \
107 isl_ast_graft_private.h \
108 isl_basis_reduction.h \
109 basis_reduction_tab.c \
119 isl_constraint_private.h \
128 isl_factorization.c \
129 isl_factorization.h \
136 isl_id_to_ast_expr.c \
143 isl_local_private.h \
146 isl_local_space_private.h \
155 isl_map_to_basic_set.c \
164 isl_options_private.h \
166 isl_output_private.h \
167 isl_point_private.h \
169 isl_polynomial_private.h \
171 isl_printer_private.h \
183 isl_schedule_band.c \
184 isl_schedule_band.h \
185 isl_schedule_node.c \
186 isl_schedule_node_private.h \
187 isl_schedule_read.c \
188 isl_schedule_tree.c \
189 isl_schedule_tree.h \
190 isl_schedule_private.h \
191 isl_schedule_constraints.c \
192 isl_schedule_constraints.h \
198 isl_space_private.h \
200 isl_stream_private.h \
209 isl_transitive_closure.c \
211 isl_union_map_private.h \
212 isl_union_set_private.h \
218 isl_vertices_private.h \
221 libisl_la_LIBADD = @MP_LIBS@
222 libisl_la_LDFLAGS = -version-info @versioninfo@ \
225 isl_test_LDFLAGS = @MP_LDFLAGS@
226 isl_test_LDADD = libisl.la @MP_LIBS@
228 isl_test_int_LDFLAGS = @MP_LDFLAGS@
229 isl_test_int_LDADD = libisl.la @MP_LIBS@
232 isl_test_imath_LDFLAGS = @MP_LDFLAGS@
233 isl_test_imath_LDADD = libisl.la @MP_LIBS@
236 isl_polyhedron_sample_LDADD = libisl.la
237 isl_polyhedron_sample_SOURCES = \
240 isl_pip_LDFLAGS = @MP_LDFLAGS@
241 isl_pip_LDADD = libisl.la @MP_LIBS@
245 isl_schedule_LDFLAGS = @MP_LDFLAGS@
246 isl_schedule_LDADD = libisl.la @MP_LIBS@
247 isl_schedule_SOURCES = \
250 isl_schedule_cmp_LDFLAGS = @MP_LDFLAGS@
251 isl_schedule_cmp_LDADD = libisl.la @MP_LIBS@
252 isl_schedule_cmp_SOURCES = \
255 isl_flow_LDFLAGS = @MP_LDFLAGS@
256 isl_flow_LDADD = libisl.la @MP_LIBS@
260 isl_flow_cmp_LDFLAGS = @MP_LDFLAGS@
261 isl_flow_cmp_LDADD = libisl.la @MP_LIBS@
262 isl_flow_cmp_SOURCES = \
265 isl_codegen_LDFLAGS = @MP_LDFLAGS@
266 isl_codegen_LDADD = libisl.la @MP_LIBS@
267 isl_codegen_SOURCES = \
270 isl_bound_LDFLAGS = @MP_LDFLAGS@
271 isl_bound_LDADD = libisl.la @MP_LIBS@
272 isl_bound_SOURCES = \
275 isl_polyhedron_minimize_LDFLAGS = @MP_LDFLAGS@
276 isl_polyhedron_minimize_LDADD = libisl.la @MP_LIBS@
277 isl_polyhedron_minimize_SOURCES = \
278 polyhedron_minimize.c
280 isl_polytope_scan_LDADD = libisl.la
281 isl_polytope_scan_SOURCES = \
284 isl_polyhedron_detect_equalities_LDADD = libisl.la
285 isl_polyhedron_detect_equalities_SOURCES = \
286 polyhedron_detect_equalities.c
288 isl_cat_LDADD = libisl.la
292 isl_closure_LDADD = libisl.la
293 isl_closure_SOURCES = \
296 isl_test_cpp_CXXFLAGS = @CXX11FLAGS@
297 isl_test_cpp_SOURCES = \
300 isl_test_cpp_LDFLAGS = @MP_LDFLAGS@
301 isl_test_cpp_LDADD = libisl.la @MP_LIBS@
303 isl_test_cpp_checked_CXXFLAGS = @CXX11FLAGS@
304 isl_test_cpp_checked_SOURCES = \
305 isl_test_cpp-checked.cc \
306 include/isl/cpp-checked.h
307 isl_test_cpp_checked_LDFLAGS = @MP_LDFLAGS@
308 isl_test_cpp_checked_LDADD = libisl.la @MP_LIBS@
310 isl_test_cpp_checked_conversion_CXXFLAGS = @CXX11FLAGS@
311 isl_test_cpp_checked_conversion_SOURCES = \
312 isl_test_cpp-checked-conversion.cc \
313 include/isl/cpp-checked-conversion.h
314 isl_test_cpp_checked_conversion_LDFLAGS = @MP_LDFLAGS@
315 isl_test_cpp_checked_conversion_LDADD = libisl.la @MP_LIBS@
317 # dummy library that captures the dependencies on all headers
318 # that are relevant for the bindings
319 noinst_LIBRARIES = libdep.a
320 libdep_a_SOURCES = dep.c
323 interface/isldlname.py: libisl.la
324 $(AM_V_GEN) $(GREP) dlname $< | $(SED) -e 's/dlname/isl_dlname/' > $@
325 interface/isl.py: interface/extract_interface libdep.a python/isl.py.top \
326 interface/isldlname.py
327 (cat interface/isldlname.py $(srcdir)/python/isl.py.top && \
328 interface/extract_interface$(EXEEXT) --language=python \
329 $(includes) $(srcdir)/all.h) \
330 > $@ || (rm $@ && false)
332 include/isl/cpp.h: interface/extract_interface libdep.a \
333 cpp/cpp.h.top cpp/cpp.h.pre cpp/cpp.h.bot
334 $(MKDIR_P) "include/isl/cpp" && \
335 (cat $(srcdir)/cpp/cpp.h.top $(srcdir)/all.h \
336 $(srcdir)/cpp/cpp.h.pre && \
337 interface/extract_interface$(EXEEXT) --language=cpp \
338 $(includes) $(srcdir)/all.h && \
339 cat $(srcdir)/cpp/cpp.h.bot) \
340 > $@ || (rm $@ && false)
342 include/isl/cpp-checked.h: interface/extract_interface libdep.a \
343 cpp/cpp-checked.h.top \
344 cpp/cpp-checked.h.pre cpp/cpp-checked.h.bot
345 (cat $(srcdir)/cpp/cpp-checked.h.top $(srcdir)/all.h \
346 $(srcdir)/cpp/cpp-checked.h.pre && \
347 interface/extract_interface$(EXEEXT) \
348 --language=cpp-checked \
349 $(includes) $(srcdir)/all.h && \
350 cat $(srcdir)/cpp/cpp-checked.h.bot) \
351 > $@ || (rm $@ && false)
353 include/isl/cpp-checked-conversion.h: interface/extract_interface libdep.a \
354 cpp/cpp-checked-conversion.h.top \
355 cpp/cpp-checked-conversion.h.bot
356 (cat $(srcdir)/cpp/cpp-checked-conversion.h.top && \
357 interface/extract_interface$(EXEEXT) \
358 --language=cpp-checked-conversion \
359 $(includes) $(srcdir)/all.h && \
360 cat $(srcdir)/cpp/cpp-checked-conversion.h.bot) \
361 > $@ || (rm $@ && false)
364 nodist_pkginclude_HEADERS = \
366 pkginclude_HEADERS = \
370 include/isl/aff_type.h \
373 include/isl/ast_type.h \
374 include/isl/ast_build.h \
375 include/isl/constraint.h \
377 include/isl/fixed_box.h \
380 include/isl/id_type.h \
381 include/isl/id_to_ast_expr.h \
382 include/isl/id_to_id.h \
383 include/isl/id_to_pw_aff.h \
387 include/isl/hmap_templ.c \
389 include/isl/local_space.h \
393 include/isl/map_to_basic_set.h \
394 include/isl/map_type.h \
395 include/isl/maybe.h \
396 include/isl/maybe_ast_expr.h \
397 include/isl/maybe_basic_set.h \
398 include/isl/maybe_id.h \
399 include/isl/maybe_pw_aff.h \
400 include/isl/maybe_templ.h \
401 include/isl/multi.h \
403 include/isl/options.h \
404 include/isl/point.h \
405 include/isl/polynomial.h \
406 include/isl/polynomial_type.h \
407 include/isl/printer.h \
408 include/isl/printer_type.h \
409 include/isl/schedule.h \
410 include/isl/schedule_node.h \
411 include/isl/schedule_type.h \
413 include/isl/set_type.h \
414 include/isl/space.h \
415 include/isl/space_type.h \
416 include/isl/stream.h \
417 include/isl/stride_info.h \
418 include/isl/union_map.h \
419 include/isl/union_map_type.h \
420 include/isl/union_set.h \
421 include/isl/union_set_type.h \
423 include/isl/val_type.h \
425 include/isl/version.h \
426 include/isl/vertices.h
431 include/isl/cpp-checked.h \
432 include/isl/cpp-checked-conversion.h
434 BUILT_SOURCES = gitversion.h $(CPP_INTERFACES)
437 interface/isldlname.py \
452 basis_reduction_templ.c \
453 isl_bind_domain_templ.c \
456 check_reparse_templ.c \
457 check_type_range_templ.c \
458 isl_domain_factor_templ.c \
460 has_single_reference_templ.c \
464 isl_map_lexopt_templ.c \
467 isl_multi_bind_templ.c \
468 isl_multi_explicit_domain.c \
469 isl_multi_pw_aff_explicit_domain.c \
470 isl_multi_union_pw_aff_explicit_domain.c \
471 isl_multi_no_explicit_domain.c \
472 isl_multi_no_domain_templ.c \
475 isl_multi_align_templ.c \
476 isl_multi_align_set.c \
477 isl_multi_align_union_set.c \
478 isl_multi_apply_templ.c \
479 isl_multi_apply_set.c \
480 isl_multi_apply_union_set.c \
481 isl_multi_arith_templ.c \
482 isl_multi_bind_domain_templ.c \
484 isl_multi_coalesce.c \
485 isl_multi_dim_id_templ.c \
487 isl_multi_domain_templ.c \
489 isl_multi_from_base_templ.c \
492 isl_multi_intersect.c \
493 isl_multi_identity_templ.c \
494 isl_multi_locals_templ.c \
495 isl_multi_move_dims_templ.c \
496 isl_multi_nan_templ.c \
497 isl_multi_param_templ.c \
498 isl_multi_product_templ.c \
499 isl_multi_read_no_explicit_domain_templ.c \
500 isl_multi_splice_templ.c \
501 isl_multi_tuple_id_templ.c \
502 isl_multi_zero_templ.c \
505 print_yaml_field_templ.c \
510 isl_pw_bind_domain_templ.c \
514 read_in_string_templ.c \
517 set_list_from_map_list_inl.c \
518 isl_tab_lexopt_templ.c \
519 isl_test_list_templ.c \
530 doc/SubmittingPatches \
531 doc/implementation.tex \
546 isl_test_cpp-generic.cc \
551 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
552 (cd doc; make manual.pdf)
553 cp doc/manual.pdf $(distdir)/doc/
555 pkgconfigdir=$(pkgconfig_libdir)
556 pkgconfig_DATA = $(pkgconfig_libfile)
558 gitversion.h: @GIT_HEAD@
559 $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@
561 install-data-local: $(srcdir)/libisl-gdb.py
562 @libisl=`sed -ne "/^library_names=/{s/.*='//;s/'$$//;s/ .*//;p;}" \
563 $(builddir)/libisl.la`; \
565 '') echo Cannot find isl library name. GDB bindings not installed.;; \
566 *) echo $(INSTALL_DATA) $(srcdir)/libisl-gdb.py \
567 $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
568 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"; \
569 $(INSTALL_DATA) $(srcdir)/libisl-gdb.py \
570 $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
574 @libisl=`sed -ne "/^library_names=/{s/.*='//;s/'$$//;s/ .*//;p;}" \
575 $(builddir)/libisl.la`; \
576 if test -n "$${libisl}"; then \
577 rm -f $(DESTDIR)$(libdir)/$$libisl-gdb.py; \