1 AUTOMAKE_OPTIONS = nostdinc
3 noinst_PROGRAMS = extract_interface
5 noinst_PROGRAMS += isl_test_cpp
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_CPPFLAGS = $(includes) -I.
31 isl_test_cpp_CXXFLAGS = @CXX11FLAGS@
32 isl_test_cpp_SOURCES = isl_test_cpp.cpp isl-noexceptions.h
33 isl_test_cpp_LDFLAGS = @MP_LDFLAGS@
34 isl_test_cpp_LDADD = ../libisl.la @MP_LIBS@
36 BUILT_SOURCES = isl-noexceptions.h
37 CLEANFILES = isl.py isl-noexceptions.h
39 # dummy library that captures the dependencies on all headers
40 # that are relevant for the bindings
41 noinst_LIBRARIES = libdep.a
42 libdep_a_CPPFLAGS = $(includes)
43 libdep_a_SOURCES = all.c
45 isl.py: extract_interface libdep.a isl.py.top
46 (cat $(srcdir)/isl.py.top; \
47 ./extract_interface$(EXEEXT) --language=python $(includes) \
51 isl-noexceptions.h: extract_interface libdep.a isl.h.top
52 (cat $(srcdir)/isl.h.top; \
53 ./extract_interface$(EXEEXT) --language=cpp $(includes) \
57 dist-hook: isl.py isl-noexceptions.h
58 cp isl.py isl-noexceptions.h $(distdir)/