README: rename
[ppn.git] / Makefile.am
blobe34929976afe843ae2ce0a078c1b2431c9ace499
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) @syck_LIBS@
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@ @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@
56 testyaml_SOURCES = \
57         testyaml.cc
59 da_CPPFLAGS = @ISL_CPPFLAGS@
60 da_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
61 da_SOURCES = \
62         da.cc \
63         da.h \
64         da_options.h \
65         da_options.c \
66         damain.cc \
67         isl_util.c \
68         isl_util.h
70 if USE_SIZE_SIMULATE
71 SIZE_SIMULATE = \
72         size_simulate.cc \
73         size_simulate.h
74 SIZE_SIMULATE_LDADD = -ldl
75 endif
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@
79 pn_SOURCES = \
80         da.cc \
81         da.h \
82         pn.cc \
83         pn_options.c \
84         pn_options.h \
85         isl_util.c \
86         isl_util.h \
87         memrchr.h \
88         size_options.c \
89         size_options.h \
90         size.cc \
91         size.h \
92         size_bernstein.cc \
93         size_bernstein.h \
94         $(SIZE_SIMULATE) \
95         translation.cc \
96         translation.h
97 EXTRA_pn_SOURCES = size_simulate.cc size_simulate.h
99 mem_LDADD = libpdg.la \
100             $(LIB_ISL) $(BARVINOK_LA) @barvinok_LIBS@ \
101             @syck_LIBS@
102 mem_CPPFLAGS = @ISL_CPPFLAGS@ @barvinok_CFLAGS@ @NTL_CPPFLAGS@
103 mem_SOURCES = \
104         da.cc \
105         da.h \
106         mem_options.h \
107         mem_options.c \
108         mem.cc \
109         isl_util.c \
110         isl_util.h
112 mem_bound_LDADD = libpdg.la $(LIB_ISL) $(BARVINOK_LA) @barvinok_LIBS@ \
113             @syck_LIBS@
114 mem_bound_CPPFLAGS = @ISL_CPPFLAGS@ @barvinok_CFLAGS@ @NTL_CPPFLAGS@
115 mem_bound_SOURCES = \
116         da.cc \
117         da.h \
118         mem_options.h \
119         mem_options.c \
120         mem_bound.cc \
121         translation.cc \
122         translation.h \
123         isl_util.c \
124         isl_util.h
126 dependence_graph_relation_CPPFLAGS = @ISL_CPPFLAGS@
127 dependence_graph_relation_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
128 dependence_graph_relation_SOURCES = \
129         da.cc \
130         da.h \
131         dependence_graph_relation_options.h \
132         dependence_graph_relation_options.c \
133         dependence_graph_relation.cc \
134         isl_util.c \
135         isl_util.h
137 translate_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
138 translate_LDFLAGS =
139 translate_CPPFLAGS = @ISL_CPPFLAGS@
140 translate_SOURCES = \
141         translate.cc \
142         translation.cc \
143         translation.h \
144         isl_util.c \
145         isl_util.h
147 dump_sizes_CPPFLAGS = @ISL_CPPFLAGS@
148 dump_sizes_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
149 dump_sizes_SOURCES = \
150         dump_sizes.cc
152 dump_dependences_CPPFLAGS = @ISL_CPPFLAGS@
153 dump_dependences_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
154 dump_dependences_SOURCES = \
155         dump_dependences.cc
157 dump_schedules_CPPFLAGS = @ISL_CPPFLAGS@
158 dump_schedules_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
159 dump_schedules_SOURCES = \
160         dump_schedules.cc
162 dump_model_CPPFLAGS = @ISL_CPPFLAGS@
163 dump_model_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
164 dump_model_SOURCES = \
165         dump_model.cc
167 channel_summary_CPPFLAGS = @ISL_CPPFLAGS@
168 channel_summary_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
169 channel_summary_SOURCES = \
170         channel_summary.cc
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@
179 pn2dot_SOURCES = \
180         pn2dot.cc
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@
186 pn2adg_SOURCES = \
187         adg_xml.h \
188         adg_xml.cc \
189         xml_AST.cc \
190         xml_AST.h \
191         pn2adg_options.h \
192         pn2adg_options.c \
193         pn2adg.cc
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@
199 adg_cmp_SOURCES = \
200         adg_cmp_options.h \
201         adg_cmp_options.c \
202         adg_cmp.cc
204 adg2dot_LDADD = libadg.la $(LIB_ISL)
205 adg2dot_CPPFLAGS = @ISL_CPPFLAGS@
206 adg2dot_CXXFLAGS = @LIBYAML_CPPFLAGS@
207 adg2dot_LDFLAGS = @LIBYAML_LDFLAGS@
208 adg2dot_SOURCES = \
209         adg2dot_options.h \
210         adg2dot_options.c \
211         adg2dot.cc
213 eqv_CPPFLAGS = @ISL_CPPFLAGS@
214 eqv_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
215 eqv_SOURCES = \
216         dependence_graph.h \
217         dependence_graph.cc \
218         eqv_options.h \
219         eqv_options.c \
220         eqv.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@
226 eqv2_SOURCES = \
227         dependence_graph.h \
228         dependence_graph.cc \
229         msa.h \
230         msa.cc \
231         eqv2_options.h \
232         eqv2_options.c \
233         eqv2.cc
235 eqv3_LDADD = libpdg.la $(LIB_ISL) @syck_LIBS@
236 eqv3_CPPFLAGS = @ISL_CPPFLAGS@ @VCSN_CFLAGS@
237 eqv3_SOURCES = \
238         dependence_graph.h \
239         dependence_graph.cc \
240         msa.h \
241         msa.cc \
242         eqv3_options.h \
243         eqv3_options.c \
244         eqv3.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@
253 c2pdg_SOURCES = \
254         c2pdg_options.h \
255         c2pdg_options.c \
256         c2pdg.cc
258 pdg2c_LDADD = libpdg.la $(LIB_PET) $(LIB_ISL) @syck_LIBS@
259 pdg2c_CPPFLAGS = @ISL_CPPFLAGS@ @PET_CFLAGS@
260 pdg2c_SOURCES = \
261         pdg2c_options.h \
262         pdg2c_options.c \
263         pdg2c.cc
265 bin_PROGRAMS = da translate @extra_bin_programs@ pn2dot adg2dot mem_bound mem \
266         pn pn2adg
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
273 dist-hook:
274         echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID
276 gitversion.h: @GIT_HEAD@
277         echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@