isl_scheduler: extract out shared add_constraints_dim_map
[isl.git] / interface / Makefile.am
blob020d4d370c43950c9db05af601978bd4a2dd7a4e
1 AUTOMAKE_OPTIONS = nostdinc
3 noinst_PROGRAMS = extract_interface
5 AM_CXXFLAGS = $(CLANG_CXXFLAGS)
6 AM_LDFLAGS = $(CLANG_LDFLAGS)
8 includes = -I$(top_builddir) -I$(top_srcdir) \
9         -I$(top_builddir)/include -I$(top_srcdir)/include
11 extract_interface_CPPFLAGS = $(includes)
12 extract_interface_SOURCES = \
13         generator.h \
14         generator.cc \
15         python.h \
16         python.cc \
17         cpp.h \
18         cpp.cc \
19         extract_interface.h \
20         extract_interface.cc
21 extract_interface_LDADD = \
22         -lclangFrontend -lclangSerialization -lclangParse -lclangSema \
23         $(LIB_CLANG_EDIT) \
24         -lclangAnalysis -lclangAST -lclangLex -lclangBasic -lclangDriver \
25         $(CLANG_LIBS) $(CLANG_LDFLAGS)
27 CLEANFILES = isl.py isl-noexceptions.h
29 test: extract_interface
30         ./extract_interface$(EXEEXT) $(includes) $(srcdir)/all.h
32 isl.py: extract_interface isl.py.top
33         (cat $(srcdir)/isl.py.top; \
34                 ./extract_interface$(EXEEXT) --language=python $(includes) \
35                         $(srcdir)/all.h) \
36                         > isl.py
38 isl-noexceptions.h: extract_interface all.h isl.h.top
39         (cat $(srcdir)/isl.h.top; \
40                 ./extract_interface$(EXEEXT) --language=cpp $(includes) \
41                         $(srcdir)/all.h) \
42                         > isl-noexceptions.h
44 dist-hook: isl.py isl-noexceptions.h
45         cp isl.py isl-noexceptions.h $(distdir)/