add convex hull computation
[platform/upstream/isl.git] / Makefile.am
1 if BUNDLED_PIPLIB
2 MAYBE_PIPLIB = piplib
3 endif
4
5 SUBDIRS = $(MAYBE_PIPLIB) .
6
7 lib_LTLIBRARIES = libisl.la
8 noinst_PROGRAMS = isl_test
9 TESTS = isl_test
10
11 if HAVE_POLYLIB
12 ISL_POLYLIB = \
13         isl_map_polylib.c \
14         isl_polylib.h
15 endif
16
17 if HAVE_PIPLIB
18 ISL_PIPLIB = \
19         isl_lp_piplib.c \
20         isl_map_piplib.c \
21         isl_sample_piplib.c \
22         isl_piplib.c
23 else
24 ISL_PIPLIB = \
25         isl_lp_no_piplib.c \
26         isl_map_no_piplib.c \
27         isl_sample_no_piplib.c
28 endif
29 if BUNDLED_PIPLIB
30 PIPLIB_LA = $(top_builddir)/piplib/libpiplibMP.la
31 endif
32
33 libisl_la_SOURCES = \
34         $(ISL_PIPLIB) \
35         $(ISL_POLYLIB) \
36         isl_affine_hull.c \
37         isl_blk.c \
38         isl_blk.h \
39         isl_convex_hull.c \
40         isl_ctx.c \
41         isl_ctx.h \
42         isl_equalities.c \
43         isl_equalities.h \
44         isl_gmp.c \
45         isl_input.c \
46         isl_int.h \
47         isl_lp.h \
48         isl_lp.c \
49         isl_map.c \
50         isl_map.h \
51         isl_map_private.h \
52         isl_mat.c \
53         isl_mat.h \
54         isl_sample.h \
55         isl_sample.c \
56         isl_set.h \
57         isl_seq.c \
58         isl_seq.h \
59         isl_vec.c \
60         isl_vec.h
61 EXTRA_libisl_la_SOURCES = \
62         isl_lp_piplib.c \
63         isl_lp_no_piplib.c \
64         isl_map_piplib.c \
65         isl_map_no_piplib.c \
66         isl_map_polylib.c \
67         isl_sample_no_piplib.c \
68         isl_sample_piplib.c \
69         isl_piplib.c
70 libisl_la_LIBADD = $(PIPLIB_LA) @PIPLIB_LIBS@ @POLYLIB_LIBS@ -lgmp
71 libisl_la_LDFLAGS = -release @VERSION@ @PIPLIB_LDFLAGS@ @POLYLIB_LDFLAGS@ \
72         @GMP_LDFLAGS@
73 libisl_la_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
74         @PIPLIB_CPPFLAGS@ @POLYLIB_CPPFLAGS@ \
75         @GMP_CPPFLAGS@
76
77 isl_test_CPPFLAGS = -I$(srcdir)/include -Iinclude/
78 isl_test_LDADD = libisl.la
79
80 pkginclude_HEADERS = \
81         include/isl_blk.h \
82         include/isl_ctx.h \
83         include/isl_int.h \
84         include/isl_lp.h \
85         include/isl_lp_piplib.h \
86         include/isl_map.h \
87         include/isl_map_piplib.h \
88         include/isl_map_polylib.h \
89         include/isl_piplib.h \
90         include/isl_polylib.h \
91         include/isl_seq.h \
92         include/isl_set.h \
93         include/isl_set_polylib.h