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 \
21 EXTRA_PROGRAMS = pet pet_scop_cmp
23 EXTRA_TESTS = pet_test.sh codegen_test.sh
26 include_HEADERS = include/pet.h
42 interface/isl.py.top \
46 PET_INCLUDES = -I$(srcdir) -I$(srcdir)/include
48 AM_CFLAGS = $(PET_INCLUDES) @ISL_CFLAGS@
49 AM_CXXFLAGS = $(PET_INCLUDES) $(CLANG_CXXFLAGS) @ISL_CFLAGS@
50 AM_LDFLAGS = $(CLANG_LDFLAGS)
57 clang_compatibility.h \
77 isl_id_to_pet_expr.h \
78 isl_id_to_pet_expr.c \
90 pet_expr_to_isl_pw_aff.h \
91 pet_expr_to_isl_pw_aff.c \
106 set_lang_defaults_arg4.h \
117 libpet_la_LDFLAGS = -version-info @versioninfo@ $(AM_LDFLAGS) $(CLANG_RFLAG)
118 libpet_la_LIBADD = $(LIB_ISL) $(CLANG_LIBS) $(CLANG_LDFLAGS)
120 pet_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
121 pet_LDFLAGS = $(AM_LDFLAGS) @LIBYAML_LDFLAGS@
127 pet_LDADD = libpet.la $(LIB_ISL) -lyaml
129 pet_scop_cmp_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@
130 pet_scop_cmp_LDFLAGS = @LIBYAML_LDFLAGS@
131 pet_scop_cmp_LDADD = libpet.la $(LIB_ISL) -lyaml
132 pet_scop_cmp_SOURCES = \
138 pet_codegen_CFLAGS = $(AM_CFLAGS)
139 pet_codegen_LDFLAGS =
140 pet_codegen_LDADD = libpet.la $(LIB_ISL)
141 pet_codegen_SOURCES = \
145 pet_check_code_CFLAGS = $(AM_CFLAGS)
146 pet_check_code_LDFLAGS =
147 pet_check_code_LDADD = libpet.la $(LIB_ISL)
148 pet_check_code_SOURCES = \
152 pet_loopback_CFLAGS = $(AM_CFLAGS)
153 pet_loopback_LDFLAGS =
154 pet_loopback_LDADD = libpet.la $(LIB_ISL)
155 pet_loopback_SOURCES = \
160 # dummy library that captures the dependencies on all headers
161 # that are relevant for the bindings
162 noinst_LIBRARIES = libdep.a
163 libdep_a_CPPFLAGS = $(DEFAULT_INCLUDES) @ISL_CFLAGS@
164 libdep_a_SOURCES = all.c
166 isl.py: libdep.a interface/isl.py.top
167 (cat $(srcdir)/interface/isl.py.top && \
168 @ISL_BUILDDIR@/interface/extract_interface$(EXEEXT) \
170 $(DEFAULT_INCLUDES) @ISL_CFLAGS@ \
171 "@ISL_SRCDIR@/all.h") \
172 > $@ || (rm $@ && false)
177 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
179 gitversion.h: @GIT_HEAD@
180 $(AM_V_GEN)echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@