add isl_multi_aff
[platform/upstream/isl.git] / Makefile.am
1 SUBDIRS = . doc
2 DIST_SUBDIRS = doc
3
4 ACLOCAL_AMFLAGS = -I m4
5 AUTOMAKE_OPTIONS = nostdinc
6
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
13
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
27
28 if NEED_GET_MEMORY_FUNCTIONS
29 GET_MEMORY_FUNCTIONS=mp_get_memory_functions.c
30 endif
31
32 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/include -Iinclude/ 
33 AM_CFLAGS = @WARNING_FLAGS@
34
35 libisl_la_SOURCES = \
36         $(ISL_PIPLIB) \
37         $(GET_MEMORY_FUNCTIONS) \
38         isl_aff.c \
39         isl_aff_private.h \
40         isl_affine_hull.c \
41         isl_arg.c \
42         isl_band.c \
43         isl_band_private.h \
44         isl_basis_reduction.h \
45         basis_reduction_tab.c \
46         isl_bernstein.c \
47         isl_bernstein.h \
48         isl_blk.c \
49         isl_bound.c \
50         isl_bound.h \
51         isl_coalesce.c \
52         isl_constraint.c \
53         isl_constraint_private.h \
54         isl_convex_hull.c \
55         isl_ctx.c \
56         isl_ctx_private.h \
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_hmap_map_basic_set.c \
70         isl_hmap_map_basic_set.h \
71         isl_ilp.c \
72         isl_input.c \
73         isl_list.c \
74         isl_list_private.h \
75         isl_local_space_private.h \
76         isl_local_space.c \
77         isl_lp.c \
78         isl_lp_piplib.h \
79         isl_map.c \
80         isl_map_simplify.c \
81         isl_map_subtract.c \
82         isl_map_private.h \
83         isl_map_piplib.h \
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_output.c \
93         isl_qsort.c \
94         isl_qsort.h \
95         isl_piplib.h \
96         isl_point_private.h \
97         isl_point.c \
98         isl_polynomial_private.h \
99         isl_polynomial.c \
100         isl_printer_private.h \
101         isl_printer.c \
102         print.c \
103         isl_range.c \
104         isl_range.h \
105         isl_reordering.c \
106         isl_reordering.h \
107         isl_sample.h \
108         isl_sample.c \
109         isl_scan.c \
110         isl_scan.h \
111         isl_schedule.c \
112         isl_schedule_private.h \
113         isl_space.c \
114         isl_space_private.h \
115         isl_stream.c \
116         isl_stream_private.h \
117         isl_seq.c \
118         isl_tab.c \
119         isl_tab.h \
120         isl_tab_pip.c \
121         isl_transitive_closure.c \
122         isl_union_map.c \
123         isl_union_map_private.h \
124         isl_vec.c \
125         isl_version.c \
126         isl_vertices_private.h \
127         isl_vertices.c
128 EXTRA_libisl_la_SOURCES = \
129         isl_lp_piplib.c \
130         isl_lp_no_piplib.c \
131         isl_map_piplib.c \
132         isl_map_no_piplib.c \
133         isl_sample_no_piplib.c \
134         isl_sample_piplib.c \
135         isl_sample_piplib.h \
136         isl_piplib.c
137 libisl_la_LIBADD = @PIPLIB_LIBS@ -lgmp
138 libisl_la_LDFLAGS = -version-info @versioninfo@ \
139         @PIPLIB_LDFLAGS@ @GMP_LDFLAGS@
140 libisl_la_CPPFLAGS = $(INCLUDES) @PIPLIB_CPPFLAGS@ @GMP_CPPFLAGS@
141
142 isl_test_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
143 isl_test_LDFLAGS = @GMP_LDFLAGS@
144 isl_test_LDADD = libisl.la -lgmp
145
146 isl_polyhedron_sample_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
147 isl_polyhedron_sample_LDADD = libisl.la
148 isl_polyhedron_sample_SOURCES = \
149         polyhedron_sample.c
150
151 isl_pip_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
152 isl_pip_LDFLAGS = @GMP_LDFLAGS@
153 isl_pip_LDADD = libisl.la -lgmp
154 isl_pip_SOURCES = \
155         pip.c
156
157 isl_bound_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
158 isl_bound_LDFLAGS = @GMP_LDFLAGS@
159 isl_bound_LDADD = libisl.la -lgmp
160 isl_bound_SOURCES = \
161         bound.c
162
163 isl_polyhedron_minimize_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
164 isl_polyhedron_minimize_LDFLAGS = @GMP_LDFLAGS@
165 isl_polyhedron_minimize_LDADD = libisl.la -lgmp
166 isl_polyhedron_minimize_SOURCES = \
167         polyhedron_minimize.c
168
169 isl_polytope_scan_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
170 isl_polytope_scan_LDADD = libisl.la
171 isl_polytope_scan_SOURCES = \
172         polytope_scan.c
173
174 isl_polyhedron_detect_equalities_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
175 isl_polyhedron_detect_equalities_LDADD = libisl.la
176 isl_polyhedron_detect_equalities_SOURCES = \
177         polyhedron_detect_equalities.c
178
179 isl_cat_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
180 isl_cat_LDADD = libisl.la
181 isl_cat_SOURCES = \
182         cat.c
183
184 isl_closure_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
185 isl_closure_LDADD = libisl.la
186 isl_closure_SOURCES = \
187         closure.c
188
189 nodist_pkginclude_HEADERS = \
190         include/isl/config.h \
191         include/isl/stdint.h
192 pkginclude_HEADERS = \
193         include/isl/aff.h \
194         include/isl/aff_type.h \
195         include/isl/arg.h \
196         include/isl/band.h \
197         include/isl/blk.h \
198         include/isl/constraint.h \
199         include/isl/ctx.h \
200         include/isl/dim.h \
201         include/isl/flow.h \
202         include/isl/id.h \
203         include/isl/ilp.h \
204         include/isl/int.h \
205         include/isl/hash.h \
206         include/isl/list.h \
207         include/isl/local_space.h \
208         include/isl/lp.h \
209         include/isl/mat.h \
210         include/isl/map.h \
211         include/isl/map_type.h \
212         include/isl/multi.h \
213         include/isl/obj.h \
214         include/isl/options.h \
215         include/isl/point.h \
216         include/isl/polynomial.h \
217         include/isl/polynomial_type.h \
218         include/isl/printer.h \
219         include/isl/schedule.h \
220         include/isl/seq.h \
221         include/isl/set.h \
222         include/isl/set_type.h \
223         include/isl/space.h \
224         include/isl/stream.h \
225         include/isl/union_map.h \
226         include/isl/union_set.h \
227         include/isl/vec.h \
228         include/isl/version.h \
229         include/isl/vertices.h
230
231 EXTRA_DIST = \
232         isl_config_post.h \
233         basis_reduction_templ.c \
234         isl_list_templ.c \
235         isl_list_templ.h \
236         isl_multi_templ.c \
237         isl_multi_templ.h \
238         print_templ.c \
239         isl_pw_templ.c \
240         isl_union_templ.c \
241         isl.py \
242         doc/chicago.bst \
243         doc/chicago.sty \
244         doc/implementation.tex \
245         doc/isl.bib \
246         doc/mypod2latex \
247         doc/manual.tex \
248         doc/user.pod \
249         test_inputs
250
251 dist-hook:
252         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
253         (cd doc; make manual.pdf)
254         cp doc/manual.pdf $(distdir)/doc/
255
256 pkgconfigdir=$(pkgconfig_libdir)
257 pkgconfig_DATA = $(pkgconfig_libfile)
258
259 gitversion.h: @GIT_HEAD@
260         $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@
261
262 install-data-local: $(srcdir)/isl.py
263         @libisl=`sed -ne "/^library_names=/{s/.*='//;s/'$$//;s/ .*//;p}" \
264                  $(builddir)/libisl.la`; \
265         case $$libisl in \
266         '') echo Cannot find isl library name. GDB bindings not installed.;; \
267         *) echo $(INSTALL_DATA) $(srcdir)/isl.py \
268                 $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
269         test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"; \
270         $(INSTALL_DATA) $(srcdir)/isl.py $(DESTDIR)$(libdir)/$$libisl-gdb.py; esac