summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: e362d4c0bbd0a3a0d1fbafd00c65e05912971420 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
if BUNDLED_PIPLIB
MAYBE_PIPLIB = piplib
endif

SUBDIRS = $(MAYBE_PIPLIB) .
DIST_SUBDIRS = $(MAYBE_PIPLIB)

lib_LTLIBRARIES = libisl.la
noinst_PROGRAMS = isl_test
TESTS = isl_test

if HAVE_POLYLIB
ISL_POLYLIB = \
	isl_map_polylib.c
endif

if HAVE_PIPLIB
ISL_PIPLIB = \
	isl_lp_piplib.c \
	isl_map_piplib.c \
	isl_sample_piplib.c \
	isl_sample_piplib.h \
	isl_piplib.c
else
ISL_PIPLIB = \
	isl_lp_no_piplib.c \
	isl_map_no_piplib.c \
	isl_sample_no_piplib.c
endif
if BUNDLED_PIPLIB
PIPLIB_LA = $(top_builddir)/piplib/libpiplibMP.la
endif

libisl_la_SOURCES = \
	$(ISL_PIPLIB) \
	$(ISL_POLYLIB) \
	isl_affine_hull.c \
	isl_blk.c \
	isl_convex_hull.c \
	isl_ctx.c \
	isl_equalities.c \
	isl_equalities.h \
	isl_gmp.c \
	isl_input.c \
	isl_input_omega.c \
	isl_input_omega.h \
	isl_lp.c \
	isl_map.c \
	isl_map_private.h \
	isl_mat.c \
	isl_mat.h \
	isl_sample.h \
	isl_sample.c \
	isl_seq.c \
	isl_vec.c \
	isl_vec.h
EXTRA_libisl_la_SOURCES = \
	isl_lp_piplib.c \
	isl_lp_no_piplib.c \
	isl_map_piplib.c \
	isl_map_no_piplib.c \
	isl_map_polylib.c \
	isl_sample_no_piplib.c \
	isl_sample_piplib.c \
	isl_sample_piplib.h \
	isl_piplib.c
libisl_la_LIBADD = $(PIPLIB_LA) @PIPLIB_LIBS@ @POLYLIB_LIBS@ -lgmp
libisl_la_LDFLAGS = -release @VERSION@ @PIPLIB_LDFLAGS@ @POLYLIB_LDFLAGS@ \
	@GMP_LDFLAGS@
libisl_la_CPPFLAGS = -I$(srcdir)/include -Iinclude/ \
	@PIPLIB_CPPFLAGS@ @POLYLIB_CPPFLAGS@ \
	@GMP_CPPFLAGS@

isl_test_CPPFLAGS = -I$(srcdir)/include -Iinclude/
isl_test_LDADD = libisl.la

pkginclude_HEADERS = \
	include/isl_blk.h \
	include/isl_ctx.h \
	include/isl_int.h \
	include/isl_lp.h \
	include/isl_lp_piplib.h \
	include/isl_map.h \
	include/isl_map_piplib.h \
	include/isl_map_polylib.h \
	include/isl_piplib.h \
	include/isl_polylib.h \
	include/isl_seq.h \
	include/isl_set.h \
	include/isl_set_polylib.h

EXTRA_DIST = test_inputs