add rudimentary isl_morph
[isl.git] / Makefile.am
blobee142503681cfece22769cb8c724668da2998b9b
1 SUBDIRS = . doc
2 DIST_SUBDIRS = doc
4 ACLOCAL_AMFLAGS = -I m4
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 pip_test.sh
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
27 if NEED_GET_MEMORY_FUNCTIONS
28 GET_MEMORY_FUNCTIONS=mp_get_memory_functions.c
29 endif
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.c \
44         isl_dim_private.h \
45         isl_div.c \
46         isl_equalities.c \
47         isl_equalities.h \
48         isl_flow.c \
49         isl_fold.c \
50         isl_gmp.c \
51         isl_hash.c \
52         isl_ilp.c \
53         isl_input.c \
54         isl_list.c \
55         isl_lp.c \
56         isl_lp_piplib.h \
57         isl_map.c \
58         isl_map_simplify.c \
59         isl_map_subtract.c \
60         isl_map_private.h \
61         isl_map_piplib.h \
62         isl_mat.c \
63         isl_morph.c \
64         isl_morph.h \
65         isl_name.c \
66         isl_name.h \
67         isl_obj.c \
68         isl_options.c \
69         isl_output.c \
70         isl_piplib.h \
71         isl_point_private.h \
72         isl_point.c \
73         isl_polynomial_private.h \
74         isl_polynomial.c \
75         isl_printer_private.h \
76         isl_printer.c \
77         isl_sample.h \
78         isl_sample.c \
79         isl_scan.c \
80         isl_scan.h \
81         isl_stream.c \
82         isl_seq.c \
83         isl_tab.c \
84         isl_tab.h \
85         isl_tab_pip.c \
86         isl_transitive_closure.c \
87         isl_vec.c
88 EXTRA_libisl_la_SOURCES = \
89         isl_lp_piplib.c \
90         isl_lp_no_piplib.c \
91         isl_map_piplib.c \
92         isl_map_no_piplib.c \
93         isl_sample_no_piplib.c \
94         isl_sample_piplib.c \
95         isl_sample_piplib.h \
96         isl_piplib.c
97 libisl_la_LIBADD = @PIPLIB_LIBS@ -lgmp
98 libisl_la_LDFLAGS = -version-info @versioninfo@ \
99         @PIPLIB_LDFLAGS@ @GMP_LDFLAGS@
100 libisl_la_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
101         @PIPLIB_CPPFLAGS@ @GMP_CPPFLAGS@
103 isl_test_CPPFLAGS = -I$(srcdir)/include -Iinclude/ @GMP_CPPFLAGS@
104 isl_test_LDADD = libisl.la
106 isl_polyhedron_sample_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
107         @GMP_CPPFLAGS@
108 isl_polyhedron_sample_LDADD = libisl.la
109 isl_polyhedron_sample_SOURCES = \
110         polyhedron_sample.c
112 isl_pip_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
113         @GMP_CPPFLAGS@
114 isl_pip_LDADD = libisl.la
115 isl_pip_SOURCES = \
116         pip.c
118 isl_polyhedron_minimize_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
119         @GMP_CPPFLAGS@
120 isl_polyhedron_minimize_LDADD = libisl.la
121 isl_polyhedron_minimize_SOURCES = \
122         polyhedron_minimize.c
124 isl_polytope_scan_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
125         @GMP_CPPFLAGS@
126 isl_polytope_scan_LDADD = libisl.la
127 isl_polytope_scan_SOURCES = \
128         polytope_scan.c
130 isl_polyhedron_detect_equalities_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
131         @GMP_CPPFLAGS@
132 isl_polyhedron_detect_equalities_LDADD = libisl.la
133 isl_polyhedron_detect_equalities_SOURCES = \
134         polyhedron_detect_equalities.c
136 isl_cat_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
137         @GMP_CPPFLAGS@
138 isl_cat_LDADD = libisl.la
139 isl_cat_SOURCES = \
140         cat.c
142 isl_closure_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
143         @GMP_CPPFLAGS@
144 isl_closure_LDADD = libisl.la
145 isl_closure_SOURCES = \
146         closure.c
148 nodist_pkginclude_HEADERS = \
149         include/isl_config.h \
150         include/isl_stdint.h
151 pkginclude_HEADERS = \
152         include/isl_arg.h \
153         include/isl_blk.h \
154         include/isl_constraint.h \
155         include/isl_ctx.h \
156         include/isl_dim.h \
157         include/isl_div.h \
158         include/isl_flow.h \
159         include/isl_ilp.h \
160         include/isl_int.h \
161         include/isl_hash.h \
162         include/isl_list.h \
163         include/isl_lp.h \
164         include/isl_mat.h \
165         include/isl_map.h \
166         include/isl_obj.h \
167         include/isl_options.h \
168         include/isl_point.h \
169         include/isl_polynomial.h \
170         include/isl_printer.h \
171         include/isl_seq.h \
172         include/isl_set.h \
173         include/isl_stream.h \
174         include/isl_vec.h
176 EXTRA_DIST = \
177         basis_reduction_templ.c \
178         isl_pw_templ.c \
179         doc/chicago.bst \
180         doc/chicago.sty \
181         doc/implementation.tex \
182         doc/isl.bib \
183         doc/mypod2latex \
184         doc/manual.tex \
185         doc/user.pod \
186         pip_test.sh \
187         test_inputs
189 dist-hook:
190         (cd doc; make manual.pdf)
191         cp doc/manual.pdf $(distdir)/doc/
193 pkgconfigdir=$(pkgconfig_libdir)
194 pkgconfig_DATA = $(pkgconfig_libfile)