extract isl_tab_add_div from isl_tab_pip.c
[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.c \
44         isl_div.c \
45         isl_equalities.c \
46         isl_equalities.h \
47         isl_flow.c \
48         isl_gmp.c \
49         isl_hash.c \
50         isl_ilp.c \
51         isl_input.c \
52         isl_list.c \
53         isl_lp.c \
54         isl_lp_piplib.h \
55         isl_map.c \
56         isl_map_simplify.c \
57         isl_map_subtract.c \
58         isl_map_private.h \
59         isl_map_piplib.h \
60         isl_mat.c \
61         isl_name.c \
62         isl_name.h \
63         isl_options.c \
64         isl_output.c \
65         isl_piplib.h \
66         isl_sample.h \
67         isl_sample.c \
68         isl_scan.c \
69         isl_scan.h \
70         isl_stream.c \
71         isl_stream.h \
72         isl_seq.c \
73         isl_tab.c \
74         isl_tab.h \
75         isl_tab_pip.c \
76         isl_transitive_closure.c \
77         isl_vec.c
78 EXTRA_libisl_la_SOURCES = \
79         isl_lp_piplib.c \
80         isl_lp_no_piplib.c \
81         isl_map_piplib.c \
82         isl_map_no_piplib.c \
83         isl_sample_no_piplib.c \
84         isl_sample_piplib.c \
85         isl_sample_piplib.h \
86         isl_piplib.c
87 libisl_la_LIBADD = @PIPLIB_LIBS@ -lgmp
88 libisl_la_LDFLAGS = -version-info @versioninfo@ \
89         @PIPLIB_LDFLAGS@ @GMP_LDFLAGS@
90 libisl_la_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
91         @PIPLIB_CPPFLAGS@ @GMP_CPPFLAGS@
92
93 isl_test_CPPFLAGS = -I$(srcdir)/include -Iinclude/ @GMP_CPPFLAGS@
94 isl_test_LDADD = libisl.la
95
96 isl_polyhedron_sample_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
97         @GMP_CPPFLAGS@
98 isl_polyhedron_sample_LDADD = libisl.la
99 isl_polyhedron_sample_SOURCES = \
100         polyhedron_sample.c
101
102 isl_pip_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
103         @GMP_CPPFLAGS@
104 isl_pip_LDADD = libisl.la
105 isl_pip_SOURCES = \
106         pip.c
107
108 isl_polyhedron_minimize_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
109         @GMP_CPPFLAGS@
110 isl_polyhedron_minimize_LDADD = libisl.la
111 isl_polyhedron_minimize_SOURCES = \
112         polyhedron_minimize.c
113
114 isl_polytope_scan_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
115         @GMP_CPPFLAGS@
116 isl_polytope_scan_LDADD = libisl.la
117 isl_polytope_scan_SOURCES = \
118         polytope_scan.c
119
120 isl_polyhedron_detect_equalities_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
121         @GMP_CPPFLAGS@
122 isl_polyhedron_detect_equalities_LDADD = libisl.la
123 isl_polyhedron_detect_equalities_SOURCES = \
124         polyhedron_detect_equalities.c
125
126 isl_cat_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
127         @GMP_CPPFLAGS@
128 isl_cat_LDADD = libisl.la
129 isl_cat_SOURCES = \
130         cat.c
131
132 isl_closure_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
133         @GMP_CPPFLAGS@
134 isl_closure_LDADD = libisl.la
135 isl_closure_SOURCES = \
136         closure.c
137
138 nodist_pkginclude_HEADERS = \
139         include/isl_config.h \
140         include/isl_stdint.h
141 pkginclude_HEADERS = \
142         include/isl_arg.h \
143         include/isl_blk.h \
144         include/isl_constraint.h \
145         include/isl_ctx.h \
146         include/isl_dim.h \
147         include/isl_div.h \
148         include/isl_flow.h \
149         include/isl_ilp.h \
150         include/isl_int.h \
151         include/isl_hash.h \
152         include/isl_list.h \
153         include/isl_lp.h \
154         include/isl_mat.h \
155         include/isl_map.h \
156         include/isl_options.h \
157         include/isl_seq.h \
158         include/isl_set.h \
159         include/isl_vec.h
160
161 EXTRA_DIST = \
162         basis_reduction_templ.c \
163         doc/mypod2latex \
164         doc/manual.tex \
165         doc/user.pod \
166         test_inputs
167
168 dist-hook:
169         (cd doc; make manual.pdf)
170         cp doc/manual.pdf $(distdir)/doc/
171
172 pkgconfigdir=$(pkgconfig_libdir)
173 pkgconfig_DATA = $(pkgconfig_libfile)