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 \
37 BERNSTEIN_CC = bernstein.cc
40 BR_CDD = basis_reduction_cdd.cc initcdd.cc
43 BR_GLPK = basis_reduction_glpk.c
45 libbarvinok_la_SOURCES = \
64 genfun_constructor.cc \
65 genfun_constructor.h \
85 EXTRA_libbarvinok_la_SOURCES = \
91 BERNSTEIN_LA = $(top_builddir)/bernstein/libbernstein.la
93 libbarvinok_la_LIBADD = @LTLIBOBJS@ $(BERNSTEIN_LA) lib/libgnu.la
94 libbarvinok_la_LDFLAGS = @BV_LDFLAGS@ -version-info @versioninfo@
95 LDADD = libbarvinok.la
98 barvinok_count_SOURCES = barvinok_count.c
99 barvinok_ehrhart_SOURCES = barvinok_ehrhart.cc
100 barvinok_union_SOURCES = barvinok_union.cc
102 BEEO_SOURCES = omega/Exit.cc omega/convert.cc
106 barvinok_enumerate_SOURCES = \
107 barvinok_enumerate.cc \
116 barvinok_enumerate_e_SOURCES = \
117 barvinok_enumerate_e.cc \
127 barvinok_enumerate_e_CPPFLAGS = @OMEGA_CPPFLAGS@ $(AM_CPPFLAGS)
128 barvinok_enumerate_e_LDFLAGS = @OMEGA_LDFLAGS@ @LDFLAGS@
129 barvinok_enumerate_e_LDADD = @OMEGA_LIBS@ libbarvinok.la
130 barvinok_maximize_SOURCES = \
138 4coins_SOURCES = 4coins.cc
140 POLYSIGN = polysign_cddf.cc polysign_cdd.cc
157 EXTRA_lexmin_SOURCE = polysign_cddf.cc polysign_cdd.cc polysign.c
158 test_approx_SOURCES = \
163 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
171 doc/applications.tex \
181 polymake/Makefile.in \
183 polymake/autogen.sh \
184 polymake/configure.in \
185 polymake/lattice_points.cc
187 ACLOCAL_AMFLAGS = -I m4
190 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
191 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
194 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
197 (cd $(distdir)/polymake; \
198 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
199 (cd doc; make barvinok.pdf)
200 cp doc/barvinok.pdf $(distdir)/doc/
201 if test -f $(top_srcdir)/.git/HEAD; then \
202 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
204 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
208 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf ehrhart_e/piplib
210 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf
213 check: check-enumerate check-enumerate_e check-test check-lexmin check-approx
214 check-approx: test_approx
215 @for i in $(top_srcdir)/tests/ehrhart/*; do \
216 if test -f $$i; then \
217 echo $$i | ./test_approx -q -r 10 ; \
220 check-enumerate: barvinok_enumerate
221 @for i in $(top_srcdir)/tests/ehrhart/*; do \
222 if test -f $$i; then \
224 for options in '' '--series' '--series --primal'; do \
225 for spec in 'random' 'bf' 'df'; do \
226 opt="--specialization=$$spec $$options"; \
228 ./barvinok_enumerate --verify $$opt < $$i; \
233 check-enumerate_e: barvinok_enumerate_e
234 @for dir in $(BEE_TESTDIRS); do \
235 for i in $(top_srcdir)/tests/$$dir/*; do \
236 if test -f $$i; then \
237 for options in '' '--pip' '--pip --omega'; do \
238 for spec in 'random' 'bf' 'df'; do \
239 opt="--specialization=$$spec $$options"; \
241 ./barvinok_enumerate_e --verify $$opt < $$i; \
247 @for i in $(top_srcdir)/tests/ehrhart_e/scarf/*; do \
248 if test -f $$i; then \
249 for spec in 'random' 'bf' 'df'; do \
250 opt="--specialization=$$spec --scarf"; \
252 ./barvinok_enumerate_e --verify $$opt < $$i; \
257 @for i in $(top_srcdir)/tests/*; do \
258 if test -f $$i; then \
259 for options in '--index=10' '--primal --index=10'; do \
260 for spec in 'random' 'bf' 'df'; do \
261 opt="--specialization=$$spec $$options"; \
263 ./test $$opt < $$i || echo -n " NOT"; \
271 @for i in $(top_srcdir)/tests/lexmin/*; do \
272 if test -f $$i; then \
273 for spec in 'random' 'bf' 'df'; do \
274 opt="--specialization=$$spec"; \
276 ./lexmin --verify $$opt < $$i; \
284 version.h: @GIT_HEAD@
285 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@