add isl_aff_{take,restore}_domain_local_space
[isl.git] / interface / Makefile.am
blob9e67bfa42a60f8bb41cf65220951bd16fb660dbe
1 AUTOMAKE_OPTIONS = nostdinc
3 noinst_PROGRAMS = extract_interface
4 TESTS =
5 if HAVE_CXX11
6   noinst_PROGRAMS += isl_test_cpp-noexceptions
7   TESTS += isl_test_cpp-noexceptions
8 endif
9 if HAVE_PYTHON
10   TESTS += isl_test_python.py
11   isl_test_python.py: isl.py
12 endif
13 TEST_EXTENSIONS = .py
14 AM_TESTS_ENVIRONMENT = \
15         export PYTHONPATH=.; \
16         export LD_LIBRARY_PATH=../.libs;
17 PY_LOG_COMPILER = $(PYTHON)
19 includes = -I$(top_builddir) -I$(top_srcdir) \
20         -I$(top_builddir)/include -I$(top_srcdir)/include
22 extract_interface_CPPFLAGS = $(includes)
23 extract_interface_CXXFLAGS = $(CLANG_CXXFLAGS)
24 extract_interface_SOURCES = \
25         generator.h \
26         generator.cc \
27         python.h \
28         python.cc \
29         cpp.h \
30         cpp.cc \
31         extract_interface.h \
32         extract_interface.cc
33 extract_interface_LDFLAGS = $(CLANG_LDFLAGS)
34 extract_interface_LDADD = \
35         -lclangFrontend -lclangSerialization -lclangParse -lclangSema \
36         $(LIB_CLANG_EDIT) \
37         -lclangAnalysis -lclangAST -lclangLex -lclangBasic -lclangDriver \
38         $(CLANG_LIBS) $(CLANG_LDFLAGS)
40 isl_test_cpp_noexceptions_CPPFLAGS = $(includes) -I.
41 isl_test_cpp_noexceptions_CXXFLAGS = @CXX11FLAGS@
42 isl_test_cpp_noexceptions_SOURCES = \
43         isl_test_cpp-noexceptions.cc \
44         isl-noexceptions.h
45 isl_test_cpp_noexceptions_LDFLAGS = @MP_LDFLAGS@
46 isl_test_cpp_noexceptions_LDADD = ../libisl.la @MP_LIBS@
48 BUILT_SOURCES = isl-noexceptions.h
49 CLEANFILES = isl.py isl-noexceptions.h
51 # dummy library that captures the dependencies on all headers
52 # that are relevant for the bindings
53 noinst_LIBRARIES = libdep.a
54 libdep_a_CPPFLAGS = $(includes)
55 libdep_a_SOURCES = all.c
57 isl.py: extract_interface libdep.a isl.py.top
58         (cat $(srcdir)/isl.py.top; \
59                 ./extract_interface$(EXEEXT) --language=python $(includes) \
60                         $(srcdir)/all.h) \
61                         > isl.py
63 isl-noexceptions.h: extract_interface libdep.a isl-noexceptions.h.top \
64                 isl-noexceptions.h.pre isl-noexceptions.h.bot
65         (cat $(srcdir)/isl-noexceptions.h.top $(srcdir)/all.h \
66             $(srcdir)/isl-noexceptions.h.pre; \
67                 ./extract_interface$(EXEEXT) --language=cpp $(includes) \
68                         $(srcdir)/all.h; \
69                 cat $(srcdir)/isl-noexceptions.h.bot) \
70                         > isl-noexceptions.h
72 dist-hook: isl.py isl-noexceptions.h
73         cp isl.py isl-noexceptions.h $(distdir)/