drop C++ bindings
[isl.git] / interface / Makefile.am
blobb61709a4f509e2e72519842aa02b79d46da76cc0
1 AUTOMAKE_OPTIONS = nostdinc
3 noinst_PROGRAMS = extract_interface
4 TESTS =
5 if HAVE_PYTHON
6   TESTS += isl_test_python.py
7   isl_test_python.py: isl.py
8 endif
9 TEST_EXTENSIONS = .py
10 AM_TESTS_ENVIRONMENT = \
11         export PYTHONPATH=.; \
12         export LD_LIBRARY_PATH=../.libs;
13 PY_LOG_COMPILER = $(PYTHON)
15 includes = -I$(top_builddir) -I$(top_srcdir) \
16         -I$(top_builddir)/include -I$(top_srcdir)/include
18 extract_interface_CPPFLAGS = $(includes)
19 extract_interface_CXXFLAGS = $(CLANG_CXXFLAGS)
20 extract_interface_SOURCES = \
21         generator.h \
22         generator.cc \
23         python.h \
24         python.cc \
25         extract_interface.h \
26         extract_interface.cc
27 extract_interface_LDFLAGS = $(CLANG_LDFLAGS)
28 extract_interface_LDADD = \
29         -lclangFrontend -lclangSerialization -lclangParse -lclangSema \
30         $(LIB_CLANG_EDIT) \
31         -lclangAnalysis -lclangAST -lclangLex -lclangBasic -lclangDriver \
32         $(CLANG_LIBS) $(CLANG_LDFLAGS)
34 CLEANFILES = isl.py
36 # dummy library that captures the dependencies on all headers
37 # that are relevant for the bindings
38 noinst_LIBRARIES = libdep.a
39 libdep_a_CPPFLAGS = $(includes)
40 libdep_a_SOURCES = all.c
42 isl.py: extract_interface libdep.a isl.py.top
43         (cat $(srcdir)/isl.py.top; \
44                 ./extract_interface$(EXEEXT) --language=python $(includes) \
45                         $(srcdir)/all.h) \
46                         > isl.py
48 dist-hook: isl.py
49         cp isl.py $(distdir)/