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) @syck_LIBS@
43 libpdg_la_LDFLAGS = -release @VERSION@
50 libadg_la_CPPFLAGS = @ISL_CPPFLAGS@ @LIBYAML_CPPFLAGS@
51 libadg_la_LDFLAGS = @LIBYAML_LDFLAGS@
52 libadg_la_LIBADD = $(LIB_ISL) -lyaml
54 testyaml_CPPFLAGS = @ISL_CPPFLAGS@
55 testyaml_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
59 da_CPPFLAGS = @ISL_CPPFLAGS@
60 da_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
74 SIZE_SIMULATE_LDADD = -ldl
76 pn_LDADD = libpdg.la $(BARVINOK_LA) @barvinok_LIBS@ $(LIB_ISL) \
77 $(SIZE_SIMULATE_LDADD) @syck_LIBS@
78 pn_CPPFLAGS = @ISL_CPPFLAGS@ @barvinok_CFLAGS@ @NTL_CPPFLAGS@
97 EXTRA_pn_SOURCES = size_simulate.cc size_simulate.h
99 mem_LDADD = libpdg.la \
100 $(LIB_ISL) $(BARVINOK_LA) @barvinok_LIBS@ \
102 mem_CPPFLAGS = @ISL_CPPFLAGS@ @barvinok_CFLAGS@ @NTL_CPPFLAGS@
112 mem_bound_LDADD = libpdg.la $(LIB_ISL) $(BARVINOK_LA) @barvinok_LIBS@ \
114 mem_bound_CPPFLAGS = @ISL_CPPFLAGS@ @barvinok_CFLAGS@ @NTL_CPPFLAGS@
115 mem_bound_SOURCES = \
126 dependence_graph_relation_CPPFLAGS = @ISL_CPPFLAGS@
127 dependence_graph_relation_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
128 dependence_graph_relation_SOURCES = \
131 dependence_graph_relation_options.h \
132 dependence_graph_relation_options.c \
133 dependence_graph_relation.cc \
137 translate_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
139 translate_CPPFLAGS = @ISL_CPPFLAGS@
140 translate_SOURCES = \
147 dump_sizes_CPPFLAGS = @ISL_CPPFLAGS@
148 dump_sizes_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
149 dump_sizes_SOURCES = \
152 dump_dependences_CPPFLAGS = @ISL_CPPFLAGS@
153 dump_dependences_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
154 dump_dependences_SOURCES = \
157 dump_schedules_CPPFLAGS = @ISL_CPPFLAGS@
158 dump_schedules_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
159 dump_schedules_SOURCES = \
162 dump_model_CPPFLAGS = @ISL_CPPFLAGS@
163 dump_model_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
164 dump_model_SOURCES = \
167 channel_summary_CPPFLAGS = @ISL_CPPFLAGS@
168 channel_summary_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
169 channel_summary_SOURCES = \
172 check_channel_sizes_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
173 check_channel_sizes_CPPFLAGS = @ISL_CPPFLAGS@
174 check_channel_sizes_SOURCES = \
175 check_channel_sizes.cc
177 pn2dot_CPPFLAGS = @ISL_CPPFLAGS@
178 pn2dot_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
182 pn2adg_LDADD = libadg.la libpdg.la $(LIB_ISL) @libxml2_LIBS@ @syck_LIBS@
183 pn2adg_CPPFLAGS = @ISL_CPPFLAGS@
184 pn2adg_CXXFLAGS = @LIBYAML_CPPFLAGS@ @libxml2_CFLAGS@
185 pn2adg_LDFLAGS = @LIBYAML_LDFLAGS@
195 adg_cmp_LDADD = libadg.la $(LIB_ISL)
196 adg_cmp_CPPFLAGS = @ISL_CPPFLAGS@
197 adg_cmp_CXXFLAGS = @LIBYAML_CPPFLAGS@
198 adg_cmp_LDFLAGS = @LIBYAML_LDFLAGS@
204 adg2dot_LDADD = libadg.la $(LIB_ISL)
205 adg2dot_CPPFLAGS = @ISL_CPPFLAGS@
206 adg2dot_CXXFLAGS = @LIBYAML_CPPFLAGS@
207 adg2dot_LDFLAGS = @LIBYAML_LDFLAGS@
213 eqv_CPPFLAGS = @ISL_CPPFLAGS@
214 eqv_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
217 dependence_graph.cc \
222 eqv2_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@ \
223 @VCSN_LDFLAGS@ -lvcsn-common -lbench \
224 @OMEGA_PLUS_LDFLAGS@ @OMEGA_PLUS_LIBS@
225 eqv2_CPPFLAGS = @ISL_CPPFLAGS@ @VCSN_CFLAGS@ @OMEGA_PLUS_CFLAGS@
228 dependence_graph.cc \
235 eqv3_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
236 eqv3_CPPFLAGS = @ISL_CPPFLAGS@ @VCSN_CFLAGS@
239 dependence_graph.cc \
246 eqv_cmp_CFLAGS = @ISL_CPPFLAGS@ @LIBYAML_CPPFLAGS@
247 eqv_cmp_LDFLAGS = @LIBYAML_LDFLAGS@
248 eqv_cmp_LDADD = $(LIB_ISL) -lyaml
249 eqv_cmp_SOURCES = eqv_cmp.c
251 c2pdg_LDADD = libpdg.la $(LIB_PET) $(LIB_ISL) @syck_LIBS@
252 c2pdg_CPPFLAGS = @ISL_CPPFLAGS@ @PET_CFLAGS@
258 pdg2c_LDADD = libpdg.la $(LIB_PET) $(LIB_ISL) @syck_LIBS@
259 pdg2c_CPPFLAGS = @ISL_CPPFLAGS@ @PET_CFLAGS@
265 bin_PROGRAMS = da translate @extra_bin_programs@ pn2dot adg2dot mem_bound mem \
267 EXTRA_PROGRAMS = da translate eqv2 c2pdg pdg2c
268 noinst_PROGRAMS = testyaml dump_sizes dump_dependences channel_summary \
269 @extra_noinst_programs@ eqv dump_schedules \
270 dependence_graph_relation eqv3 dump_model eqv_cmp \
271 adg_cmp check_channel_sizes
274 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
276 gitversion.h: @GIT_HEAD@
277 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@