isl_scheduler.c: graph_find_node: rename "dim" argument to "space"
[isl.git] / interface / Makefile.am
blob147267ab486f6494e16092b5d37c672660d6b9a4
1 AUTOMAKE_OPTIONS = nostdinc
3 noinst_PROGRAMS = extract_interface
4 if HAVE_CXX11
5   noinst_PROGRAMS += isl_test_cpp
6   TESTS = isl_test_cpp
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_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) \
48                         $(srcdir)/all.h) \
49                         > isl.py
51 isl-noexceptions.h: extract_interface libdep.a isl.h.top
52         (cat $(srcdir)/isl.h.top; \
53                 ./extract_interface$(EXEEXT) --language=cpp $(includes) \
54                         $(srcdir)/all.h) \
55                         > isl-noexceptions.h
57 dist-hook: isl.py isl-noexceptions.h
58         cp isl.py isl-noexceptions.h $(distdir)/