use GMP flags when compiling isl_test
[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 ACLOCAL_AMFLAGS = -I m4
9
10 lib_LTLIBRARIES = libisl.la
11 noinst_PROGRAMS = isl_test
12 TESTS = isl_test
13
14 if HAVE_POLYLIB
15 ISL_POLYLIB = \
16         isl_map_polylib.c
17 endif
18
19 if HAVE_PIPLIB
20 ISL_PIPLIB = \
21         isl_lp_piplib.c \
22         isl_map_piplib.c \
23         isl_sample_piplib.c \
24         isl_sample_piplib.h \
25         isl_piplib.c
26 else
27 ISL_PIPLIB = \
28         isl_lp_no_piplib.c \
29         isl_map_no_piplib.c \
30         isl_sample_no_piplib.c
31 endif
32 if BUNDLED_PIPLIB
33 PIPLIB_LA = $(top_builddir)/piplib/libpiplibMP.la
34 endif
35
36 libisl_la_SOURCES = \
37         $(ISL_PIPLIB) \
38         $(ISL_POLYLIB) \
39         isl_affine_hull.c \
40         isl_blk.c \
41         isl_constraint.c \
42         isl_convex_hull.c \
43         isl_ctx.c \
44         isl_equalities.c \
45         isl_equalities.h \
46         isl_gmp.c \
47         isl_input.c \
48         isl_input_omega.c \
49         isl_input_omega.h \
50         isl_list.c \
51         isl_lp.c \
52         isl_map.c \
53         isl_map_private.h \
54         isl_mat.c \
55         isl_mat.h \
56         isl_output.c \
57         isl_sample.h \
58         isl_sample.c \
59         isl_seq.c \
60         isl_vec.c \
61         isl_vec.h
62 EXTRA_libisl_la_SOURCES = \
63         isl_lp_piplib.c \
64         isl_lp_no_piplib.c \
65         isl_map_piplib.c \
66         isl_map_no_piplib.c \
67         isl_map_polylib.c \
68         isl_sample_no_piplib.c \
69         isl_sample_piplib.c \
70         isl_sample_piplib.h \
71         isl_piplib.c
72 libisl_la_LIBADD = $(PIPLIB_LA) @PIPLIB_LIBS@ @POLYLIB_LIBS@ -lgmp
73 libisl_la_LDFLAGS = -release @VERSION@ @PIPLIB_LDFLAGS@ @POLYLIB_LDFLAGS@ \
74         @GMP_LDFLAGS@
75 libisl_la_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
76         @PIPLIB_CPPFLAGS@ @POLYLIB_CPPFLAGS@ \
77         @GMP_CPPFLAGS@
78
79 isl_test_CPPFLAGS = -I$(srcdir)/include -Iinclude/ @GMP_CPPFLAGS@
80 isl_test_LDADD = libisl.la
81
82 nodist_pkginclude_HEADERS = \
83         include/isl_ctx.h \
84         include/isl_stdint.h
85 pkginclude_HEADERS = \
86         include/isl_blk.h \
87         include/isl_constraint.h \
88         include/isl_int.h \
89         include/isl_list.h \
90         include/isl_lp.h \
91         include/isl_lp_piplib.h \
92         include/isl_map.h \
93         include/isl_map_piplib.h \
94         include/isl_map_polylib.h \
95         include/isl_piplib.h \
96         include/isl_polylib.h \
97         include/isl_seq.h \
98         include/isl_set.h \
99         include/isl_set_polylib.h
100
101 EXTRA_DIST = test_inputs