1 AUTOMAKE_OPTIONS = nostdinc
3 noinst_PROGRAMS = extract_interface
6 noinst_PROGRAMS += isl_test_cpp-noexceptions
7 TESTS += isl_test_cpp-noexceptions
10 TESTS += isl_test_python.py
11 isl_test_python.py: isl.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 = \
33 extract_interface_LDFLAGS = $(CLANG_LDFLAGS)
34 extract_interface_LDADD = \
35 -lclangFrontend -lclangSerialization -lclangParse -lclangSema \
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 \
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) \
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) \
69 cat $(srcdir)/isl-noexceptions.h.bot) \
72 dist-hook: isl.py isl-noexceptions.h
73 cp isl.py isl-noexceptions.h $(distdir)/