Makefile.am: only include piplib in distribution if it has been configured
[platform/upstream/isl.git] / Makefile.am
1 if BUNDLED_PIPLIB
2 MAYBE_PIPLIB = piplib
3 endif
4
5 SUBDIRS = $(MAYBE_PIPLIB) .
6 DIST_SUBDIRS = $(MAYBE_PIPLIB)
7
8 lib_LTLIBRARIES = libisl.la
9 noinst_PROGRAMS = isl_test
10 TESTS = isl_test
11
12 if HAVE_POLYLIB
13 ISL_POLYLIB = \
14         isl_map_polylib.c
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_convex_hull.c \
39         isl_ctx.c \
40         isl_equalities.c \
41         isl_equalities.h \
42         isl_gmp.c \
43         isl_input.c \
44         isl_lp.c \
45         isl_map.c \
46         isl_map_private.h \
47         isl_mat.c \
48         isl_mat.h \
49         isl_sample.h \
50         isl_sample.c \
51         isl_seq.c \
52         isl_vec.c \
53         isl_vec.h
54 EXTRA_libisl_la_SOURCES = \
55         isl_lp_piplib.c \
56         isl_lp_no_piplib.c \
57         isl_map_piplib.c \
58         isl_map_no_piplib.c \
59         isl_map_polylib.c \
60         isl_sample_no_piplib.c \
61         isl_sample_piplib.c \
62         isl_piplib.c
63 libisl_la_LIBADD = $(PIPLIB_LA) @PIPLIB_LIBS@ @POLYLIB_LIBS@ -lgmp
64 libisl_la_LDFLAGS = -release @VERSION@ @PIPLIB_LDFLAGS@ @POLYLIB_LDFLAGS@ \
65         @GMP_LDFLAGS@
66 libisl_la_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
67         @PIPLIB_CPPFLAGS@ @POLYLIB_CPPFLAGS@ \
68         @GMP_CPPFLAGS@
69
70 isl_test_CPPFLAGS = -I$(srcdir)/include -Iinclude/
71 isl_test_LDADD = libisl.la
72
73 pkginclude_HEADERS = \
74         include/isl_blk.h \
75         include/isl_ctx.h \
76         include/isl_int.h \
77         include/isl_lp.h \
78         include/isl_lp_piplib.h \
79         include/isl_map.h \
80         include/isl_map_piplib.h \
81         include/isl_map_polylib.h \
82         include/isl_piplib.h \
83         include/isl_polylib.h \
84         include/isl_seq.h \
85         include/isl_set.h \
86         include/isl_set_polylib.h