3 CLOOG_ISL_LA = $(top_builddir)/cloog/libcloog-isl.la
6 MAYBE_BARVINOK = barvinok
7 BARVINOK_LA = $(top_builddir)/barvinok/libbarvinok.la
11 ISL_LA = $(top_builddir)/isl/libisl.la
15 PET_LA = $(top_builddir)/pet/libpet.la
17 SUBDIRS = $(MAYBE_ISL) $(MAYBE_PET) $(MAYBE_CLOOG) $(MAYBE_BARVINOK) . tests
20 cloog/libcloog-isl.la: FORCE
21 $(MAKE) $(AM_MAKEFLAGS) -C cloog libcloog-isl.la
22 barvinok/libbarvinok.la: FORCE
23 $(MAKE) $(AM_MAKEFLAGS) -C barvinok libbarvinok.la
25 cd isl; $(MAKE) $(AM_MAKEFLAGS) libisl.la
27 cd pet; $(MAKE) $(AM_MAKEFLAGS) libpet.la
29 INCLUDES = -I$(srcdir)/include
30 ACLOCAL_AMFLAGS = -I m4
32 LIB_ISL = $(ISL_LA) @ISL_LIBS@
33 LIB_PET = $(PET_LA) @PET_LIBS@
34 LIB_CLOOG_ISL = $(CLOOG_ISL_LA) @CLOOG_LIBS@
36 pkginclude_HEADERS = \
41 lib_LTLIBRARIES = libpdg.la libadg.la
48 libpdg_la_CPPFLAGS = @ISL_CPPFLAGS@
49 libpdg_la_LIBADD = $(LTLIBOBJS) $(LIB_ISL)
50 libpdg_la_LDFLAGS = -release @VERSION@
57 libadg_la_CPPFLAGS = @ISL_CPPFLAGS@
58 libadg_la_LDFLAGS = @LIBYAML_LDFLAGS@
59 libadg_la_LIBADD = $(LIB_ISL) -lyaml
61 SUIFLIBS = -ldependence -lsuifmath -lbuilder -luseful -lsuif1 -lporky
62 pers_LDADD = $(SUIFLIBS) libpdg.la @OMEGA_PLUS_LIBS@ \
63 $(LIB_ISL) -lgmp @syck_LIBS@
64 pers_LDFLAGS = @SUIFLDFLAGS@ @OMEGA_PLUS_LDFLAGS@
65 pers_CPPFLAGS = @ISL_CPPFLAGS@ @OMEGA_PLUS_CFLAGS@
81 nodist_pers_SOURCES = \
85 sloog_LDADD = libpdg.la $(LIB_CLOOG_ISL) $(SUIFLIBS) \
86 @OMEGA_PLUS_LIBS@ $(LIB_ISL) -lgmp @syck_LIBS@
87 sloog_LDFLAGS = @CLOOG_LDFLAGS@ @SUIFLDFLAGS@ @OMEGA_PLUS_LDFLAGS@
88 sloog_CPPFLAGS = @ISL_CPPFLAGS@ @CLOOG_CPPFLAGS@ @OMEGA_PLUS_CFLAGS@
104 nodist_sloog_SOURCES = \
108 testyaml_CPPFLAGS = @ISL_CPPFLAGS@
109 testyaml_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
113 da_CPPFLAGS = @ISL_CPPFLAGS@
114 da_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
130 SIZE_CLOOG_LDADD = -ldl
132 pn_LDADD = libpdg.la $(LIB_CLOOG_ISL) $(BARVINOK_LA) @barvinok_LIBS@ -lgmp \
133 $(SIZE_CLOOG_LDADD) \
135 pn_LDFLAGS = @CLOOG_LDFLAGS@
136 pn_CPPFLAGS = @ISL_CPPFLAGS@ @CLOOG_CPPFLAGS@ @barvinok_CFLAGS@ \
155 EXTRA_pn_SOURCES = size_cloog.cc size_cloog.h
157 mem_LDADD = libpdg.la $(LIB_CLOOG_ISL) \
158 $(LIB_ISL) $(BARVINOK_LA) @barvinok_LIBS@ \
160 mem_LDFLAGS = @CLOOG_LDFLAGS@
161 mem_CPPFLAGS = @ISL_CPPFLAGS@ @CLOOG_CPPFLAGS@ @barvinok_CFLAGS@ \
174 mem_bound_LDADD = libpdg.la $(LIB_ISL) $(BARVINOK_LA) @barvinok_LIBS@ -lgmp \
176 mem_bound_CPPFLAGS = @ISL_CPPFLAGS@ @barvinok_CFLAGS@ @NTL_CPPFLAGS@
177 mem_bound_SOURCES = \
188 dependence_graph_relation_CPPFLAGS = @ISL_CPPFLAGS@
189 dependence_graph_relation_LDADD = libpdg.la \
190 $(LIB_ISL) -lgmp @syck_LIBS@
191 dependence_graph_relation_SOURCES = \
194 dependence_graph_relation_options.h \
195 dependence_graph_relation_options.c \
196 dependence_graph_relation.cc \
200 translate_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
202 translate_CPPFLAGS = @ISL_CPPFLAGS@
203 translate_SOURCES = \
210 dump_sizes_CPPFLAGS = @ISL_CPPFLAGS@
211 dump_sizes_LDADD = libpdg.la $(LIB_ISL) -lgmp -lgmp @syck_LIBS@
212 dump_sizes_SOURCES = \
215 dump_dependences_CPPFLAGS = @ISL_CPPFLAGS@
216 dump_dependences_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
217 dump_dependences_SOURCES = \
220 dump_schedules_CPPFLAGS = @ISL_CPPFLAGS@
221 dump_schedules_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
222 dump_schedules_SOURCES = \
225 dump_model_CPPFLAGS = @ISL_CPPFLAGS@
226 dump_model_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
227 dump_model_SOURCES = \
230 channel_summary_CPPFLAGS = @ISL_CPPFLAGS@
231 channel_summary_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
232 channel_summary_SOURCES = \
235 check_channel_sizes_LDADD = libpdg.la $(LIB_CLOOG_ISL) \
236 $(LIB_ISL) -lgmp @syck_LIBS@
237 check_channel_sizes_LDFLAGS = @CLOOG_LDFLAGS@
238 check_channel_sizes_CPPFLAGS = @ISL_CPPFLAGS@ @CLOOG_CPPFLAGS@
239 check_channel_sizes_SOURCES = \
240 check_channel_sizes.cc \
244 pn2dot_CPPFLAGS = @ISL_CPPFLAGS@
245 pn2dot_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
249 pn2adg_LDADD = libadg.la libpdg.la $(LIB_CLOOG_ISL) $(LIB_ISL) -lgmp \
250 @libxml2_LIBS@ @syck_LIBS@
251 pn2adg_CPPFLAGS = @ISL_CPPFLAGS@
252 pn2adg_CXXFLAGS = @CLOOG_CPPFLAGS@ @LIBYAML_CPPFLAGS@ @libxml2_CFLAGS@
253 pn2adg_LDFLAGS = @CLOOG_LDFLAGS@ @LIBYAML_LDFLAGS@
265 adg_cmp_LDADD = libadg.la $(LIB_ISL) -lgmp
266 adg_cmp_CPPFLAGS = @ISL_CPPFLAGS@
267 adg_cmp_CXXFLAGS = @LIBYAML_CPPFLAGS@
268 adg_cmp_LDFLAGS = @LIBYAML_LDFLAGS@
274 adg2dot_LDADD = libadg.la $(LIB_ISL) -lgmp
275 adg2dot_CPPFLAGS = @ISL_CPPFLAGS@
276 adg2dot_CXXFLAGS = @LIBYAML_CPPFLAGS@
277 adg2dot_LDFLAGS = @LIBYAML_LDFLAGS@
283 eqv_CPPFLAGS = @ISL_CPPFLAGS@
284 eqv_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
287 dependence_graph.cc \
292 eqv2_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@ \
293 @VCSN_LDFLAGS@ -lvcsn-common -lbench \
294 @OMEGA_PLUS_LDFLAGS@ @OMEGA_PLUS_LIBS@
295 eqv2_CPPFLAGS = @ISL_CPPFLAGS@ @VCSN_CFLAGS@ @OMEGA_PLUS_CFLAGS@
298 dependence_graph.cc \
305 eqv3_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
306 eqv3_CPPFLAGS = @ISL_CPPFLAGS@ @VCSN_CFLAGS@
309 dependence_graph.cc \
316 eqv_cmp_CFLAGS = @ISL_CPPFLAGS@ @LIBYAML_CPPFLAGS@
317 eqv_cmp_LDFLAGS = @LIBYAML_LDFLAGS@
318 eqv_cmp_LDADD = $(LIB_ISL) -lyaml
319 eqv_cmp_SOURCES = eqv_cmp.c
321 c2pdg_LDADD = libpdg.la $(LIB_PET) $(LIB_ISL) -lgmp @syck_LIBS@
322 c2pdg_CPPFLAGS = @ISL_CPPFLAGS@ @PET_CFLAGS@
328 bin_PROGRAMS = da translate @extra_bin_programs@ pn2dot adg2dot mem_bound
329 EXTRA_PROGRAMS = pers sloog pn mem da translate check_channel_sizes \
331 noinst_PROGRAMS = testyaml dump_sizes dump_dependences channel_summary \
332 @extra_noinst_programs@ eqv dump_schedules \
333 dependence_graph_relation eqv3 dump_model eqv_cmp \
337 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
339 start_sty.cc: Makefile
340 @echo Creating new start_sty.cc file. 2>&1
341 @ver_create_start_sty_cc@ start_sty.cc '$(SUIFLIBS)'
343 @echo Creating new prog_ver.cc file. 2>&1
345 @ver_create_ver_cc@ prog_ver.cc prog
347 gitversion.h: @GIT_HEAD@
348 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@