2 MAYBE_BERNSTEIN = bernstein
4 SUBDIRS = $(MAYBE_BERNSTEIN) lib . omega doc
7 $(MAKE) $(AM_MAKEFLAGS) -C lib libgnu.la
8 bernstein/libbernstein.la:
9 $(MAKE) $(AM_MAKEFLAGS) -C bernstein libbernstein.la
11 AM_CPPFLAGS = -I$(srcdir)/bernstein/include -I$(srcdir)/lib @GINACLIB_CPPFLAGS@
14 lib_LTLIBRARIES = libbarvinok.la
15 bin_PROGRAMS = barvinok_count barvinok_enumerate barvinok_enumerate_e \
17 noinst_PROGRAMS = test randomtest \
18 remove_redundant_equalities \
19 barvinok_union polytope_volume test_approx \
21 EXTRA_PROGRAMS = piptest verify_lexsmaller polyhedron_sample 4coins lexmin \
22 polytope_scan barvinok_maximize
23 pkginclude_HEADERS = \
32 barvinok/basis_reduction.h \
34 nodist_pkginclude_HEADERS = \
40 BERNSTEIN_CC = bernstein.cc
43 BR_CDD = basis_reduction_cdd.cc initcdd.cc
46 BR_GLPK = basis_reduction_glpk.c
48 libbarvinok_la_SOURCES = \
67 genfun_constructor.cc \
68 genfun_constructor.h \
90 EXTRA_libbarvinok_la_SOURCES = \
91 basis_reduction_cdd.cc \
92 basis_reduction_glpk.c \
98 BERNSTEIN_LA = $(top_builddir)/bernstein/libbernstein.la
100 libbarvinok_la_LIBADD = @LTLIBOBJS@ $(BERNSTEIN_LA) lib/libgnu.la
101 libbarvinok_la_LDFLAGS = @BV_LDFLAGS@ -version-info @versioninfo@
102 LDADD = libbarvinok.la
104 test_SOURCES = test.c
105 barvinok_count_SOURCES = barvinok_count.c
106 barvinok_ehrhart_SOURCES = barvinok_ehrhart.cc
107 barvinok_union_SOURCES = barvinok_union.cc
109 BEEO_SOURCES = omega/Exit.cc omega/convert.cc
114 FDSTREAM = fdstream.cc fdstream.h
116 barvinok_enumerate_SOURCES = \
117 barvinok_enumerate.cc \
125 EXTRA_barvinok_enumerate_SOURCES = fdstream.cc fdstream.h
126 barvinok_enumerate_e_SOURCES = \
127 barvinok_enumerate_e.cc \
136 EXTRA_barvinok_enumerate_e_SOURCES = fdstream.cc fdstream.h
137 barvinok_enumerate_e_CPPFLAGS = @OMEGA_CPPFLAGS@ $(AM_CPPFLAGS)
138 barvinok_enumerate_e_LDFLAGS = @OMEGA_LDFLAGS@ @LDFLAGS@
139 barvinok_enumerate_e_LDADD = @OMEGA_LIBS@ libbarvinok.la
140 barvinok_maximize_SOURCES = \
147 EXTRA_barvinok_maximize_SOURCES = fdstream.cc fdstream.h
148 4coins_SOURCES = 4coins.cc
150 POLYSIGN = polysign_cddf.cc polysign_cdd.cc
167 EXTRA_lexmin_SOURCES = polysign_cddf.cc polysign_cdd.cc polysign.c
168 test_approx_SOURCES = \
173 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
180 basis_reduction_templ.c \
181 polysign_cdd_template.cc \
182 barvinok/NTL.h.broken \
183 barvinok/NTL.h.normal \
184 barvinok/set.h.broken \
185 barvinok/set.h.normal \
187 doc/applications.tex \
197 polymake/Makefile.in \
199 polymake/autogen.sh \
200 polymake/configure.in \
201 polymake/lattice_points.cc
203 ACLOCAL_AMFLAGS = -I m4
206 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
207 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
210 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
213 (cd $(distdir)/polymake; \
214 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
215 (cd doc; make barvinok.pdf)
216 cp doc/barvinok.pdf $(distdir)/doc/
217 if test -f $(top_srcdir)/.git/HEAD; then \
218 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
220 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
224 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf ehrhart_e/piplib
226 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf
229 check: check-enumerate check-enumerate_e check-test check-lexmin check-approx
230 check-approx: test_approx
231 @for i in $(top_srcdir)/tests/ehrhart/*; do \
232 if test -f $$i; then \
233 echo $$i | ./test_approx -q -r 10 ; \
236 check-enumerate: barvinok_enumerate
237 @for i in $(top_srcdir)/tests/ehrhart/*; do \
238 if test -f $$i; then \
240 for options in '' '--series' '--series --primal'; do \
241 for spec in 'random' 'bf' 'df'; do \
242 opt="--specialization=$$spec $$options"; \
244 ./barvinok_enumerate --verify $$opt < $$i; \
249 check-enumerate_e: barvinok_enumerate_e
250 @for dir in $(BEE_TESTDIRS); do \
251 for i in $(top_srcdir)/tests/$$dir/*; do \
252 if test -f $$i; then \
253 for options in '' '--pip' '--pip --omega'; do \
254 for spec in 'random' 'bf' 'df'; do \
255 opt="--specialization=$$spec $$options"; \
257 ./barvinok_enumerate_e --verify $$opt < $$i; \
263 @for i in $(top_srcdir)/tests/ehrhart_e/scarf/*; do \
264 if test -f $$i; then \
265 for spec in 'random' 'bf' 'df'; do \
266 opt="--specialization=$$spec --scarf"; \
268 ./barvinok_enumerate_e --verify $$opt < $$i; \
273 @for i in $(top_srcdir)/tests/*; do \
274 if test -f $$i; then \
275 for options in '--index=10' '--primal --index=10'; do \
276 for spec in 'random' 'bf' 'df'; do \
277 opt="--specialization=$$spec $$options"; \
279 ./test $$opt < $$i || echo -n " NOT"; \
287 @for i in $(top_srcdir)/tests/lexmin/*; do \
288 if test -f $$i; then \
289 for spec in 'random' 'bf' 'df'; do \
290 opt="--specialization=$$spec"; \
292 ./lexmin --verify $$opt < $$i; \
300 version.h: @GIT_HEAD@
301 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@