isl_mat_variable_compression: fix use after free
[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 if NEED_GET_MEMORY_FUNCTIONS
37 GET_MEMORY_FUNCTIONS=mp_get_memory_functions.c
38 endif
39
40 libisl_la_SOURCES = \
41         $(ISL_PIPLIB) \
42         $(ISL_POLYLIB) \
43         $(GET_MEMORY_FUNCTIONS) \
44         isl_affine_hull.c \
45         isl_blk.c \
46         isl_constraint.c \
47         isl_convex_hull.c \
48         isl_ctx.c \
49         isl_dim.c \
50         isl_div.c \
51         isl_equalities.c \
52         isl_equalities.h \
53         isl_gmp.c \
54         isl_hash.c \
55         isl_input.c \
56         isl_input_omega.c \
57         isl_input_omega.h \
58         isl_list.c \
59         isl_lp.c \
60         isl_map.c \
61         isl_map_simplify.c \
62         isl_map_private.h \
63         isl_mat.c \
64         isl_mat.h \
65         isl_name.c \
66         isl_name.h \
67         isl_output.c \
68         isl_sample.h \
69         isl_sample.c \
70         isl_stream.c \
71         isl_stream.h \
72         isl_seq.c \
73         isl_vec.c \
74         isl_vec.h
75 EXTRA_libisl_la_SOURCES = \
76         isl_lp_piplib.c \
77         isl_lp_no_piplib.c \
78         isl_map_piplib.c \
79         isl_map_no_piplib.c \
80         isl_map_polylib.c \
81         isl_sample_no_piplib.c \
82         isl_sample_piplib.c \
83         isl_sample_piplib.h \
84         isl_piplib.c
85 libisl_la_LIBADD = $(PIPLIB_LA) @PIPLIB_LIBS@ @POLYLIB_LIBS@ -lgmp
86 libisl_la_LDFLAGS = -release @VERSION@ @PIPLIB_LDFLAGS@ @POLYLIB_LDFLAGS@ \
87         @GMP_LDFLAGS@
88 libisl_la_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
89         @PIPLIB_CPPFLAGS@ @POLYLIB_CPPFLAGS@ \
90         @GMP_CPPFLAGS@
91
92 isl_test_CPPFLAGS = -I$(srcdir)/include -Iinclude/ @GMP_CPPFLAGS@
93 isl_test_LDADD = libisl.la
94
95 nodist_pkginclude_HEADERS = \
96         include/isl_ctx.h \
97         include/isl_stdint.h
98 pkginclude_HEADERS = \
99         include/isl_blk.h \
100         include/isl_constraint.h \
101         include/isl_dim.h \
102         include/isl_div.h \
103         include/isl_int.h \
104         include/isl_hash.h \
105         include/isl_list.h \
106         include/isl_lp.h \
107         include/isl_lp_piplib.h \
108         include/isl_map.h \
109         include/isl_map_piplib.h \
110         include/isl_map_polylib.h \
111         include/isl_piplib.h \
112         include/isl_polylib.h \
113         include/isl_seq.h \
114         include/isl_set.h \
115         include/isl_set_polylib.h
116
117 EXTRA_DIST = test_inputs