3 ISL_LA = $(top_builddir)/isl/libisl.la
6 SUBDIRS = $(MAYBE_ISL) .
7 DIST_SUBDIRS = $(MAYBE_ISL)
11 cd isl; $(MAKE) $(AM_MAKEFLAGS) libisl.la
13 ACLOCAL_AMFLAGS = -I m4
15 LIB_ISL = $(ISL_LA) @ISL_LIBS@
17 lib_LTLIBRARIES = libpet.la
18 bin_PROGRAMS = @extra_bin_programs@
19 noinst_PROGRAMS = @extra_noinst_programs@ pet_codegen pet_check_code
20 EXTRA_PROGRAMS = pet pet_scop_cmp
22 EXTRA_TESTS = pet_test.sh codegen_test.sh
25 include_HEADERS = include/pet.h
41 interface/isl.py.top \
45 PET_INCLUDES = -I$(srcdir) -I$(srcdir)/include
47 AM_CFLAGS = $(PET_INCLUDES) @ISL_CFLAGS@
48 AM_CXXFLAGS = $(PET_INCLUDES) $(CLANG_CXXFLAGS) @ISL_CFLAGS@
49 AM_LDFLAGS = $(CLANG_LDFLAGS)
56 clang_compatibility.h \
76 isl_id_to_pet_expr.h \
77 isl_id_to_pet_expr.c \
89 pet_expr_to_isl_pw_aff.h \
90 pet_expr_to_isl_pw_aff.c \
115 libpet_la_LDFLAGS = -version-info @versioninfo@ $(AM_LDFLAGS) $(CLANG_RFLAG)
116 libpet_la_LIBADD = -lclangFrontend -lclangParse -lclangSema \
117 $(LIB_CLANG_EDIT) -lclangAnalysis \
118 -lclangAST -lclangLex -lclangBasic -lclangDriver -lclangSerialization \
119 $(CLANG_LIBS) $(CLANG_LDFLAGS) $(LIB_ISL)
121 pet_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
122 pet_LDFLAGS = $(AM_LDFLAGS) @LIBYAML_LDFLAGS@
128 pet_LDADD = libpet.la $(LIB_ISL) -lyaml
130 pet_scop_cmp_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
131 pet_scop_cmp_LDFLAGS = @LIBYAML_LDFLAGS@
132 pet_scop_cmp_LDADD = libpet.la $(LIB_ISL) -lyaml
133 pet_scop_cmp_SOURCES = \
139 pet_codegen_CFLAGS = $(AM_CFLAGS)
140 pet_codegen_LDFLAGS =
141 pet_codegen_LDADD = libpet.la $(LIB_ISL)
142 pet_codegen_SOURCES = \
146 pet_check_code_CFLAGS = $(AM_CFLAGS)
147 pet_check_code_LDFLAGS =
148 pet_check_code_LDADD = libpet.la $(LIB_ISL)
149 pet_check_code_SOURCES = \
154 # dummy library that captures the dependencies on all headers
155 # that are relevant for the bindings
156 noinst_LIBRARIES = libdep.a
157 libdep_a_CPPFLAGS = $(DEFAULT_INCLUDES) @ISL_CFLAGS@
158 libdep_a_SOURCES = all.c
160 isl.py: libdep.a interface/isl.py.top
161 (cat $(srcdir)/interface/isl.py.top && \
162 @ISL_BUILDDIR@/interface/extract_interface$(EXEEXT) \
164 $(DEFAULT_INCLUDES) @ISL_CFLAGS@ \
165 "@ISL_SRCDIR@/all.h") \
166 > $@ || (rm $@ && false)
171 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
173 gitversion.h: @GIT_HEAD@
174 $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@