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 isl_test_python.py: interface/isl.py libisl.la
39 AM_TESTS_ENVIRONMENT = \
40 export PYTHONPATH=interface; \
41 export LD_LIBRARY_PATH=.libs;
42 PY_LOG_COMPILER = $(PYTHON)
50 imath_wrap/gmp_compat.h \
54 imath_wrap/gmp_compat.c \
58 noinst_PROGRAMS += isl_test_imath
59 TESTS += isl_test_imath
62 MP_SRC += isl_int_sioimath.h \
66 MP_SRC += isl_val_imath.c
73 if NEED_GET_MEMORY_FUNCTIONS
74 GET_MEMORY_FUNCTIONS=mp_get_memory_functions.c
78 $(GET_MEMORY_FUNCTIONS) \
83 MP_INCLUDE_H = include/isl/val_gmp.h
86 includes = -I. -I$(srcdir) -I$(srcdir)/include -Iinclude/
87 AM_CPPFLAGS = $(includes) @MP_CPPFLAGS@
88 AM_CFLAGS = @WARNING_FLAGS@ @MP_CFLAGS@
100 isl_ast_build_private.h \
101 isl_ast_build_expr.c \
102 isl_ast_build_expr.h \
105 isl_ast_graft_private.h \
106 isl_basis_reduction.h \
107 basis_reduction_tab.c \
117 isl_constraint_private.h \
126 isl_factorization.c \
127 isl_factorization.h \
134 isl_id_to_ast_expr.c \
141 isl_local_private.h \
144 isl_local_space_private.h \
153 isl_map_to_basic_set.c \
162 isl_options_private.h \
164 isl_output_private.h \
165 isl_point_private.h \
167 isl_polynomial_private.h \
169 isl_printer_private.h \
181 isl_schedule_band.c \
182 isl_schedule_band.h \
183 isl_schedule_node.c \
184 isl_schedule_node_private.h \
185 isl_schedule_read.c \
186 isl_schedule_tree.c \
187 isl_schedule_tree.h \
188 isl_schedule_private.h \
189 isl_schedule_constraints.c \
190 isl_schedule_constraints.h \
196 isl_space_private.h \
198 isl_stream_private.h \
207 isl_transitive_closure.c \
209 isl_union_map_private.h \
210 isl_union_set_private.h \
216 isl_vertices_private.h \
219 libisl_la_LIBADD = @MP_LIBS@
220 libisl_la_LDFLAGS = -version-info @versioninfo@ \
223 isl_test_LDFLAGS = @MP_LDFLAGS@
224 isl_test_LDADD = libisl.la @MP_LIBS@
226 isl_test_int_LDFLAGS = @MP_LDFLAGS@
227 isl_test_int_LDADD = libisl.la @MP_LIBS@
230 isl_test_imath_LDFLAGS = @MP_LDFLAGS@
231 isl_test_imath_LDADD = libisl.la @MP_LIBS@
234 isl_polyhedron_sample_LDADD = libisl.la
235 isl_polyhedron_sample_SOURCES = \
238 isl_pip_LDFLAGS = @MP_LDFLAGS@
239 isl_pip_LDADD = libisl.la @MP_LIBS@
243 isl_schedule_LDFLAGS = @MP_LDFLAGS@
244 isl_schedule_LDADD = libisl.la @MP_LIBS@
245 isl_schedule_SOURCES = \
248 isl_schedule_cmp_LDFLAGS = @MP_LDFLAGS@
249 isl_schedule_cmp_LDADD = libisl.la @MP_LIBS@
250 isl_schedule_cmp_SOURCES = \
253 isl_flow_LDFLAGS = @MP_LDFLAGS@
254 isl_flow_LDADD = libisl.la @MP_LIBS@
258 isl_flow_cmp_LDFLAGS = @MP_LDFLAGS@
259 isl_flow_cmp_LDADD = libisl.la @MP_LIBS@
260 isl_flow_cmp_SOURCES = \
263 isl_codegen_LDFLAGS = @MP_LDFLAGS@
264 isl_codegen_LDADD = libisl.la @MP_LIBS@
265 isl_codegen_SOURCES = \
268 isl_bound_LDFLAGS = @MP_LDFLAGS@
269 isl_bound_LDADD = libisl.la @MP_LIBS@
270 isl_bound_SOURCES = \
273 isl_polyhedron_minimize_LDFLAGS = @MP_LDFLAGS@
274 isl_polyhedron_minimize_LDADD = libisl.la @MP_LIBS@
275 isl_polyhedron_minimize_SOURCES = \
276 polyhedron_minimize.c
278 isl_polytope_scan_LDADD = libisl.la
279 isl_polytope_scan_SOURCES = \
282 isl_polyhedron_detect_equalities_LDADD = libisl.la
283 isl_polyhedron_detect_equalities_SOURCES = \
284 polyhedron_detect_equalities.c
286 isl_cat_LDADD = libisl.la
290 isl_closure_LDADD = libisl.la
291 isl_closure_SOURCES = \
294 isl_test_cpp_CXXFLAGS = @CXX11FLAGS@
295 isl_test_cpp_SOURCES = \
298 isl_test_cpp_LDFLAGS = @MP_LDFLAGS@
299 isl_test_cpp_LDADD = libisl.la @MP_LIBS@
301 isl_test_cpp_checked_CXXFLAGS = @CXX11FLAGS@
302 isl_test_cpp_checked_SOURCES = \
303 isl_test_cpp-checked.cc \
304 include/isl/cpp-checked.h
305 isl_test_cpp_checked_LDFLAGS = @MP_LDFLAGS@
306 isl_test_cpp_checked_LDADD = libisl.la @MP_LIBS@
308 isl_test_cpp_checked_conversion_CXXFLAGS = @CXX11FLAGS@
309 isl_test_cpp_checked_conversion_SOURCES = \
310 isl_test_cpp-checked-conversion.cc \
311 include/isl/cpp-checked-conversion.h
312 isl_test_cpp_checked_conversion_LDFLAGS = @MP_LDFLAGS@
313 isl_test_cpp_checked_conversion_LDADD = libisl.la @MP_LIBS@
315 # dummy library that captures the dependencies on all headers
316 # that are relevant for the bindings
317 noinst_LIBRARIES = libdep.a
318 libdep_a_SOURCES = all.c
321 interface/isl.py: interface/extract_interface libdep.a python/isl.py.top
322 (cat $(srcdir)/python/isl.py.top && \
323 interface/extract_interface$(EXEEXT) --language=python \
324 $(includes) $(srcdir)/all.h) \
325 > $@ || (rm $@ && false)
327 include/isl/cpp.h: interface/extract_interface libdep.a \
328 cpp/cpp.h.top cpp/cpp.h.pre cpp/cpp.h.bot
329 $(MKDIR_P) "include/isl/cpp" && \
330 (cat $(srcdir)/cpp/cpp.h.top $(srcdir)/all.h \
331 $(srcdir)/cpp/cpp.h.pre && \
332 interface/extract_interface$(EXEEXT) --language=cpp \
333 $(includes) $(srcdir)/all.h && \
334 cat $(srcdir)/cpp/cpp.h.bot) \
335 > $@ || (rm $@ && false)
337 include/isl/cpp-checked.h: interface/extract_interface libdep.a \
338 cpp/cpp-checked.h.top \
339 cpp/cpp-checked.h.pre cpp/cpp-checked.h.bot
340 (cat $(srcdir)/cpp/cpp-checked.h.top $(srcdir)/all.h \
341 $(srcdir)/cpp/cpp-checked.h.pre && \
342 interface/extract_interface$(EXEEXT) \
343 --language=cpp-checked \
344 $(includes) $(srcdir)/all.h && \
345 cat $(srcdir)/cpp/cpp-checked.h.bot) \
346 > $@ || (rm $@ && false)
348 include/isl/cpp-checked-conversion.h: interface/extract_interface libdep.a \
349 cpp/cpp-checked-conversion.h.top \
350 cpp/cpp-checked-conversion.h.bot
351 (cat $(srcdir)/cpp/cpp-checked-conversion.h.top && \
352 interface/extract_interface$(EXEEXT) \
353 --language=cpp-checked-conversion \
354 $(includes) $(srcdir)/all.h && \
355 cat $(srcdir)/cpp/cpp-checked-conversion.h.bot) \
356 > $@ || (rm $@ && false)
359 nodist_pkginclude_HEADERS = \
361 pkginclude_HEADERS = \
365 include/isl/aff_type.h \
368 include/isl/ast_type.h \
369 include/isl/ast_build.h \
370 include/isl/constraint.h \
372 include/isl/fixed_box.h \
375 include/isl/id_type.h \
376 include/isl/id_to_ast_expr.h \
377 include/isl/id_to_id.h \
378 include/isl/id_to_pw_aff.h \
382 include/isl/hmap_templ.c \
384 include/isl/local_space.h \
388 include/isl/map_to_basic_set.h \
389 include/isl/map_type.h \
390 include/isl/maybe.h \
391 include/isl/maybe_ast_expr.h \
392 include/isl/maybe_basic_set.h \
393 include/isl/maybe_id.h \
394 include/isl/maybe_pw_aff.h \
395 include/isl/maybe_templ.h \
396 include/isl/multi.h \
398 include/isl/options.h \
399 include/isl/point.h \
400 include/isl/polynomial.h \
401 include/isl/polynomial_type.h \
402 include/isl/printer.h \
403 include/isl/printer_type.h \
404 include/isl/schedule.h \
405 include/isl/schedule_node.h \
406 include/isl/schedule_type.h \
408 include/isl/set_type.h \
409 include/isl/space.h \
410 include/isl/space_type.h \
411 include/isl/stream.h \
412 include/isl/stride_info.h \
413 include/isl/union_map.h \
414 include/isl/union_map_type.h \
415 include/isl/union_set.h \
416 include/isl/union_set_type.h \
418 include/isl/val_type.h \
420 include/isl/version.h \
421 include/isl/vertices.h
426 include/isl/cpp-checked.h \
427 include/isl/cpp-checked-conversion.h
429 BUILT_SOURCES = gitversion.h $(CPP_INTERFACES)
430 CLEANFILES = gitversion.h interface/isl.py $(CPP_INTERFACES)
442 basis_reduction_templ.c \
445 check_type_range_templ.c \
449 isl_map_lexopt_templ.c \
452 isl_multi_explicit_domain.c \
453 isl_multi_pw_aff_explicit_domain.c \
454 isl_multi_union_pw_aff_explicit_domain.c \
455 isl_multi_no_explicit_domain.c \
458 isl_multi_align_templ.c \
459 isl_multi_align_set.c \
460 isl_multi_align_union_set.c \
461 isl_multi_apply_templ.c \
462 isl_multi_apply_set.c \
463 isl_multi_apply_union_set.c \
465 isl_multi_coalesce.c \
467 isl_multi_domain_templ.c \
469 isl_multi_from_base_templ.c \
472 isl_multi_intersect.c \
473 isl_multi_identity_templ.c \
474 isl_multi_move_dims_templ.c \
475 isl_multi_product_templ.c \
476 isl_multi_splice_templ.c \
477 isl_multi_zero_templ.c \
487 read_in_string_templ.c \
490 set_list_from_map_list_inl.c \
491 isl_tab_lexopt_templ.c \
492 isl_test_list_templ.c \
503 doc/SubmittingPatches \
504 doc/implementation.tex \
519 isl_test_cpp-generic.cc \
524 dist-hook: interface/isl.py
525 cp interface/isl.py $(distdir)/interface/
529 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
530 (cd doc; make manual.pdf)
531 cp doc/manual.pdf $(distdir)/doc/
533 pkgconfigdir=$(pkgconfig_libdir)
534 pkgconfig_DATA = $(pkgconfig_libfile)
536 gitversion.h: @GIT_HEAD@
537 $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@
539 install-data-local: $(srcdir)/libisl-gdb.py
540 @libisl=`sed -ne "/^library_names=/{s/.*='//;s/'$$//;s/ .*//;p;}" \
541 $(builddir)/libisl.la`; \
543 '') echo Cannot find isl library name. GDB bindings not installed.;; \
544 *) echo $(INSTALL_DATA) $(srcdir)/libisl-gdb.py \
545 $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
546 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"; \
547 $(INSTALL_DATA) $(srcdir)/libisl-gdb.py \
548 $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
552 @libisl=`sed -ne "/^library_names=/{s/.*='//;s/'$$//;s/ .*//;p;}" \
553 $(builddir)/libisl.la`; \
554 if test -n "$${libisl}"; then \
555 rm -f $(DESTDIR)$(libdir)/$$libisl-gdb.py; \