Home | History | Annotate | Line # | Download | only in dist
Makefile.am revision 1.1
      1  1.1  mrg if HAVE_CLANG
      2  1.1  mrg if HAVE_CXX11
      3  1.1  mrg MAYBE_INTERFACE = interface
      4  1.1  mrg FORCE:
      5  1.1  mrg interface/extract_interface$(BUILD_EXEEXT): FORCE
      6  1.1  mrg 	$(MAKE) $(AM_MAKEFLAGS) -C interface extract_interface$(BUILD_EXEEXT)
      7  1.1  mrg endif
      8  1.1  mrg endif
      9  1.1  mrg SUBDIRS = . $(MAYBE_INTERFACE) doc
     10  1.1  mrg DIST_SUBDIRS = $(MAYBE_INTERFACE) doc
     11  1.1  mrg 
     12  1.1  mrg ACLOCAL_AMFLAGS = -I m4
     13  1.1  mrg AUTOMAKE_OPTIONS = nostdinc subdir-objects
     14  1.1  mrg 
     15  1.1  mrg lib_LTLIBRARIES = libisl.la
     16  1.1  mrg noinst_PROGRAMS = isl_test isl_polyhedron_sample isl_pip \
     17  1.1  mrg 	isl_polyhedron_minimize isl_polytope_scan \
     18  1.1  mrg 	isl_polyhedron_detect_equalities \
     19  1.1  mrg 	isl_polyhedron_remove_redundant_equalities isl_cat \
     20  1.1  mrg 	isl_closure isl_bound isl_schedule isl_codegen isl_test_int \
     21  1.1  mrg 	isl_flow isl_flow_cmp isl_schedule_cmp
     22  1.1  mrg TESTS = isl_test codegen_test.sh pip_test.sh bound_test.sh isl_test_int \
     23  1.1  mrg 	flow_test.sh schedule_test.sh
     24  1.1  mrg if HAVE_CPP_ISL_H
     25  1.1  mrg   CPP_H = include/isl/cpp.h include/isl/typed_cpp.h
     26  1.1  mrg if HAVE_CXX11
     27  1.1  mrg   noinst_PROGRAMS += isl_test2 isl_test_cpp
     28  1.1  mrg   TESTS += isl_test2 isl_test_cpp isl_test_cpp_failed.sh
     29  1.1  mrg endif
     30  1.1  mrg if HAVE_CXX17
     31  1.1  mrg   noinst_PROGRAMS += isl_test_cpp17 isl_test_cpp17-checked
     32  1.1  mrg   TESTS += isl_test_cpp17 isl_test_cpp17-checked
     33  1.1  mrg endif
     34  1.1  mrg endif
     35  1.1  mrg if HAVE_CLANG
     36  1.1  mrg if HAVE_CXX11
     37  1.1  mrg   noinst_PROGRAMS += isl_test_cpp-checked isl_test_cpp-checked-conversion
     38  1.1  mrg   TESTS += isl_test_cpp-checked isl_test_cpp-checked-conversion
     39  1.1  mrg if HAVE_PYTHON
     40  1.1  mrg   TESTS += isl_test_python.py
     41  1.1  mrg   noinst_PYTHON = interface/isl.py
     42  1.1  mrg   isl_test_python.py: interface/isl.py libisl.la
     43  1.1  mrg endif
     44  1.1  mrg endif
     45  1.1  mrg endif
     46  1.1  mrg TEST_EXTENSIONS = .py
     47  1.1  mrg AM_TESTS_ENVIRONMENT = \
     48  1.1  mrg 	export PYTHONPATH=interface; \
     49  1.1  mrg 	export ISL_DYLD_LIBRARY_PATH=.libs; \
     50  1.1  mrg 	export LD_LIBRARY_PATH=".libs:$(LD_LIBRARY_PATH)";
     51  1.1  mrg PY_LOG_COMPILER = $(PYTHON)
     52  1.1  mrg 
     53  1.1  mrg if IMATH_FOR_MP
     54  1.1  mrg 
     55  1.1  mrg MP_SRC = \
     56  1.1  mrg 	isl_imath.c \
     57  1.1  mrg 	isl_imath.h \
     58  1.1  mrg 	isl_int_imath.h \
     59  1.1  mrg 	imath_wrap/gmp_compat.h \
     60  1.1  mrg 	imath_wrap/imath.h \
     61  1.1  mrg 	imath_wrap/imrat.h \
     62  1.1  mrg 	imath_wrap/wrap.h \
     63  1.1  mrg 	imath_wrap/gmp_compat.c \
     64  1.1  mrg 	imath_wrap/imath.c \
     65  1.1  mrg 	imath_wrap/imrat.c
     66  1.1  mrg 
     67  1.1  mrg noinst_PROGRAMS += isl_test_imath
     68  1.1  mrg TESTS += isl_test_imath
     69  1.1  mrg 
     70  1.1  mrg if SMALL_INT_OPT
     71  1.1  mrg MP_SRC += isl_int_sioimath.h \
     72  1.1  mrg 	isl_int_sioimath.c \
     73  1.1  mrg 	isl_val_sioimath.c
     74  1.1  mrg else
     75  1.1  mrg MP_SRC += isl_val_imath.c
     76  1.1  mrg endif
     77  1.1  mrg 
     78  1.1  mrg MP_INCLUDE_H =
     79  1.1  mrg endif
     80  1.1  mrg 
     81  1.1  mrg if GMP_FOR_MP
     82  1.1  mrg if NEED_GET_MEMORY_FUNCTIONS
     83  1.1  mrg GET_MEMORY_FUNCTIONS=mp_get_memory_functions.c
     84  1.1  mrg endif
     85  1.1  mrg 
     86  1.1  mrg MP_SRC = \
     87  1.1  mrg 	$(GET_MEMORY_FUNCTIONS) \
     88  1.1  mrg 	isl_int_gmp.h \
     89  1.1  mrg 	isl_gmp.c \
     90  1.1  mrg 	isl_val_gmp.c
     91  1.1  mrg 
     92  1.1  mrg MP_INCLUDE_H = include/isl/val_gmp.h
     93  1.1  mrg endif
     94  1.1  mrg 
     95  1.1  mrg includes = -I. -I$(srcdir) -I$(srcdir)/include -Iinclude/
     96  1.1  mrg AM_CPPFLAGS = $(includes) @MP_CPPFLAGS@
     97  1.1  mrg AM_CFLAGS = @WARNING_FLAGS@ @MP_CFLAGS@
     98  1.1  mrg 
     99  1.1  mrg libisl_la_SOURCES = \
    100  1.1  mrg 	$(MP_SRC) \
    101  1.1  mrg 	isl_aff.c \
    102  1.1  mrg 	isl_aff_map.c \
    103  1.1  mrg 	isl_aff_private.h \
    104  1.1  mrg 	isl_affine_hull.c \
    105  1.1  mrg 	isl_arg.c \
    106  1.1  mrg 	isl_ast.c \
    107  1.1  mrg 	isl_ast_private.h \
    108  1.1  mrg 	isl_ast_build.c \
    109  1.1  mrg 	isl_ast_build_private.h \
    110  1.1  mrg 	isl_ast_build_expr.c \
    111  1.1  mrg 	isl_ast_build_expr.h \
    112  1.1  mrg 	isl_ast_codegen.c \
    113  1.1  mrg 	isl_ast_graft.c \
    114  1.1  mrg 	isl_ast_graft_private.h \
    115  1.1  mrg 	isl_basis_reduction.h \
    116  1.1  mrg 	basis_reduction_tab.c \
    117  1.1  mrg 	isl_bernstein.c \
    118  1.1  mrg 	isl_bernstein.h \
    119  1.1  mrg 	isl_blk.c \
    120  1.1  mrg 	isl_blk.h \
    121  1.1  mrg 	isl_bound.c \
    122  1.1  mrg 	isl_bound.h \
    123  1.1  mrg 	isl_box.c \
    124  1.1  mrg 	isl_coalesce.c \
    125  1.1  mrg 	isl_constraint.c \
    126  1.1  mrg 	isl_constraint_private.h \
    127  1.1  mrg 	isl_convex_hull.c \
    128  1.1  mrg 	isl_ctx.c \
    129  1.1  mrg 	isl_ctx_private.h \
    130  1.1  mrg 	isl_deprecated.c \
    131  1.1  mrg 	isl_dim_map.h \
    132  1.1  mrg 	isl_dim_map.c \
    133  1.1  mrg 	isl_equalities.c \
    134  1.1  mrg 	isl_equalities.h \
    135  1.1  mrg 	isl_factorization.c \
    136  1.1  mrg 	isl_factorization.h \
    137  1.1  mrg 	isl_farkas.c \
    138  1.1  mrg 	isl_ffs.c \
    139  1.1  mrg 	isl_flow.c \
    140  1.1  mrg 	isl_fold.c \
    141  1.1  mrg 	isl_hash.c \
    142  1.1  mrg 	isl_hash_private.h \
    143  1.1  mrg 	isl_id_to_ast_expr.c \
    144  1.1  mrg 	isl_id_to_id.c \
    145  1.1  mrg 	isl_id_to_pw_aff.c \
    146  1.1  mrg 	isl_ilp.c \
    147  1.1  mrg 	isl_ilp_private.h \
    148  1.1  mrg 	isl_input.c \
    149  1.1  mrg 	isl_int.h \
    150  1.1  mrg 	isl_list_private.h \
    151  1.1  mrg 	isl_local_private.h \
    152  1.1  mrg 	isl_local.h \
    153  1.1  mrg 	isl_local.c \
    154  1.1  mrg 	isl_local_space_private.h \
    155  1.1  mrg 	isl_local_space.c \
    156  1.1  mrg 	isl_lp.c \
    157  1.1  mrg 	isl_lp_private.h \
    158  1.1  mrg 	isl_map.c \
    159  1.1  mrg 	isl_map_list.c \
    160  1.1  mrg 	isl_map_simplify.c \
    161  1.1  mrg 	isl_map_subtract.c \
    162  1.1  mrg 	isl_map_private.h \
    163  1.1  mrg 	isl_map_to_basic_set.c \
    164  1.1  mrg 	isl_mat.c \
    165  1.1  mrg 	isl_mat_private.h \
    166  1.1  mrg 	isl_morph.c \
    167  1.1  mrg 	isl_morph.h \
    168  1.1  mrg 	isl_id.c \
    169  1.1  mrg 	isl_id_private.h \
    170  1.1  mrg 	isl_obj.c \
    171  1.1  mrg 	isl_options.c \
    172  1.1  mrg 	isl_options_private.h \
    173  1.1  mrg 	isl_output.c \
    174  1.1  mrg 	isl_output_private.h \
    175  1.1  mrg 	isl_point_private.h \
    176  1.1  mrg 	isl_point.c \
    177  1.1  mrg 	isl_polynomial_private.h \
    178  1.1  mrg 	isl_polynomial.c \
    179  1.1  mrg 	isl_printer_private.h \
    180  1.1  mrg 	isl_printer.c \
    181  1.1  mrg 	print.c \
    182  1.1  mrg 	isl_range.c \
    183  1.1  mrg 	isl_range.h \
    184  1.1  mrg 	isl_reordering.c \
    185  1.1  mrg 	isl_reordering.h \
    186  1.1  mrg 	isl_sample.h \
    187  1.1  mrg 	isl_sample.c \
    188  1.1  mrg 	isl_scan.c \
    189  1.1  mrg 	isl_scan.h \
    190  1.1  mrg 	isl_schedule.c \
    191  1.1  mrg 	isl_schedule_band.c \
    192  1.1  mrg 	isl_schedule_band.h \
    193  1.1  mrg 	isl_schedule_node.c \
    194  1.1  mrg 	isl_schedule_node_private.h \
    195  1.1  mrg 	isl_schedule_read.c \
    196  1.1  mrg 	isl_schedule_tree.c \
    197  1.1  mrg 	isl_schedule_tree.h \
    198  1.1  mrg 	isl_schedule_private.h \
    199  1.1  mrg 	isl_schedule_constraints.c \
    200  1.1  mrg 	isl_schedule_constraints.h \
    201  1.1  mrg 	isl_scheduler.c \
    202  1.1  mrg 	isl_scheduler.h \
    203  1.1  mrg 	isl_scheduler_clustering.c \
    204  1.1  mrg 	isl_scheduler_clustering.h \
    205  1.1  mrg 	isl_scheduler_scc.c \
    206  1.1  mrg 	isl_scheduler_scc.h \
    207  1.1  mrg 	isl_set_list.c \
    208  1.1  mrg 	isl_sort.c \
    209  1.1  mrg 	isl_sort.h \
    210  1.1  mrg 	isl_space.c \
    211  1.1  mrg 	isl_space_private.h \
    212  1.1  mrg 	isl_stream.c \
    213  1.1  mrg 	isl_stream_private.h \
    214  1.1  mrg 	isl_seq.c \
    215  1.1  mrg 	isl_seq.h \
    216  1.1  mrg 	isl_set_to_ast_graft_list.c \
    217  1.1  mrg 	isl_set_to_ast_graft_list.h \
    218  1.1  mrg 	isl_stride.c \
    219  1.1  mrg 	isl_tab.c \
    220  1.1  mrg 	isl_tab.h \
    221  1.1  mrg 	isl_tab_pip.c \
    222  1.1  mrg 	isl_tarjan.c \
    223  1.1  mrg 	isl_tarjan.h \
    224  1.1  mrg 	isl_transitive_closure.c \
    225  1.1  mrg 	isl_union_map.c \
    226  1.1  mrg 	isl_union_map_private.h \
    227  1.1  mrg 	isl_union_set_private.h \
    228  1.1  mrg 	isl_val.c \
    229  1.1  mrg 	isl_val_private.h \
    230  1.1  mrg 	isl_vec_private.h \
    231  1.1  mrg 	isl_vec.c \
    232  1.1  mrg 	isl_version.c \
    233  1.1  mrg 	isl_vertices_private.h \
    234  1.1  mrg 	isl_vertices.c \
    235  1.1  mrg 	isl_yaml.h
    236  1.1  mrg libisl_la_LIBADD = @MP_LIBS@
    237  1.1  mrg libisl_la_LDFLAGS = -version-info @versioninfo@ \
    238  1.1  mrg 	@MP_LDFLAGS@
    239  1.1  mrg 
    240  1.1  mrg isl_test_LDFLAGS = @MP_LDFLAGS@
    241  1.1  mrg isl_test_LDADD = libisl.la @MP_LIBS@
    242  1.1  mrg 
    243  1.1  mrg isl_test2_SOURCES = \
    244  1.1  mrg 	isl_test2.cc \
    245  1.1  mrg 	include/isl/cpp.h
    246  1.1  mrg isl_test2_LDFLAGS = @MP_LDFLAGS@
    247  1.1  mrg isl_test2_LDADD = libisl.la @MP_LIBS@
    248  1.1  mrg 
    249  1.1  mrg isl_test_int_LDFLAGS = @MP_LDFLAGS@
    250  1.1  mrg isl_test_int_LDADD = libisl.la @MP_LIBS@
    251  1.1  mrg 
    252  1.1  mrg if IMATH_FOR_MP
    253  1.1  mrg isl_test_imath_LDFLAGS = @MP_LDFLAGS@
    254  1.1  mrg isl_test_imath_LDADD = libisl.la @MP_LIBS@
    255  1.1  mrg endif
    256  1.1  mrg 
    257  1.1  mrg isl_polyhedron_sample_LDADD = libisl.la
    258  1.1  mrg isl_polyhedron_sample_SOURCES = \
    259  1.1  mrg 	polyhedron_sample.c
    260  1.1  mrg 
    261  1.1  mrg isl_pip_LDFLAGS = @MP_LDFLAGS@
    262  1.1  mrg isl_pip_LDADD = libisl.la @MP_LIBS@
    263  1.1  mrg isl_pip_SOURCES = \
    264  1.1  mrg 	pip.c
    265  1.1  mrg 
    266  1.1  mrg isl_schedule_LDFLAGS = @MP_LDFLAGS@
    267  1.1  mrg isl_schedule_LDADD = libisl.la @MP_LIBS@
    268  1.1  mrg isl_schedule_SOURCES = \
    269  1.1  mrg 	schedule.c
    270  1.1  mrg 
    271  1.1  mrg isl_schedule_cmp_LDFLAGS = @MP_LDFLAGS@
    272  1.1  mrg isl_schedule_cmp_LDADD = libisl.la @MP_LIBS@
    273  1.1  mrg isl_schedule_cmp_SOURCES = \
    274  1.1  mrg 	schedule_cmp.c
    275  1.1  mrg 
    276  1.1  mrg isl_flow_LDFLAGS = @MP_LDFLAGS@
    277  1.1  mrg isl_flow_LDADD = libisl.la @MP_LIBS@
    278  1.1  mrg isl_flow_SOURCES = \
    279  1.1  mrg 	flow.c
    280  1.1  mrg 
    281  1.1  mrg isl_flow_cmp_LDFLAGS = @MP_LDFLAGS@
    282  1.1  mrg isl_flow_cmp_LDADD = libisl.la @MP_LIBS@
    283  1.1  mrg isl_flow_cmp_SOURCES = \
    284  1.1  mrg 	flow_cmp.c
    285  1.1  mrg 
    286  1.1  mrg isl_codegen_LDFLAGS = @MP_LDFLAGS@
    287  1.1  mrg isl_codegen_LDADD = libisl.la @MP_LIBS@
    288  1.1  mrg isl_codegen_SOURCES = \
    289  1.1  mrg 	codegen.c
    290  1.1  mrg 
    291  1.1  mrg isl_bound_LDFLAGS = @MP_LDFLAGS@
    292  1.1  mrg isl_bound_LDADD = libisl.la @MP_LIBS@
    293  1.1  mrg isl_bound_SOURCES = \
    294  1.1  mrg 	bound.c
    295  1.1  mrg 
    296  1.1  mrg isl_polyhedron_minimize_LDFLAGS = @MP_LDFLAGS@
    297  1.1  mrg isl_polyhedron_minimize_LDADD = libisl.la @MP_LIBS@
    298  1.1  mrg isl_polyhedron_minimize_SOURCES = \
    299  1.1  mrg 	polyhedron_minimize.c
    300  1.1  mrg 
    301  1.1  mrg isl_polytope_scan_LDADD = libisl.la
    302  1.1  mrg isl_polytope_scan_SOURCES = \
    303  1.1  mrg 	polytope_scan.c
    304  1.1  mrg 
    305  1.1  mrg isl_polyhedron_detect_equalities_LDADD = libisl.la
    306  1.1  mrg isl_polyhedron_detect_equalities_SOURCES = \
    307  1.1  mrg 	polyhedron_detect_equalities.c
    308  1.1  mrg 
    309  1.1  mrg isl_polyhedron_remove_redundant_equalities_LDADD = libisl.la
    310  1.1  mrg isl_polyhedron_remove_redundant_equalities_SOURCES = \
    311  1.1  mrg 	polyhedron_remove_redundant_equalities.c
    312  1.1  mrg 
    313  1.1  mrg isl_cat_LDADD = libisl.la
    314  1.1  mrg isl_cat_SOURCES = \
    315  1.1  mrg 	cat.c
    316  1.1  mrg 
    317  1.1  mrg isl_closure_LDADD = libisl.la
    318  1.1  mrg isl_closure_SOURCES = \
    319  1.1  mrg 	closure.c
    320  1.1  mrg 
    321  1.1  mrg isl_test_cpp_CPPFLAGS = $(AM_CPPFLAGS) -UCOMPILE_ERROR
    322  1.1  mrg isl_test_cpp_SOURCES = \
    323  1.1  mrg 	isl_test_cpp.cc \
    324  1.1  mrg 	include/isl/cpp.h
    325  1.1  mrg isl_test_cpp_LDFLAGS = @MP_LDFLAGS@
    326  1.1  mrg isl_test_cpp_LDADD = libisl.la @MP_LIBS@
    327  1.1  mrg 
    328  1.1  mrg # This program is not meant to be compiled by default.
    329  1.1  mrg # In fact it is meant not to be compilable.
    330  1.1  mrg # It is identical to isl_test_cpp, except that it gets compiled
    331  1.1  mrg # with the COMPILE_ERROR flag set.
    332  1.1  mrg EXTRA_PROGRAMS = isl_test_cpp_failed
    333  1.1  mrg isl_test_cpp_failed_CPPFLAGS = $(AM_CPPFLAGS) -DCOMPILE_ERROR
    334  1.1  mrg isl_test_cpp_failed_SOURCES = \
    335  1.1  mrg 	isl_test_cpp.cc \
    336  1.1  mrg 	include/isl/cpp.h
    337  1.1  mrg isl_test_cpp_failed_LDFLAGS = @MP_LDFLAGS@
    338  1.1  mrg isl_test_cpp_failed_LDADD = libisl.la @MP_LIBS@
    339  1.1  mrg 
    340  1.1  mrg isl_test_cpp17_SOURCES = \
    341  1.1  mrg 	isl_test_cpp17.cc \
    342  1.1  mrg 	include/isl/cpp.h
    343  1.1  mrg isl_test_cpp17_LDFLAGS = @MP_LDFLAGS@
    344  1.1  mrg isl_test_cpp17_LDADD = libisl.la @MP_LIBS@
    345  1.1  mrg 
    346  1.1  mrg isl_test_cpp_checked_SOURCES = \
    347  1.1  mrg 	isl_test_cpp-checked.cc \
    348  1.1  mrg 	include/isl/cpp-checked.h
    349  1.1  mrg isl_test_cpp_checked_LDFLAGS = @MP_LDFLAGS@
    350  1.1  mrg isl_test_cpp_checked_LDADD = libisl.la @MP_LIBS@
    351  1.1  mrg 
    352  1.1  mrg isl_test_cpp17_checked_SOURCES = \
    353  1.1  mrg 	isl_test_cpp17-checked.cc \
    354  1.1  mrg 	include/isl/cpp.h
    355  1.1  mrg isl_test_cpp17_checked_LDFLAGS = @MP_LDFLAGS@
    356  1.1  mrg isl_test_cpp17_checked_LDADD = libisl.la @MP_LIBS@
    357  1.1  mrg 
    358  1.1  mrg isl_test_cpp_checked_conversion_SOURCES = \
    359  1.1  mrg 	isl_test_cpp-checked-conversion.cc \
    360  1.1  mrg 	include/isl/cpp-checked-conversion.h
    361  1.1  mrg isl_test_cpp_checked_conversion_LDFLAGS = @MP_LDFLAGS@
    362  1.1  mrg isl_test_cpp_checked_conversion_LDADD = libisl.la @MP_LIBS@
    363  1.1  mrg 
    364  1.1  mrg # dummy library that captures the dependencies on all headers
    365  1.1  mrg # that are relevant for the bindings
    366  1.1  mrg noinst_LIBRARIES = libdep.a
    367  1.1  mrg libdep_a_SOURCES = dep.c
    368  1.1  mrg 
    369  1.1  mrg if HAVE_CLANG
    370  1.1  mrg if HAVE_CXX11
    371  1.1  mrg interface/isldlname.py: libisl.la
    372  1.1  mrg 	$(AM_V_GEN) $(GREP) dlname $< | $(SED) -e 's/dlname/isl_dlname/' > $@
    373  1.1  mrg interface/isl.py: interface/extract_interface$(BUILD_EXEEXT) libdep.a \
    374  1.1  mrg 		python/isl.py.top interface/isldlname.py
    375  1.1  mrg 	(cat interface/isldlname.py $(srcdir)/python/isl.py.top && \
    376  1.1  mrg 		interface/extract_interface$(BUILD_EXEEXT) --language=python \
    377  1.1  mrg 			$(includes) $(srcdir)/all.h) \
    378  1.1  mrg 			> $@ || (rm $@ && false)
    379  1.1  mrg 
    380  1.1  mrg include/isl/cpp.h: interface/extract_interface$(BUILD_EXEEXT) libdep.a \
    381  1.1  mrg 		cpp/cpp.h.top cpp/cpp.h.bot
    382  1.1  mrg 	$(MKDIR_P) "include/isl" && \
    383  1.1  mrg 	(cat $(srcdir)/cpp/cpp.h.top $(srcdir)/all.h && \
    384  1.1  mrg 		interface/extract_interface$(BUILD_EXEEXT) --language=cpp \
    385  1.1  mrg 			$(includes) $(srcdir)/all.h && \
    386  1.1  mrg 		cat $(srcdir)/cpp/cpp.h.bot) \
    387  1.1  mrg 			> $@ || (rm $@ && false)
    388  1.1  mrg 
    389  1.1  mrg include/isl/cpp-checked.h: interface/extract_interface$(BUILD_EXEEXT) libdep.a \
    390  1.1  mrg 		cpp/cpp-checked.h.top cpp/cpp-checked.h.bot
    391  1.1  mrg 	$(MKDIR_P) "include/isl" && \
    392  1.1  mrg 	(cat $(srcdir)/cpp/cpp-checked.h.top $(srcdir)/all.h && \
    393  1.1  mrg 		interface/extract_interface$(BUILD_EXEEXT) \
    394  1.1  mrg 			--language=cpp-checked \
    395  1.1  mrg 			$(includes) $(srcdir)/all.h && \
    396  1.1  mrg 		cat $(srcdir)/cpp/cpp-checked.h.bot) \
    397  1.1  mrg 			> $@ || (rm $@ && false)
    398  1.1  mrg 
    399  1.1  mrg include/isl/cpp-checked-conversion.h: \
    400  1.1  mrg 		interface/extract_interface$(BUILD_EXEEXT) \
    401  1.1  mrg 		libdep.a \
    402  1.1  mrg 		cpp/cpp-checked-conversion.h.top \
    403  1.1  mrg 		cpp/cpp-checked-conversion.h.bot
    404  1.1  mrg 	$(MKDIR_P) "include/isl" && \
    405  1.1  mrg 	(cat $(srcdir)/cpp/cpp-checked-conversion.h.top && \
    406  1.1  mrg 		interface/extract_interface$(BUILD_EXEEXT) \
    407  1.1  mrg 			--language=cpp-checked-conversion \
    408  1.1  mrg 			$(includes) $(srcdir)/all.h && \
    409  1.1  mrg 		cat $(srcdir)/cpp/cpp-checked-conversion.h.bot) \
    410  1.1  mrg 			> $@ || (rm $@ && false)
    411  1.1  mrg 
    412  1.1  mrg include/isl/typed_cpp.h: interface/extract_interface$(BUILD_EXEEXT) \
    413  1.1  mrg 		libdep.a cpp/typed_cpp.h.top cpp/typed_cpp.h.bot
    414  1.1  mrg 	$(MKDIR_P) "include/isl" && \
    415  1.1  mrg 	(cat $(srcdir)/cpp/typed_cpp.h.top && \
    416  1.1  mrg 		interface/extract_interface$(BUILD_EXEEXT) \
    417  1.1  mrg 			--language=template-cpp \
    418  1.1  mrg 			$(includes) $(srcdir)/all.h && \
    419  1.1  mrg 		cat $(srcdir)/cpp/typed_cpp.h.bot) \
    420  1.1  mrg 			> $@ || (rm $@ && false)
    421  1.1  mrg endif
    422  1.1  mrg endif
    423  1.1  mrg 
    424  1.1  mrg nodist_pkginclude_HEADERS = \
    425  1.1  mrg 	include/isl/stdint.h
    426  1.1  mrg pkginclude_HEADERS = \
    427  1.1  mrg 	$(CPP_H) \
    428  1.1  mrg 	$(MP_INCLUDE_H) \
    429  1.1  mrg 	include/isl/aff.h \
    430  1.1  mrg 	include/isl/aff_type.h \
    431  1.1  mrg 	include/isl/arg.h \
    432  1.1  mrg 	include/isl/ast.h \
    433  1.1  mrg 	include/isl/ast_type.h \
    434  1.1  mrg 	include/isl/ast_build.h \
    435  1.1  mrg 	include/isl/constraint.h \
    436  1.1  mrg 	include/isl/ctx.h \
    437  1.1  mrg 	include/isl/fixed_box.h \
    438  1.1  mrg 	include/isl/flow.h \
    439  1.1  mrg 	include/isl/id.h \
    440  1.1  mrg 	include/isl/id_type.h \
    441  1.1  mrg 	include/isl/id_to_ast_expr.h \
    442  1.1  mrg 	include/isl/id_to_id.h \
    443  1.1  mrg 	include/isl/id_to_pw_aff.h \
    444  1.1  mrg 	include/isl/ilp.h \
    445  1.1  mrg 	include/isl/hash.h \
    446  1.1  mrg 	include/isl/hmap.h \
    447  1.1  mrg 	include/isl/hmap_templ.c \
    448  1.1  mrg 	include/isl/list.h \
    449  1.1  mrg 	include/isl/local_space.h \
    450  1.1  mrg 	include/isl/lp.h \
    451  1.1  mrg 	include/isl/mat.h \
    452  1.1  mrg 	include/isl/map.h \
    453  1.1  mrg 	include/isl/map_to_basic_set.h \
    454  1.1  mrg 	include/isl/map_type.h \
    455  1.1  mrg 	include/isl/maybe.h \
    456  1.1  mrg 	include/isl/maybe_ast_expr.h \
    457  1.1  mrg 	include/isl/maybe_basic_set.h \
    458  1.1  mrg 	include/isl/maybe_id.h \
    459  1.1  mrg 	include/isl/maybe_pw_aff.h \
    460  1.1  mrg 	include/isl/maybe_templ.h \
    461  1.1  mrg 	include/isl/multi.h \
    462  1.1  mrg 	include/isl/obj.h \
    463  1.1  mrg 	include/isl/options.h \
    464  1.1  mrg 	include/isl/point.h \
    465  1.1  mrg 	include/isl/polynomial.h \
    466  1.1  mrg 	include/isl/polynomial_type.h \
    467  1.1  mrg 	include/isl/printer.h \
    468  1.1  mrg 	include/isl/printer_type.h \
    469  1.1  mrg 	include/isl/schedule.h \
    470  1.1  mrg 	include/isl/schedule_node.h \
    471  1.1  mrg 	include/isl/schedule_type.h \
    472  1.1  mrg 	include/isl/set.h \
    473  1.1  mrg 	include/isl/set_type.h \
    474  1.1  mrg 	include/isl/space.h \
    475  1.1  mrg 	include/isl/space_type.h \
    476  1.1  mrg 	include/isl/stream.h \
    477  1.1  mrg 	include/isl/stride_info.h \
    478  1.1  mrg 	include/isl/union_map.h \
    479  1.1  mrg 	include/isl/union_map_type.h \
    480  1.1  mrg 	include/isl/union_set.h \
    481  1.1  mrg 	include/isl/union_set_type.h \
    482  1.1  mrg 	include/isl/val.h \
    483  1.1  mrg 	include/isl/val_type.h \
    484  1.1  mrg 	include/isl/vec.h \
    485  1.1  mrg 	include/isl/version.h \
    486  1.1  mrg 	include/isl/vertices.h
    487  1.1  mrg 
    488  1.1  mrg if HAVE_CLANG
    489  1.1  mrg if HAVE_CXX11
    490  1.1  mrg     CPP_INTERFACES = \
    491  1.1  mrg 	include/isl/cpp.h \
    492  1.1  mrg 	include/isl/cpp-checked.h \
    493  1.1  mrg 	include/isl/cpp-checked-conversion.h \
    494  1.1  mrg 	include/isl/typed_cpp.h
    495  1.1  mrg endif
    496  1.1  mrg endif
    497  1.1  mrg BUILT_SOURCES = gitversion.h $(CPP_INTERFACES)
    498  1.1  mrg CLEANFILES = \
    499  1.1  mrg 	gitversion.h \
    500  1.1  mrg 	interface/isldlname.py \
    501  1.1  mrg 	interface/isl.py \
    502  1.1  mrg 	interface/isl.pyc \
    503  1.1  mrg 	interface/__pycache__/*.pyc \
    504  1.1  mrg 	$(CPP_INTERFACES)
    505  1.1  mrg 
    506  1.1  mrg DISTCLEANFILES = \
    507  1.1  mrg 	isl-uninstalled.sh \
    508  1.1  mrg 	isl-uninstalled.pc \
    509  1.1  mrg 	isl.pc \
    510  1.1  mrg 	isl.pc.in \
    511  1.1  mrg 	include/isl/stdint.h
    512  1.1  mrg 
    513  1.1  mrg EXTRA_DIST = \
    514  1.1  mrg 	LICENSE \
    515  1.1  mrg 	isl_config_post.h \
    516  1.1  mrg 	isl_aff_lex_templ.c \
    517  1.1  mrg 	isl_align_params_templ.c \
    518  1.1  mrg 	isl_align_params_bin_templ.c \
    519  1.1  mrg 	isl_ast_node_set_field_templ.c \
    520  1.1  mrg 	basis_reduction_templ.c \
    521  1.1  mrg 	isl_bind_domain_templ.c \
    522  1.1  mrg 	bset_to_bmap.c \
    523  1.1  mrg 	bset_from_bmap.c \
    524  1.1  mrg 	isl_check_named_params_templ.c \
    525  1.1  mrg 	check_parse_fail_test_templ.c \
    526  1.1  mrg 	check_reparse_templ.c \
    527  1.1  mrg 	check_reparse_test_templ.c \
    528  1.1  mrg 	check_single_reference_templ.c \
    529  1.1  mrg 	check_type_range_templ.c \
    530  1.1  mrg 	isl_copy_tuple_id_templ.c \
    531  1.1  mrg 	isl_domain_factor_templ.c \
    532  1.1  mrg 	isl_drop_unused_params_templ.c \
    533  1.1  mrg 	extract_key.c \
    534  1.1  mrg 	isl_from_range_templ.c \
    535  1.1  mrg 	isl_ilp_opt_fn_val_templ.c \
    536  1.1  mrg 	isl_ilp_opt_multi_val_templ.c \
    537  1.1  mrg 	isl_ilp_opt_val_templ.c \
    538  1.1  mrg 	has_single_reference_templ.c \
    539  1.1  mrg 	isl_insert_domain_templ.c \
    540  1.1  mrg 	isl_list_macro.h \
    541  1.1  mrg 	isl_list_templ.c \
    542  1.1  mrg 	isl_list_templ.h \
    543  1.1  mrg 	isl_list_read_templ.c \
    544  1.1  mrg 	isl_list_read_yaml_templ.c \
    545  1.1  mrg 	isl_map_bound_templ.c \
    546  1.1  mrg 	isl_map_lexopt_templ.c \
    547  1.1  mrg 	isl_maybe_ast_graft_list.h \
    548  1.1  mrg 	isl_maybe_map.h \
    549  1.1  mrg 	isl_multi_macro.h \
    550  1.1  mrg 	isl_multi_bind_templ.c \
    551  1.1  mrg 	isl_multi_explicit_domain.c \
    552  1.1  mrg 	isl_multi_pw_aff_explicit_domain.c \
    553  1.1  mrg 	isl_multi_union_pw_aff_explicit_domain.c \
    554  1.1  mrg 	isl_multi_no_explicit_domain.c \
    555  1.1  mrg 	isl_multi_no_domain_templ.c \
    556  1.1  mrg 	isl_multi_templ.c \
    557  1.1  mrg 	isl_multi_templ.h \
    558  1.1  mrg 	isl_multi_add_constant_templ.c \
    559  1.1  mrg 	isl_multi_align_set.c \
    560  1.1  mrg 	isl_multi_align_union_set.c \
    561  1.1  mrg 	isl_multi_apply_templ.c \
    562  1.1  mrg 	isl_multi_apply_explicit_domain_templ.c \
    563  1.1  mrg 	isl_multi_apply_no_explicit_domain_templ.c \
    564  1.1  mrg 	isl_multi_apply_set_explicit_domain_templ.c \
    565  1.1  mrg 	isl_multi_apply_set_no_explicit_domain_templ.c \
    566  1.1  mrg 	isl_multi_apply_union_set_explicit_domain_templ.c \
    567  1.1  mrg 	isl_multi_arith_templ.c \
    568  1.1  mrg 	isl_multi_bin_val_templ.c \
    569  1.1  mrg 	isl_multi_bind_domain_templ.c \
    570  1.1  mrg 	isl_multi_check_domain_templ.c \
    571  1.1  mrg 	isl_multi_cmp.c \
    572  1.1  mrg 	isl_multi_coalesce.c \
    573  1.1  mrg 	isl_multi_dim_id_templ.c \
    574  1.1  mrg 	isl_multi_dims.c \
    575  1.1  mrg 	isl_multi_domain_templ.c \
    576  1.1  mrg 	isl_multi_domain_reverse_templ.c \
    577  1.1  mrg 	isl_multi_floor.c \
    578  1.1  mrg 	isl_multi_from_base_templ.c \
    579  1.1  mrg 	isl_multi_from_tuple_templ.c \
    580  1.1  mrg 	isl_multi_gist.c \
    581  1.1  mrg 	isl_multi_hash.c \
    582  1.1  mrg 	isl_multi_insert_domain_templ.c \
    583  1.1  mrg 	isl_multi_intersect.c \
    584  1.1  mrg 	isl_multi_identity_templ.c \
    585  1.1  mrg 	isl_multi_locals_templ.c \
    586  1.1  mrg 	isl_multi_min_max_templ.c \
    587  1.1  mrg 	isl_multi_move_dims_templ.c \
    588  1.1  mrg 	isl_multi_nan_templ.c \
    589  1.1  mrg 	isl_multi_param_templ.c \
    590  1.1  mrg 	isl_multi_product_templ.c \
    591  1.1  mrg 	isl_multi_pw_aff_pullback_templ.c \
    592  1.1  mrg 	isl_multi_read_no_explicit_domain_templ.c \
    593  1.1  mrg 	isl_multi_splice_templ.c \
    594  1.1  mrg 	isl_multi_tuple_id_templ.c \
    595  1.1  mrg 	isl_multi_un_op_templ.c \
    596  1.1  mrg 	isl_multi_unbind_params_templ.c \
    597  1.1  mrg 	isl_multi_union_add_templ.c \
    598  1.1  mrg 	isl_multi_zero_templ.c \
    599  1.1  mrg 	isl_multi_zero_space_templ.c \
    600  1.1  mrg 	isl_opt_mpa_templ.c \
    601  1.1  mrg 	opt_type.h \
    602  1.1  mrg 	print_templ.c \
    603  1.1  mrg 	print_templ_yaml.c \
    604  1.1  mrg 	print_yaml_field_templ.c \
    605  1.1  mrg 	isl_power_templ.c \
    606  1.1  mrg 	isl_project_out_all_params_templ.c \
    607  1.1  mrg 	isl_project_out_param_templ.c \
    608  1.1  mrg 	isl_pw_macro.h \
    609  1.1  mrg 	isl_pw_templ.c \
    610  1.1  mrg 	isl_pw_templ.h \
    611  1.1  mrg 	isl_pw_add_constant_templ.c \
    612  1.1  mrg 	isl_pw_add_constant_multi_val_templ.c \
    613  1.1  mrg 	isl_pw_add_constant_val_templ.c \
    614  1.1  mrg 	isl_pw_add_disjoint_templ.c \
    615  1.1  mrg 	isl_pw_bind_domain_templ.c \
    616  1.1  mrg 	isl_pw_domain_reverse_templ.c \
    617  1.1  mrg 	isl_pw_eval.c \
    618  1.1  mrg 	isl_pw_fix_templ.c \
    619  1.1  mrg 	isl_pw_from_range_templ.c \
    620  1.1  mrg 	isl_pw_hash.c \
    621  1.1  mrg 	isl_pw_insert_dims_templ.c \
    622  1.1  mrg 	isl_pw_insert_domain_templ.c \
    623  1.1  mrg 	isl_pw_lift_templ.c \
    624  1.1  mrg 	isl_pw_locals_templ.c \
    625  1.1  mrg 	isl_pw_morph_templ.c \
    626  1.1  mrg 	isl_pw_move_dims_templ.c \
    627  1.1  mrg 	isl_pw_neg_templ.c \
    628  1.1  mrg 	isl_pw_opt_templ.c \
    629  1.1  mrg 	isl_pw_print_templ.c \
    630  1.1  mrg 	isl_pw_pullback_templ.c \
    631  1.1  mrg 	isl_pw_range_tuple_id_templ.c \
    632  1.1  mrg 	isl_pw_scale_templ.c \
    633  1.1  mrg 	isl_pw_split_dims_templ.c \
    634  1.1  mrg 	isl_pw_sub_templ.c \
    635  1.1  mrg 	isl_pw_un_op_templ.c \
    636  1.1  mrg 	isl_pw_union_opt.c \
    637  1.1  mrg 	isl_read_from_str_templ.c \
    638  1.1  mrg 	read_in_string_templ.c \
    639  1.1  mrg 	set_to_map.c \
    640  1.1  mrg 	set_from_map.c \
    641  1.1  mrg 	set_list_from_map_list_inl.c \
    642  1.1  mrg 	isl_stream_read_pw_with_params_templ.c \
    643  1.1  mrg 	isl_stream_read_with_params_templ.c \
    644  1.1  mrg 	isl_tab_lexopt_templ.c \
    645  1.1  mrg 	isl_test_list_templ.c \
    646  1.1  mrg 	isl_test_plain_equal_templ.c \
    647  1.1  mrg 	isl_type_check_equal_space_templ.c \
    648  1.1  mrg 	isl_type_check_match_range_multi_val.c \
    649  1.1  mrg 	isl_type_has_equal_space_bin_templ.c \
    650  1.1  mrg 	isl_type_has_equal_space_templ.c \
    651  1.1  mrg 	isl_type_has_space_templ.c \
    652  1.1  mrg 	isl_unbind_params_templ.c \
    653  1.1  mrg 	uset_to_umap.c \
    654  1.1  mrg 	uset_from_umap.c \
    655  1.1  mrg 	isl_union_macro.h \
    656  1.1  mrg 	isl_union_templ.c \
    657  1.1  mrg 	isl_union_single.c \
    658  1.1  mrg 	isl_union_multi.c \
    659  1.1  mrg 	isl_union_domain_reverse_templ.c \
    660  1.1  mrg 	isl_union_eval.c \
    661  1.1  mrg 	isl_union_locals_templ.c \
    662  1.1  mrg 	isl_union_map_lex_templ.c \
    663  1.1  mrg 	isl_union_neg.c \
    664  1.1  mrg 	isl_union_print_templ.c \
    665  1.1  mrg 	isl_union_pw_templ.c \
    666  1.1  mrg 	isl_union_sub_templ.c \
    667  1.1  mrg 	libisl-gdb.py \
    668  1.1  mrg 	doc/CodingStyle \
    669  1.1  mrg 	doc/SubmittingPatches \
    670  1.1  mrg 	doc/implementation.tex \
    671  1.1  mrg 	doc/isl.bib \
    672  1.1  mrg 	doc/mypod2latex \
    673  1.1  mrg 	doc/manual.tex \
    674  1.1  mrg 	doc/reading.tex \
    675  1.1  mrg 	doc/user.pod \
    676  1.1  mrg 	imath/gmp_compat.c \
    677  1.1  mrg 	imath/gmp_compat.h \
    678  1.1  mrg 	imath/imath.c \
    679  1.1  mrg 	imath/imath.h \
    680  1.1  mrg 	imath/imrat.c \
    681  1.1  mrg 	imath/imrat.h \
    682  1.1  mrg 	all.h \
    683  1.1  mrg 	cpp \
    684  1.1  mrg 	python \
    685  1.1  mrg 	isl_test_cpp-generic.cc \
    686  1.1  mrg 	isl_test_cpp_failed.sh \
    687  1.1  mrg 	isl_test_cpp17-generic.cc \
    688  1.1  mrg 	isl_test_python.py \
    689  1.1  mrg 	test_inputs
    690  1.1  mrg 
    691  1.1  mrg dist-hook:
    692  1.1  mrg 	echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
    693  1.1  mrg 	(cd doc; make manual.pdf)
    694  1.1  mrg 	cp doc/manual.pdf $(distdir)/doc/
    695  1.1  mrg 
    696  1.1  mrg pkgconfigdir=$(pkgconfig_libdir)
    697  1.1  mrg pkgconfig_DATA = $(pkgconfig_libfile)
    698  1.1  mrg 
    699  1.1  mrg gitversion.h: @GIT_HEAD@
    700  1.1  mrg 	$(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@
    701  1.1  mrg 
    702  1.1  mrg install-data-local: $(srcdir)/libisl-gdb.py
    703  1.1  mrg 	@libisl=`sed -ne "/^library_names=/{s/.*='//;s/'$$//;s/ .*//;p;}" \
    704  1.1  mrg 		 $(builddir)/libisl.la`; \
    705  1.1  mrg 	case $$libisl in \
    706  1.1  mrg 	'') echo Cannot find isl library name. GDB bindings not installed.;; \
    707  1.1  mrg 	*) echo $(INSTALL_DATA) $(srcdir)/libisl-gdb.py \
    708  1.1  mrg 		$(DESTDIR)$(libdir)/$$libisl-gdb.py; \
    709  1.1  mrg 	test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"; \
    710  1.1  mrg 	$(INSTALL_DATA) $(srcdir)/libisl-gdb.py \
    711  1.1  mrg 	    $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
    712  1.1  mrg 	esac
    713  1.1  mrg 
    714  1.1  mrg uninstall-local:
    715  1.1  mrg 	@libisl=`sed -ne "/^library_names=/{s/.*='//;s/'$$//;s/ .*//;p;}" \
    716  1.1  mrg 		 $(builddir)/libisl.la`; \
    717  1.1  mrg 	if test -n "$${libisl}"; then \
    718  1.1  mrg 		rm -f $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
    719  1.1  mrg 	fi
    720