export isl_union_set_preimage_*
[isl.git] / interface / Makefile.am
blob13c35f03878c861426492bcd0b9b2da94944b5c1
1 AUTOMAKE_OPTIONS = nostdinc
3 noinst_PROGRAMS = extract_interface
4 if HAVE_CXX11
5   noinst_PROGRAMS += isl_test_cpp-noexceptions
6   TESTS = isl_test_cpp-noexceptions
7 endif
9 includes = -I$(top_builddir) -I$(top_srcdir) \
10         -I$(top_builddir)/include -I$(top_srcdir)/include
12 extract_interface_CPPFLAGS = $(includes)
13 extract_interface_CXXFLAGS = $(CLANG_CXXFLAGS)
14 extract_interface_SOURCES = \
15         generator.h \
16         generator.cc \
17         python.h \
18         python.cc \
19         cpp.h \
20         cpp.cc \
21         extract_interface.h \
22         extract_interface.cc
23 extract_interface_LDFLAGS = $(CLANG_LDFLAGS)
24 extract_interface_LDADD = \
25         -lclangFrontend -lclangSerialization -lclangParse -lclangSema \
26         $(LIB_CLANG_EDIT) \
27         -lclangAnalysis -lclangAST -lclangLex -lclangBasic -lclangDriver \
28         $(CLANG_LIBS) $(CLANG_LDFLAGS)
30 isl_test_cpp_noexceptions_CPPFLAGS = $(includes) -I.
31 isl_test_cpp_noexceptions_CXXFLAGS = @CXX11FLAGS@
32 isl_test_cpp_noexceptions_SOURCES = \
33         isl_test_cpp-noexceptions.cc \
34         isl-noexceptions.h
35 isl_test_cpp_noexceptions_LDFLAGS = @MP_LDFLAGS@
36 isl_test_cpp_noexceptions_LDADD = ../libisl.la @MP_LIBS@
38 BUILT_SOURCES = isl-noexceptions.h
39 CLEANFILES = isl.py isl-noexceptions.h
41 # dummy library that captures the dependencies on all headers
42 # that are relevant for the bindings
43 noinst_LIBRARIES = libdep.a
44 libdep_a_CPPFLAGS = $(includes)
45 libdep_a_SOURCES = all.c
47 isl.py: extract_interface libdep.a isl.py.top
48         (cat $(srcdir)/isl.py.top; \
49                 ./extract_interface$(EXEEXT) --language=python $(includes) \
50                         $(srcdir)/all.h) \
51                         > isl.py
53 isl-noexceptions.h: extract_interface libdep.a isl-noexceptions.h.top
54         (cat $(srcdir)/isl-noexceptions.h.top; \
55                 ./extract_interface$(EXEEXT) --language=cpp $(includes) \
56                         $(srcdir)/all.h) \
57                         > isl-noexceptions.h
59 dist-hook: isl.py isl-noexceptions.h
60         cp isl.py isl-noexceptions.h $(distdir)/