2 MAYBE_BARVINOK = barvinok
3 BARVINOK_LA = $(top_builddir)/barvinok/libbarvinok.la
7 ISL_LA = $(top_builddir)/isl/libisl.la
11 PET_LA = $(top_builddir)/pet/libpet.la
13 SUBDIRS = $(MAYBE_ISL) $(MAYBE_PET) $(MAYBE_BARVINOK) . tests
16 barvinok/libbarvinok.la: FORCE
17 $(MAKE) $(AM_MAKEFLAGS) -C barvinok libbarvinok.la
19 cd isl; $(MAKE) $(AM_MAKEFLAGS) libisl.la
21 cd pet; $(MAKE) $(AM_MAKEFLAGS) libpet.la
23 INCLUDES = -I$(srcdir)/include
24 ACLOCAL_AMFLAGS = -I m4
26 LIB_ISL = $(ISL_LA) @ISL_LIBS@
27 LIB_PET = $(PET_LA) @PET_LIBS@
29 pkginclude_HEADERS = \
34 lib_LTLIBRARIES = libpdg.la libadg.la
41 libpdg_la_CPPFLAGS = @ISL_CPPFLAGS@
42 libpdg_la_LIBADD = $(LTLIBOBJS) $(LIB_ISL)
43 libpdg_la_LDFLAGS = -release @VERSION@
50 libadg_la_CPPFLAGS = @ISL_CPPFLAGS@
51 libadg_la_LDFLAGS = @LIBYAML_LDFLAGS@
52 libadg_la_LIBADD = $(LIB_ISL) -lyaml
54 SUIFLIBS = -ldependence -lsuifmath -lbuilder -luseful -lsuif1 -lporky
55 pers_LDADD = $(SUIFLIBS) libpdg.la @OMEGA_PLUS_LIBS@ \
56 $(LIB_ISL) -lgmp @syck_LIBS@
57 pers_LDFLAGS = @SUIFLDFLAGS@ @OMEGA_PLUS_LDFLAGS@
58 pers_CPPFLAGS = @ISL_CPPFLAGS@ @OMEGA_PLUS_CFLAGS@
74 nodist_pers_SOURCES = \
78 sloog_LDADD = libpdg.la $(SUIFLIBS) \
79 @OMEGA_PLUS_LIBS@ $(LIB_ISL) -lgmp @syck_LIBS@
80 sloog_LDFLAGS = @SUIFLDFLAGS@ @OMEGA_PLUS_LDFLAGS@
81 sloog_CPPFLAGS = @ISL_CPPFLAGS@ @OMEGA_PLUS_CFLAGS@
97 nodist_sloog_SOURCES = \
101 testyaml_CPPFLAGS = @ISL_CPPFLAGS@
102 testyaml_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
106 da_CPPFLAGS = @ISL_CPPFLAGS@
107 da_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
121 SIZE_SIMULATE_LDADD = -ldl
123 pn_LDADD = libpdg.la $(BARVINOK_LA) @barvinok_LIBS@ -lgmp \
124 $(SIZE_SIMULATE_LDADD) \
126 pn_CPPFLAGS = @ISL_CPPFLAGS@ @barvinok_CFLAGS@ @NTL_CPPFLAGS@
144 EXTRA_pn_SOURCES = size_simulate.cc size_simulate.h
146 mem_LDADD = libpdg.la \
147 $(LIB_ISL) $(BARVINOK_LA) @barvinok_LIBS@ \
149 mem_CPPFLAGS = @ISL_CPPFLAGS@ @barvinok_CFLAGS@ @NTL_CPPFLAGS@
159 mem_bound_LDADD = libpdg.la $(LIB_ISL) $(BARVINOK_LA) @barvinok_LIBS@ -lgmp \
161 mem_bound_CPPFLAGS = @ISL_CPPFLAGS@ @barvinok_CFLAGS@ @NTL_CPPFLAGS@
162 mem_bound_SOURCES = \
173 dependence_graph_relation_CPPFLAGS = @ISL_CPPFLAGS@
174 dependence_graph_relation_LDADD = libpdg.la \
175 $(LIB_ISL) -lgmp @syck_LIBS@
176 dependence_graph_relation_SOURCES = \
179 dependence_graph_relation_options.h \
180 dependence_graph_relation_options.c \
181 dependence_graph_relation.cc \
185 translate_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
187 translate_CPPFLAGS = @ISL_CPPFLAGS@
188 translate_SOURCES = \
195 dump_sizes_CPPFLAGS = @ISL_CPPFLAGS@
196 dump_sizes_LDADD = libpdg.la $(LIB_ISL) -lgmp -lgmp @syck_LIBS@
197 dump_sizes_SOURCES = \
200 dump_dependences_CPPFLAGS = @ISL_CPPFLAGS@
201 dump_dependences_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
202 dump_dependences_SOURCES = \
205 dump_schedules_CPPFLAGS = @ISL_CPPFLAGS@
206 dump_schedules_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
207 dump_schedules_SOURCES = \
210 dump_model_CPPFLAGS = @ISL_CPPFLAGS@
211 dump_model_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
212 dump_model_SOURCES = \
215 channel_summary_CPPFLAGS = @ISL_CPPFLAGS@
216 channel_summary_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
217 channel_summary_SOURCES = \
220 check_channel_sizes_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
221 check_channel_sizes_CPPFLAGS = @ISL_CPPFLAGS@
222 check_channel_sizes_SOURCES = \
223 check_channel_sizes.cc
225 pn2dot_CPPFLAGS = @ISL_CPPFLAGS@
226 pn2dot_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
230 pn2adg_LDADD = libadg.la libpdg.la $(LIB_ISL) -lgmp \
231 @libxml2_LIBS@ @syck_LIBS@
232 pn2adg_CPPFLAGS = @ISL_CPPFLAGS@
233 pn2adg_CXXFLAGS = @LIBYAML_CPPFLAGS@ @libxml2_CFLAGS@
234 pn2adg_LDFLAGS = @LIBYAML_LDFLAGS@
244 adg_cmp_LDADD = libadg.la $(LIB_ISL) -lgmp
245 adg_cmp_CPPFLAGS = @ISL_CPPFLAGS@
246 adg_cmp_CXXFLAGS = @LIBYAML_CPPFLAGS@
247 adg_cmp_LDFLAGS = @LIBYAML_LDFLAGS@
253 adg2dot_LDADD = libadg.la $(LIB_ISL) -lgmp
254 adg2dot_CPPFLAGS = @ISL_CPPFLAGS@
255 adg2dot_CXXFLAGS = @LIBYAML_CPPFLAGS@
256 adg2dot_LDFLAGS = @LIBYAML_LDFLAGS@
262 eqv_CPPFLAGS = @ISL_CPPFLAGS@
263 eqv_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
266 dependence_graph.cc \
271 eqv2_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@ \
272 @VCSN_LDFLAGS@ -lvcsn-common -lbench \
273 @OMEGA_PLUS_LDFLAGS@ @OMEGA_PLUS_LIBS@
274 eqv2_CPPFLAGS = @ISL_CPPFLAGS@ @VCSN_CFLAGS@ @OMEGA_PLUS_CFLAGS@
277 dependence_graph.cc \
284 eqv3_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
285 eqv3_CPPFLAGS = @ISL_CPPFLAGS@ @VCSN_CFLAGS@
288 dependence_graph.cc \
295 eqv_cmp_CFLAGS = @ISL_CPPFLAGS@ @LIBYAML_CPPFLAGS@
296 eqv_cmp_LDFLAGS = @LIBYAML_LDFLAGS@
297 eqv_cmp_LDADD = $(LIB_ISL) -lyaml
298 eqv_cmp_SOURCES = eqv_cmp.c
300 c2pdg_LDADD = libpdg.la $(LIB_PET) $(LIB_ISL) -lgmp @syck_LIBS@
301 c2pdg_CPPFLAGS = @ISL_CPPFLAGS@ @PET_CFLAGS@
307 bin_PROGRAMS = da translate @extra_bin_programs@ pn2dot adg2dot mem_bound mem \
309 EXTRA_PROGRAMS = pers sloog da translate eqv2 c2pdg
310 noinst_PROGRAMS = testyaml dump_sizes dump_dependences channel_summary \
311 @extra_noinst_programs@ eqv dump_schedules \
312 dependence_graph_relation eqv3 dump_model eqv_cmp \
313 adg_cmp check_channel_sizes
316 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
318 start_sty.cc: Makefile
319 @echo Creating new start_sty.cc file. 2>&1
320 @ver_create_start_sty_cc@ start_sty.cc '$(SUIFLIBS)'
322 @echo Creating new prog_ver.cc file. 2>&1
324 @ver_create_ver_cc@ prog_ver.cc prog
326 gitversion.h: @GIT_HEAD@
327 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@