isl_map_read: accept '*' in affine expressions
[platform/upstream/isl.git] / Makefile.am
1 SUBDIRS = . doc
2 DIST_SUBDIRS = doc
3
4 ACLOCAL_AMFLAGS = -I m4
5
6 lib_LTLIBRARIES = libisl.la
7 noinst_PROGRAMS = isl_test isl_polyhedron_sample isl_pip \
8         isl_polyhedron_minimize isl_polytope_scan \
9         isl_polyhedron_detect_equalities isl_cat \
10         isl_closure
11 TESTS = isl_test
12
13 if HAVE_PIPLIB
14 ISL_PIPLIB = \
15         isl_lp_piplib.c \
16         isl_map_piplib.c \
17         isl_sample_piplib.c \
18         isl_sample_piplib.h \
19         isl_piplib.c
20 else
21 ISL_PIPLIB = \
22         isl_lp_no_piplib.c \
23         isl_map_no_piplib.c \
24         isl_sample_no_piplib.c
25 endif
26
27 if NEED_GET_MEMORY_FUNCTIONS
28 GET_MEMORY_FUNCTIONS=mp_get_memory_functions.c
29 endif
30
31 libisl_la_SOURCES = \
32         $(ISL_PIPLIB) \
33         $(GET_MEMORY_FUNCTIONS) \
34         isl_affine_hull.c \
35         isl_arg.c \
36         isl_basis_reduction.h \
37         basis_reduction_tab.c \
38         isl_blk.c \
39         isl_coalesce.c \
40         isl_constraint.c \
41         isl_convex_hull.c \
42         isl_ctx.c \
43         isl_dim_private.h \
44         isl_dim.c \
45         isl_div.c \
46         isl_equalities.c \
47         isl_equalities.h \
48         isl_flow.c \
49         isl_gmp.c \
50         isl_hash.c \
51         isl_ilp.c \
52         isl_input.c \
53         isl_list.c \
54         isl_lp.c \
55         isl_lp_piplib.h \
56         isl_map.c \
57         isl_map_simplify.c \
58         isl_map_subtract.c \
59         isl_map_private.h \
60         isl_map_piplib.h \
61         isl_mat.c \
62         isl_name.c \
63         isl_name.h \
64         isl_obj.c \
65         isl_options.c \
66         isl_output.c \
67         isl_piplib.h \
68         isl_point_private.h \
69         isl_point.c \
70         isl_polynomial_private.h \
71         isl_polynomial.c \
72         isl_sample.h \
73         isl_sample.c \
74         isl_scan.c \
75         isl_scan.h \
76         isl_stream.c \
77         isl_seq.c \
78         isl_tab.c \
79         isl_tab.h \
80         isl_tab_pip.c \
81         isl_transitive_closure.c \
82         isl_vec.c
83 EXTRA_libisl_la_SOURCES = \
84         isl_lp_piplib.c \
85         isl_lp_no_piplib.c \
86         isl_map_piplib.c \
87         isl_map_no_piplib.c \
88         isl_sample_no_piplib.c \
89         isl_sample_piplib.c \
90         isl_sample_piplib.h \
91         isl_piplib.c
92 libisl_la_LIBADD = @PIPLIB_LIBS@ -lgmp
93 libisl_la_LDFLAGS = -version-info @versioninfo@ \
94         @PIPLIB_LDFLAGS@ @GMP_LDFLAGS@
95 libisl_la_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
96         @PIPLIB_CPPFLAGS@ @GMP_CPPFLAGS@
97
98 isl_test_CPPFLAGS = -I$(srcdir)/include -Iinclude/ @GMP_CPPFLAGS@
99 isl_test_LDADD = libisl.la
100
101 isl_polyhedron_sample_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
102         @GMP_CPPFLAGS@
103 isl_polyhedron_sample_LDADD = libisl.la
104 isl_polyhedron_sample_SOURCES = \
105         polyhedron_sample.c
106
107 isl_pip_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
108         @GMP_CPPFLAGS@
109 isl_pip_LDADD = libisl.la
110 isl_pip_SOURCES = \
111         pip.c
112
113 isl_polyhedron_minimize_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
114         @GMP_CPPFLAGS@
115 isl_polyhedron_minimize_LDADD = libisl.la
116 isl_polyhedron_minimize_SOURCES = \
117         polyhedron_minimize.c
118
119 isl_polytope_scan_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
120         @GMP_CPPFLAGS@
121 isl_polytope_scan_LDADD = libisl.la
122 isl_polytope_scan_SOURCES = \
123         polytope_scan.c
124
125 isl_polyhedron_detect_equalities_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
126         @GMP_CPPFLAGS@
127 isl_polyhedron_detect_equalities_LDADD = libisl.la
128 isl_polyhedron_detect_equalities_SOURCES = \
129         polyhedron_detect_equalities.c
130
131 isl_cat_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
132         @GMP_CPPFLAGS@
133 isl_cat_LDADD = libisl.la
134 isl_cat_SOURCES = \
135         cat.c
136
137 isl_closure_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
138         @GMP_CPPFLAGS@
139 isl_closure_LDADD = libisl.la
140 isl_closure_SOURCES = \
141         closure.c
142
143 nodist_pkginclude_HEADERS = \
144         include/isl_config.h \
145         include/isl_stdint.h
146 pkginclude_HEADERS = \
147         include/isl_arg.h \
148         include/isl_blk.h \
149         include/isl_constraint.h \
150         include/isl_ctx.h \
151         include/isl_dim.h \
152         include/isl_div.h \
153         include/isl_flow.h \
154         include/isl_ilp.h \
155         include/isl_int.h \
156         include/isl_hash.h \
157         include/isl_list.h \
158         include/isl_lp.h \
159         include/isl_mat.h \
160         include/isl_map.h \
161         include/isl_obj.h \
162         include/isl_options.h \
163         include/isl_point.h \
164         include/isl_polynomial.h \
165         include/isl_seq.h \
166         include/isl_set.h \
167         include/isl_stream.h \
168         include/isl_vec.h
169
170 EXTRA_DIST = \
171         basis_reduction_templ.c \
172         doc/mypod2latex \
173         doc/manual.tex \
174         doc/user.pod \
175         test_inputs
176
177 dist-hook:
178         (cd doc; make manual.pdf)
179         cp doc/manual.pdf $(distdir)/doc/
180
181 pkgconfigdir=$(pkgconfig_libdir)
182 pkgconfig_DATA = $(pkgconfig_libfile)