buildtools/isl/interface/Makefile.am
2014-01-27 21:38:34 +01:00

32 lines
809 B
Makefile

AUTOMAKE_OPTIONS = nostdinc
noinst_PROGRAMS = extract_interface
AM_CXXFLAGS = $(CLANG_CXXFLAGS)
AM_LDFLAGS = $(CLANG_LDFLAGS)
INCLUDES = -I$(top_builddir) -I$(top_srcdir) \
-I$(top_builddir)/include -I$(top_srcdir)/include
extract_interface_SOURCES = \
python.h \
python.cc \
extract_interface.h \
extract_interface.cc
extract_interface_LDADD = \
-lclangFrontend -lclangSerialization -lclangParse -lclangSema \
$(LIB_CLANG_EDIT) \
-lclangAnalysis -lclangAST -lclangLex -lclangBasic -lclangDriver \
$(CLANG_LIBS) $(CLANG_LDFLAGS)
test: extract_interface
./extract_interface$(EXEEXT) $(INCLUDES) $(srcdir)/all.h
isl.py: extract_interface isl.py.top
(cat $(srcdir)/isl.py.top; \
./extract_interface$(EXEEXT) $(INCLUDES) $(srcdir)/all.h) \
> isl.py
dist-hook: isl.py
cp isl.py $(distdir)/