isl_basic_set_opt: avoid invalid access on error path
[platform/upstream/isl.git] / interface / Makefile.am
1 AUTOMAKE_OPTIONS = nostdinc
2
3 noinst_PROGRAMS = extract_interface
4
5 AM_CXXFLAGS = $(CLANG_CXXFLAGS)
6 AM_LDFLAGS = $(CLANG_LDFLAGS)
7
8 INCLUDES = -I$(top_builddir) -I$(top_srcdir) \
9         -I$(top_builddir)/include -I$(top_srcdir)/include
10
11 extract_interface_SOURCES = \
12         python.h \
13         python.cc \
14         extract_interface.h \
15         extract_interface.cc
16 extract_interface_LDADD = \
17         -lclangFrontend -lclangSerialization -lclangParse -lclangSema \
18         $(LIB_CLANG_EDIT) \
19         -lclangAnalysis -lclangAST -lclangLex -lclangBasic -lclangDriver \
20         $(CLANG_LIBS) $(CLANG_LDFLAGS)
21
22 test: extract_interface
23         ./extract_interface$(EXEEXT) $(INCLUDES) $(srcdir)/all.h
24
25 isl.py: extract_interface isl.py.top
26         (cat $(srcdir)/isl.py.top; \
27                 ./extract_interface$(EXEEXT) $(INCLUDES) $(srcdir)/all.h) \
28                         > isl.py
29
30 dist-hook: isl.py
31         cp isl.py $(distdir)/