2 MAYBE_INTERFACE = interface
4 SUBDIRS = . $(MAYBE_INTERFACE) doc
5 DIST_SUBDIRS = $(MAYBE_INTERFACE) doc
7 ACLOCAL_AMFLAGS = -I m4
8 AUTOMAKE_OPTIONS = nostdinc
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_codegen
15 TESTS = isl_test codegen_test.sh pip_test.sh bound_test.sh
28 isl_sample_no_piplib.c
31 if NEED_GET_MEMORY_FUNCTIONS
32 GET_MEMORY_FUNCTIONS=mp_get_memory_functions.c
35 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/include -Iinclude/
36 AM_CFLAGS = @WARNING_FLAGS@
40 $(GET_MEMORY_FUNCTIONS) \
48 isl_ast_build_private.h \
49 isl_ast_build_expr.c \
50 isl_ast_build_expr.h \
53 isl_ast_graft_private.h \
56 isl_basis_reduction.h \
57 basis_reduction_tab.c \
65 isl_constraint_private.h \
81 isl_hmap_map_basic_set.c \
82 isl_hmap_map_basic_set.h \
87 isl_local_space_private.h \
104 isl_options_private.h \
107 isl_point_private.h \
109 isl_polynomial_private.h \
111 isl_printer_private.h \
123 isl_schedule_private.h \
127 isl_space_private.h \
129 isl_stream_private.h \
136 isl_transitive_closure.c \
138 isl_union_map_private.h \
141 isl_vertices_private.h \
143 EXTRA_libisl_la_SOURCES = \
147 isl_map_no_piplib.c \
148 isl_sample_no_piplib.c \
149 isl_sample_piplib.c \
150 isl_sample_piplib.h \
152 libisl_la_LIBADD = @PIPLIB_LIBS@ @GMP_LIBS@
153 libisl_la_LDFLAGS = -version-info @versioninfo@ \
154 @PIPLIB_LDFLAGS@ @GMP_LDFLAGS@
155 libisl_la_CPPFLAGS = $(INCLUDES) @PIPLIB_CPPFLAGS@ @GMP_CPPFLAGS@
157 isl_test_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
158 isl_test_LDFLAGS = @GMP_LDFLAGS@
159 isl_test_LDADD = libisl.la @GMP_LIBS@
161 isl_polyhedron_sample_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
162 isl_polyhedron_sample_LDADD = libisl.la
163 isl_polyhedron_sample_SOURCES = \
166 isl_pip_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
167 isl_pip_LDFLAGS = @GMP_LDFLAGS@
168 isl_pip_LDADD = libisl.la @GMP_LIBS@
172 isl_codegen_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
173 isl_codegen_LDFLAGS = @GMP_LDFLAGS@
174 isl_codegen_LDADD = libisl.la @GMP_LIBS@
175 isl_codegen_SOURCES = \
178 isl_bound_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
179 isl_bound_LDFLAGS = @GMP_LDFLAGS@
180 isl_bound_LDADD = libisl.la @GMP_LIBS@
181 isl_bound_SOURCES = \
184 isl_polyhedron_minimize_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
185 isl_polyhedron_minimize_LDFLAGS = @GMP_LDFLAGS@
186 isl_polyhedron_minimize_LDADD = libisl.la @GMP_LIBS@
187 isl_polyhedron_minimize_SOURCES = \
188 polyhedron_minimize.c
190 isl_polytope_scan_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
191 isl_polytope_scan_LDADD = libisl.la
192 isl_polytope_scan_SOURCES = \
195 isl_polyhedron_detect_equalities_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
196 isl_polyhedron_detect_equalities_LDADD = libisl.la
197 isl_polyhedron_detect_equalities_SOURCES = \
198 polyhedron_detect_equalities.c
200 isl_cat_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
201 isl_cat_LDADD = libisl.la
205 isl_closure_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
206 isl_closure_LDADD = libisl.la
207 isl_closure_SOURCES = \
210 nodist_pkginclude_HEADERS = \
211 include/isl/config.h \
213 pkginclude_HEADERS = \
215 include/isl/aff_type.h \
218 include/isl/ast_build.h \
221 include/isl/constraint.h \
230 include/isl/local_space.h \
234 include/isl/map_type.h \
235 include/isl/multi.h \
237 include/isl/options.h \
238 include/isl/point.h \
239 include/isl/polynomial.h \
240 include/isl/polynomial_type.h \
241 include/isl/printer.h \
242 include/isl/schedule.h \
245 include/isl/set_type.h \
246 include/isl/space.h \
247 include/isl/stream.h \
248 include/isl/union_map.h \
249 include/isl/union_map_type.h \
250 include/isl/union_set.h \
251 include/isl/union_set_type.h \
253 include/isl/version.h \
254 include/isl/vertices.h
258 basis_reduction_templ.c \
261 isl_map_lexopt_templ.c \
269 doc/SubmittingPatches \
272 doc/implementation.tex \
280 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
281 (cd doc; make manual.pdf)
282 cp doc/manual.pdf $(distdir)/doc/
284 pkgconfigdir=$(pkgconfig_libdir)
285 pkgconfig_DATA = $(pkgconfig_libfile)
287 gitversion.h: @GIT_HEAD@
288 $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@
290 install-data-local: $(srcdir)/isl.py
291 @libisl=`sed -ne "/^library_names=/{s/.*='//;s/'$$//;s/ .*//;p;}" \
292 $(builddir)/libisl.la`; \
294 '') echo Cannot find isl library name. GDB bindings not installed.;; \
295 *) echo $(INSTALL_DATA) $(srcdir)/isl.py \
296 $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
297 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"; \
298 $(INSTALL_DATA) $(srcdir)/isl.py $(DESTDIR)$(libdir)/$$libisl-gdb.py; esac