isl_union_map_sample: don't return NULL on empty input
[isl.git] / Makefile.am
blob578981d4386d383553fa24c2b90210e4fc341b91
1 SUBDIRS = . doc
2 DIST_SUBDIRS = doc
4 ACLOCAL_AMFLAGS = -I m4
5 AUTOMAKE_OPTIONS = nostdinc
7 lib_LTLIBRARIES = libisl.la
8 noinst_PROGRAMS = isl_test isl_polyhedron_sample isl_pip \
9         isl_polyhedron_minimize isl_polytope_scan \
10         isl_polyhedron_detect_equalities isl_cat \
11         isl_closure isl_bound
12 TESTS = isl_test pip_test.sh bound_test.sh
14 if HAVE_PIPLIB
15 ISL_PIPLIB = \
16         isl_lp_piplib.c \
17         isl_map_piplib.c \
18         isl_sample_piplib.c \
19         isl_sample_piplib.h \
20         isl_piplib.c
21 else
22 ISL_PIPLIB = \
23         isl_lp_no_piplib.c \
24         isl_map_no_piplib.c \
25         isl_sample_no_piplib.c
26 endif
28 if NEED_GET_MEMORY_FUNCTIONS
29 GET_MEMORY_FUNCTIONS=mp_get_memory_functions.c
30 endif
32 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/include -Iinclude/ 
34 libisl_la_SOURCES = \
35         $(ISL_PIPLIB) \
36         $(GET_MEMORY_FUNCTIONS) \
37         isl_affine_hull.c \
38         isl_arg.c \
39         isl_basis_reduction.h \
40         basis_reduction_tab.c \
41         isl_bernstein.c \
42         isl_bernstein.h \
43         isl_blk.c \
44         isl_bound.c \
45         isl_bound.h \
46         isl_coalesce.c \
47         isl_constraint.c \
48         isl_convex_hull.c \
49         isl_ctx.c \
50         isl_dim.c \
51         isl_dim_private.h \
52         isl_div.c \
53         isl_equalities.c \
54         isl_equalities.h \
55         isl_factorization.c \
56         isl_factorization.h \
57         isl_flow.c \
58         isl_fold.c \
59         isl_gmp.c \
60         isl_hash.c \
61         isl_ilp.c \
62         isl_input.c \
63         isl_list.c \
64         isl_lp.c \
65         isl_lp_piplib.h \
66         isl_map.c \
67         isl_map_simplify.c \
68         isl_map_subtract.c \
69         isl_map_private.h \
70         isl_map_piplib.h \
71         isl_mat.c \
72         isl_mat_private.h \
73         isl_morph.c \
74         isl_morph.h \
75         isl_name.c \
76         isl_name.h \
77         isl_obj.c \
78         isl_options.c \
79         isl_output.c \
80         isl_piplib.h \
81         isl_point_private.h \
82         isl_point.c \
83         isl_polynomial_private.h \
84         isl_polynomial.c \
85         isl_printer_private.h \
86         isl_printer.c \
87         isl_range.c \
88         isl_range.h \
89         isl_reordering.c \
90         isl_reordering.h \
91         isl_sample.h \
92         isl_sample.c \
93         isl_scan.c \
94         isl_scan.h \
95         isl_stream.c \
96         isl_seq.c \
97         isl_tab.c \
98         isl_tab.h \
99         isl_tab_pip.c \
100         isl_transitive_closure.c \
101         isl_union_map.c \
102         isl_union_map_private.h \
103         isl_vec.c \
104         isl_version.c \
105         isl_vertices_private.h \
106         isl_vertices.c
107 EXTRA_libisl_la_SOURCES = \
108         isl_lp_piplib.c \
109         isl_lp_no_piplib.c \
110         isl_map_piplib.c \
111         isl_map_no_piplib.c \
112         isl_sample_no_piplib.c \
113         isl_sample_piplib.c \
114         isl_sample_piplib.h \
115         isl_piplib.c
116 libisl_la_LIBADD = @PIPLIB_LIBS@ -lgmp
117 libisl_la_LDFLAGS = -version-info @versioninfo@ \
118         @PIPLIB_LDFLAGS@ @GMP_LDFLAGS@
119 libisl_la_CPPFLAGS = $(INCLUDES) @PIPLIB_CPPFLAGS@ @GMP_CPPFLAGS@
121 isl_test_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
122 isl_test_LDADD = libisl.la
124 isl_polyhedron_sample_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
125 isl_polyhedron_sample_LDADD = libisl.la
126 isl_polyhedron_sample_SOURCES = \
127         polyhedron_sample.c
129 isl_pip_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
130 isl_pip_LDADD = libisl.la
131 isl_pip_SOURCES = \
132         pip.c
134 isl_bound_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
135 isl_bound_LDADD = libisl.la
136 isl_bound_SOURCES = \
137         bound.c
139 isl_polyhedron_minimize_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
140 isl_polyhedron_minimize_LDADD = libisl.la
141 isl_polyhedron_minimize_SOURCES = \
142         polyhedron_minimize.c
144 isl_polytope_scan_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
145 isl_polytope_scan_LDADD = libisl.la
146 isl_polytope_scan_SOURCES = \
147         polytope_scan.c
149 isl_polyhedron_detect_equalities_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
150 isl_polyhedron_detect_equalities_LDADD = libisl.la
151 isl_polyhedron_detect_equalities_SOURCES = \
152         polyhedron_detect_equalities.c
154 isl_cat_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
155 isl_cat_LDADD = libisl.la
156 isl_cat_SOURCES = \
157         cat.c
159 isl_closure_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
160 isl_closure_LDADD = libisl.la
161 isl_closure_SOURCES = \
162         closure.c
164 nodist_pkginclude_HEADERS = \
165         include/isl/config.h \
166         include/isl/stdint.h
167 pkginclude_HEADERS = \
168         include/isl/arg.h \
169         include/isl/blk.h \
170         include/isl/constraint.h \
171         include/isl/ctx.h \
172         include/isl/dim.h \
173         include/isl/div.h \
174         include/isl/flow.h \
175         include/isl/ilp.h \
176         include/isl/int.h \
177         include/isl/hash.h \
178         include/isl/list.h \
179         include/isl/lp.h \
180         include/isl/mat.h \
181         include/isl/map.h \
182         include/isl/obj.h \
183         include/isl/options.h \
184         include/isl/point.h \
185         include/isl/polynomial.h \
186         include/isl/printer.h \
187         include/isl/seq.h \
188         include/isl/set.h \
189         include/isl/stream.h \
190         include/isl/union_map.h \
191         include/isl/union_set.h \
192         include/isl/vec.h \
193         include/isl/version.h \
194         include/isl/vertices.h
196 EXTRA_DIST = \
197         basis_reduction_templ.c \
198         isl_pw_templ.c \
199         isl_union_templ.c \
200         doc/chicago.bst \
201         doc/chicago.sty \
202         doc/implementation.tex \
203         doc/isl.bib \
204         doc/mypod2latex \
205         doc/manual.tex \
206         doc/user.pod \
207         bound_test.sh \
208         pip_test.sh \
209         test_inputs
211 dist-hook:
212         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
213         (cd doc; make manual.pdf)
214         cp doc/manual.pdf $(distdir)/doc/
216 pkgconfigdir=$(pkgconfig_libdir)
217 pkgconfig_DATA = $(pkgconfig_libfile)
219 gitversion.h: @GIT_HEAD@
220         echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@