isl_id_alloc: return NULL if ctx argument is NULL
[isl.git] / Makefile.am
blobbf674c734ee87652614cb1719efcb3ee12da50f0
1 if HAVE_CLANG
2     MAYBE_INTERFACE = interface
3 endif
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
17 if NEED_GET_MEMORY_FUNCTIONS
18 GET_MEMORY_FUNCTIONS=mp_get_memory_functions.c
19 endif
21 AM_CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)/include -Iinclude/ @GMP_CPPFLAGS@
22 AM_CFLAGS = @WARNING_FLAGS@
24 libisl_la_SOURCES = \
25         $(GET_MEMORY_FUNCTIONS) \
26         isl_aff.c \
27         isl_aff_private.h \
28         isl_affine_hull.c \
29         isl_arg.c \
30         isl_ast.c \
31         isl_ast_int.c \
32         isl_ast_private.h \
33         isl_ast_build.c \
34         isl_ast_build_private.h \
35         isl_ast_build_expr.c \
36         isl_ast_build_expr.h \
37         isl_ast_codegen.c \
38         isl_ast_graft.c \
39         isl_ast_graft_private.h \
40         isl_band.c \
41         isl_band_private.h \
42         isl_basis_reduction.h \
43         basis_reduction_tab.c \
44         isl_bernstein.c \
45         isl_bernstein.h \
46         isl_blk.c \
47         isl_blk.h \
48         isl_bound.c \
49         isl_bound.h \
50         isl_coalesce.c \
51         isl_constraint.c \
52         isl_constraint_private.h \
53         isl_convex_hull.c \
54         isl_ctx.c \
55         isl_ctx_private.h \
56         isl_deprecated.c \
57         isl_dim.c \
58         isl_dim_map.h \
59         isl_dim_map.c \
60         isl_equalities.c \
61         isl_equalities.h \
62         isl_factorization.c \
63         isl_factorization.h \
64         isl_farkas.c \
65         isl_flow.c \
66         isl_fold.c \
67         isl_gmp.c \
68         isl_hash.c \
69         isl_id_to_ast_expr.c \
70         isl_id_to_pw_aff.c \
71         isl_ilp.c \
72         isl_ilp_private.h \
73         isl_input.c \
74         isl_int.h \
75         isl_local_space_private.h \
76         isl_local_space.c \
77         isl_lp.c \
78         isl_lp_private.h \
79         isl_map.c \
80         isl_map_simplify.c \
81         isl_map_subtract.c \
82         isl_map_private.h \
83         isl_map_to_basic_set.c \
84         isl_mat.c \
85         isl_mat_private.h \
86         isl_morph.c \
87         isl_morph.h \
88         isl_id.c \
89         isl_id_private.h \
90         isl_obj.c \
91         isl_options.c \
92         isl_options_private.h \
93         isl_output.c \
94         isl_point_private.h \
95         isl_point.c \
96         isl_polynomial_private.h \
97         isl_polynomial.c \
98         isl_printer_private.h \
99         isl_printer.c \
100         print.c \
101         isl_range.c \
102         isl_range.h \
103         isl_reordering.c \
104         isl_reordering.h \
105         isl_sample.h \
106         isl_sample.c \
107         isl_scan.c \
108         isl_scan.h \
109         isl_schedule.c \
110         isl_schedule_private.h \
111         isl_set_list.c \
112         isl_sort.c \
113         isl_sort.h \
114         isl_space.c \
115         isl_space_private.h \
116         isl_stream.c \
117         isl_stream_private.h \
118         isl_seq.c \
119         isl_seq.h \
120         isl_tab.c \
121         isl_tab.h \
122         isl_tab_pip.c \
123         isl_tarjan.c \
124         isl_tarjan.h \
125         isl_transitive_closure.c \
126         isl_union_map.c \
127         isl_union_map_private.h \
128         isl_val.c \
129         isl_val_gmp.c \
130         isl_val_private.h \
131         isl_vec_private.h \
132         isl_vec.c \
133         isl_version.c \
134         isl_vertices_private.h \
135         isl_vertices.c
136 libisl_la_LIBADD = @GMP_LIBS@
137 libisl_la_LDFLAGS = -version-info @versioninfo@ \
138         @GMP_LDFLAGS@
140 isl_test_LDFLAGS = @GMP_LDFLAGS@
141 isl_test_LDADD = libisl.la @GMP_LIBS@
143 isl_polyhedron_sample_LDADD = libisl.la
144 isl_polyhedron_sample_SOURCES = \
145         polyhedron_sample.c
147 isl_pip_LDFLAGS = @GMP_LDFLAGS@
148 isl_pip_LDADD = libisl.la @GMP_LIBS@
149 isl_pip_SOURCES = \
150         pip.c
152 isl_codegen_LDFLAGS = @GMP_LDFLAGS@
153 isl_codegen_LDADD = libisl.la @GMP_LIBS@
154 isl_codegen_SOURCES = \
155         codegen.c
157 isl_bound_LDFLAGS = @GMP_LDFLAGS@
158 isl_bound_LDADD = libisl.la @GMP_LIBS@
159 isl_bound_SOURCES = \
160         bound.c
162 isl_polyhedron_minimize_LDFLAGS = @GMP_LDFLAGS@
163 isl_polyhedron_minimize_LDADD = libisl.la @GMP_LIBS@
164 isl_polyhedron_minimize_SOURCES = \
165         polyhedron_minimize.c
167 isl_polytope_scan_LDADD = libisl.la
168 isl_polytope_scan_SOURCES = \
169         polytope_scan.c
171 isl_polyhedron_detect_equalities_LDADD = libisl.la
172 isl_polyhedron_detect_equalities_SOURCES = \
173         polyhedron_detect_equalities.c
175 isl_cat_LDADD = libisl.la
176 isl_cat_SOURCES = \
177         cat.c
179 isl_closure_LDADD = libisl.la
180 isl_closure_SOURCES = \
181         closure.c
183 nodist_pkginclude_HEADERS = \
184         include/isl/config.h \
185         include/isl/stdint.h
186 pkginclude_HEADERS = \
187         include/isl/aff.h \
188         include/isl/aff_type.h \
189         include/isl/arg.h \
190         include/isl/ast.h \
191         include/isl/ast_type.h \
192         include/isl/ast_build.h \
193         include/isl/band.h \
194         include/isl/constraint.h \
195         include/isl/ctx.h \
196         include/isl/dim.h \
197         include/isl/flow.h \
198         include/isl/id.h \
199         include/isl/id_to_ast_expr.h \
200         include/isl/id_to_pw_aff.h \
201         include/isl/ilp.h \
202         include/isl/hash.h \
203         include/isl/hmap.h \
204         include/isl/list.h \
205         include/isl/local_space.h \
206         include/isl/lp.h \
207         include/isl/mat.h \
208         include/isl/map.h \
209         include/isl/map_to_basic_set.h \
210         include/isl/map_type.h \
211         include/isl/multi.h \
212         include/isl/obj.h \
213         include/isl/options.h \
214         include/isl/point.h \
215         include/isl/polynomial.h \
216         include/isl/polynomial_type.h \
217         include/isl/printer.h \
218         include/isl/schedule.h \
219         include/isl/set.h \
220         include/isl/set_type.h \
221         include/isl/space.h \
222         include/isl/stream.h \
223         include/isl/union_map.h \
224         include/isl/union_map_type.h \
225         include/isl/union_set.h \
226         include/isl/union_set_type.h \
227         include/isl/val.h \
228         include/isl/val_gmp.h \
229         include/isl/vec.h \
230         include/isl/version.h \
231         include/isl/vertices.h
232 deprecateddir = $(pkgincludedir)/deprecated
233 deprecated_HEADERS = \
234         include/isl/deprecated/int.h \
235         include/isl/deprecated/aff_int.h \
236         include/isl/deprecated/ast_int.h \
237         include/isl/deprecated/constraint_int.h \
238         include/isl/deprecated/ilp_int.h \
239         include/isl/deprecated/map_int.h \
240         include/isl/deprecated/mat_int.h \
241         include/isl/deprecated/point_int.h \
242         include/isl/deprecated/polynomial_int.h \
243         include/isl/deprecated/set_int.h \
244         include/isl/deprecated/union_map_int.h \
245         include/isl/deprecated/val_int.h \
246         include/isl/deprecated/vec_int.h
248 EXTRA_DIST = \
249         LICENSE \
250         isl_config_post.h \
251         basis_reduction_templ.c \
252         isl_hmap_templ.c \
253         isl_list_templ.c \
254         isl_list_templ.h \
255         isl_map_lexopt_templ.c \
256         isl_multi_templ.c \
257         isl_multi_templ.h \
258         print_templ.c \
259         isl_power_templ.c \
260         isl_pw_templ.c \
261         isl_union_templ.c \
262         isl.py \
263         doc/SubmittingPatches \
264         doc/chicago.bst \
265         doc/chicago.sty \
266         doc/implementation.tex \
267         doc/isl.bib \
268         doc/mypod2latex \
269         doc/manual.tex \
270         doc/user.pod \
271         interface/all.h \
272         interface/isl.py.top \
273         test_inputs
275 dist-hook:
276         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
277         (cd doc; make manual.pdf)
278         cp doc/manual.pdf $(distdir)/doc/
280 pkgconfigdir=$(pkgconfig_libdir)
281 pkgconfig_DATA = $(pkgconfig_libfile)
283 gitversion.h: @GIT_HEAD@
284         $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@
286 install-data-local: $(srcdir)/isl.py
287         @libisl=`sed -ne "/^library_names=/{s/.*='//;s/'$$//;s/ .*//;p;}" \
288                  $(builddir)/libisl.la`; \
289         case $$libisl in \
290         '') echo Cannot find isl library name. GDB bindings not installed.;; \
291         *) echo $(INSTALL_DATA) $(srcdir)/isl.py \
292                 $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
293         test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"; \
294         $(INSTALL_DATA) $(srcdir)/isl.py $(DESTDIR)$(libdir)/$$libisl-gdb.py; esac