1 AUTOMAKE_OPTIONS = nostdinc
3 noinst_PROGRAMS = extract_interface
5 noinst_PROGRAMS += isl_test_cpp-noexceptions
6 TESTS = isl_test_cpp-noexceptions
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 = \
23 extract_interface_LDFLAGS = $(CLANG_LDFLAGS)
24 extract_interface_LDADD = \
25 -lclangFrontend -lclangSerialization -lclangParse -lclangSema \
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 \
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) \
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) \
59 dist-hook: isl.py isl-noexceptions.h
60 cp isl.py isl-noexceptions.h $(distdir)/