xml_AST.cc: add missing include
[ppn.git] / Makefile.am
blobf23b36e358c02a790bf3ce0da3c798d8b68ec863
1 if BUNDLED_BARVINOK
2     MAYBE_BARVINOK = barvinok
3     BARVINOK_LA = $(top_builddir)/barvinok/libbarvinok.la
4 endif
5 if BUNDLED_ISL
6     MAYBE_ISL = isl
7     ISL_LA = $(top_builddir)/isl/libisl.la
8 endif
9 if BUNDLED_PET
10     MAYBE_PET = pet
11     PET_LA = $(top_builddir)/pet/libpet.la
12 endif
13 SUBDIRS = $(MAYBE_ISL) $(MAYBE_PET) $(MAYBE_BARVINOK) . tests
15 FORCE:
16 barvinok/libbarvinok.la: FORCE
17         $(MAKE) $(AM_MAKEFLAGS) -C barvinok libbarvinok.la
18 isl/libisl.la: FORCE
19         cd isl; $(MAKE) $(AM_MAKEFLAGS) libisl.la
20 pet/libpet.la: FORCE
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 = \
30         include/isa/adg.h \
31         include/isa/pdg.h \
32         include/isa/yaml.h \
33         include/isa/yll.h
34 lib_LTLIBRARIES = libpdg.la libadg.la
35 libpdg_la_SOURCES = \
36         pdg.cc \
37         version.c \
38         version.h \
39         yaml.cc \
40         yll.c
41 libpdg_la_CPPFLAGS = @ISL_CPPFLAGS@
42 libpdg_la_LIBADD = $(LTLIBOBJS) $(LIB_ISL)
43 libpdg_la_LDFLAGS = -release @VERSION@
45 libadg_la_SOURCES = \
46         adg.cc \
47         adg_parse.cc \
48         adg_parse.h \
49         adg_print.cc
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@
59 pers_SOURCES = \
60         condition_tree.h \
61         condition_tree.cc \
62         convert.h \
63         convert.cc \
64         domain.h \
65         domain.cc \
66         dump.h \
67         dump.cc \
68         for_normalize.cc \
69         for_normalize.h \
70         srel.cc \
71         srel.h \
72         suif_inc.h \
73         main.cc
74 nodist_pers_SOURCES = \
75         start_sty.cc \
76         prog_ver.cc
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@
82 sloog_SOURCES = \
83         build.cc \
84         build.h \
85         condition_tree.h \
86         condition_tree.cc \
87         convert.h \
88         convert.cc \
89         domain.cc \
90         domain.h \
91         dump.cc \
92         dump.h \
93         srel.cc \
94         srel.h \
95         suif_inc.h \
96         sloog.cc
97 nodist_sloog_SOURCES = \
98         start_sty.cc \
99         prog_ver.cc
101 testyaml_CPPFLAGS = @ISL_CPPFLAGS@
102 testyaml_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
103 testyaml_SOURCES = \
104         testyaml.cc
106 da_CPPFLAGS = @ISL_CPPFLAGS@
107 da_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
108 da_SOURCES = \
109         da.cc \
110         da.h \
111         da_options.h \
112         da_options.c \
113         damain.cc \
114         isl_util.c \
115         isl_util.h
117 if USE_SIZE_SIMULATE
118 SIZE_SIMULATE = \
119         size_simulate.cc \
120         size_simulate.h
121 SIZE_SIMULATE_LDADD = -ldl
122 endif
123 pn_LDADD = libpdg.la $(BARVINOK_LA) @barvinok_LIBS@ -lgmp \
124            $(SIZE_SIMULATE_LDADD) \
125            @syck_LIBS@
126 pn_CPPFLAGS = @ISL_CPPFLAGS@ @barvinok_CFLAGS@ @NTL_CPPFLAGS@
127 pn_SOURCES = \
128         da.cc \
129         da.h \
130         pn.cc \
131         pn_options.c \
132         pn_options.h \
133         isl_util.c \
134         isl_util.h \
135         size_options.c \
136         size_options.h \
137         size.cc \
138         size.h \
139         size_bernstein.cc \
140         size_bernstein.h \
141         $(SIZE_SIMULATE) \
142         translation.cc \
143         translation.h
144 EXTRA_pn_SOURCES = size_simulate.cc size_simulate.h
146 mem_LDADD = libpdg.la \
147             $(LIB_ISL) $(BARVINOK_LA) @barvinok_LIBS@ \
148             @syck_LIBS@
149 mem_CPPFLAGS = @ISL_CPPFLAGS@ @barvinok_CFLAGS@ @NTL_CPPFLAGS@
150 mem_SOURCES = \
151         da.cc \
152         da.h \
153         mem_options.h \
154         mem_options.c \
155         mem.cc \
156         isl_util.c \
157         isl_util.h
159 mem_bound_LDADD = libpdg.la $(LIB_ISL) $(BARVINOK_LA) @barvinok_LIBS@ -lgmp \
160             @syck_LIBS@
161 mem_bound_CPPFLAGS = @ISL_CPPFLAGS@ @barvinok_CFLAGS@ @NTL_CPPFLAGS@
162 mem_bound_SOURCES = \
163         da.cc \
164         da.h \
165         mem_options.h \
166         mem_options.c \
167         mem_bound.cc \
168         translation.cc \
169         translation.h \
170         isl_util.c \
171         isl_util.h
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 = \
177         da.cc \
178         da.h \
179         dependence_graph_relation_options.h \
180         dependence_graph_relation_options.c \
181         dependence_graph_relation.cc \
182         isl_util.c \
183         isl_util.h
185 translate_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
186 translate_LDFLAGS =
187 translate_CPPFLAGS = @ISL_CPPFLAGS@
188 translate_SOURCES = \
189         translate.cc \
190         translation.cc \
191         translation.h \
192         isl_util.c \
193         isl_util.h
195 dump_sizes_CPPFLAGS = @ISL_CPPFLAGS@
196 dump_sizes_LDADD = libpdg.la $(LIB_ISL) -lgmp -lgmp @syck_LIBS@
197 dump_sizes_SOURCES = \
198         dump_sizes.cc
200 dump_dependences_CPPFLAGS = @ISL_CPPFLAGS@
201 dump_dependences_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
202 dump_dependences_SOURCES = \
203         dump_dependences.cc
205 dump_schedules_CPPFLAGS = @ISL_CPPFLAGS@
206 dump_schedules_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
207 dump_schedules_SOURCES = \
208         dump_schedules.cc
210 dump_model_CPPFLAGS = @ISL_CPPFLAGS@
211 dump_model_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
212 dump_model_SOURCES = \
213         dump_model.cc
215 channel_summary_CPPFLAGS = @ISL_CPPFLAGS@
216 channel_summary_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
217 channel_summary_SOURCES = \
218         channel_summary.cc
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@
227 pn2dot_SOURCES = \
228         pn2dot.cc
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@
235 pn2adg_SOURCES = \
236         adg_xml.h \
237         adg_xml.cc \
238         xml_AST.cc \
239         xml_AST.h \
240         pn2adg_options.h \
241         pn2adg_options.c \
242         pn2adg.cc
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@
248 adg_cmp_SOURCES = \
249         adg_cmp_options.h \
250         adg_cmp_options.c \
251         adg_cmp.cc
253 adg2dot_LDADD = libadg.la $(LIB_ISL) -lgmp
254 adg2dot_CPPFLAGS = @ISL_CPPFLAGS@
255 adg2dot_CXXFLAGS = @LIBYAML_CPPFLAGS@
256 adg2dot_LDFLAGS = @LIBYAML_LDFLAGS@
257 adg2dot_SOURCES = \
258         adg2dot_options.h \
259         adg2dot_options.c \
260         adg2dot.cc
262 eqv_CPPFLAGS = @ISL_CPPFLAGS@
263 eqv_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
264 eqv_SOURCES = \
265         dependence_graph.h \
266         dependence_graph.cc \
267         eqv_options.h \
268         eqv_options.c \
269         eqv.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@
275 eqv2_SOURCES = \
276         dependence_graph.h \
277         dependence_graph.cc \
278         msa.h \
279         msa.cc \
280         eqv2_options.h \
281         eqv2_options.c \
282         eqv2.cc
284 eqv3_LDADD = libpdg.la $(LIB_ISL) -lgmp @syck_LIBS@
285 eqv3_CPPFLAGS = @ISL_CPPFLAGS@ @VCSN_CFLAGS@
286 eqv3_SOURCES = \
287         dependence_graph.h \
288         dependence_graph.cc \
289         msa.h \
290         msa.cc \
291         eqv3_options.h \
292         eqv3_options.c \
293         eqv3.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@
302 c2pdg_SOURCES = \
303         c2pdg_options.h \
304         c2pdg_options.c \
305         c2pdg.cc
307 bin_PROGRAMS = da translate @extra_bin_programs@ pn2dot adg2dot mem_bound mem \
308         pn pn2adg
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
315 dist-hook:
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)'
321 prog_ver.cc:    $(OBJS)
322         @echo Creating new prog_ver.cc file. 2>&1
323         @rm -f prog_ver.cc
324         @ver_create_ver_cc@ prog_ver.cc prog
326 gitversion.h: @GIT_HEAD@
327         echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@