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
159 EXTRA_lexmin_SOURCE = polysign_cddf.cc polysign_cdd.cc polysign.c
160 test_approx_SOURCES = \
165 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
173 doc/applications.tex \
183 polymake/Makefile.in \
185 polymake/autogen.sh \
186 polymake/configure.in \
187 polymake/lattice_points.cc
189 ACLOCAL_AMFLAGS = -I m4
192 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
193 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
196 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
199 (cd $(distdir)/polymake; \
200 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
201 (cd doc; make barvinok.pdf)
202 cp doc/barvinok.pdf $(distdir)/doc/
203 if test -f $(top_srcdir)/.git/HEAD; then \
204 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
206 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
210 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf ehrhart_e/piplib
212 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf
215 check: check-enumerate check-enumerate_e check-test check-lexmin check-approx
216 check-approx: test_approx
217 @for i in $(top_srcdir)/tests/ehrhart/*; do \
218 if test -f $$i; then \
219 echo $$i | ./test_approx -q -r 10 ; \
222 check-enumerate: barvinok_enumerate
223 @for i in $(top_srcdir)/tests/ehrhart/*; do \
224 if test -f $$i; then \
226 for options in '' '--series' '--series --primal'; do \
227 for spec in 'random' 'bf' 'df'; do \
228 opt="--specialization=$$spec $$options"; \
230 ./barvinok_enumerate --verify $$opt < $$i; \
235 check-enumerate_e: barvinok_enumerate_e
236 @for dir in $(BEE_TESTDIRS); do \
237 for i in $(top_srcdir)/tests/$$dir/*; do \
238 if test -f $$i; then \
239 for options in '' '--pip' '--pip --omega'; do \
240 for spec in 'random' 'bf' 'df'; do \
241 opt="--specialization=$$spec $$options"; \
243 ./barvinok_enumerate_e --verify $$opt < $$i; \
249 @for i in $(top_srcdir)/tests/ehrhart_e/scarf/*; do \
250 if test -f $$i; then \
251 for spec in 'random' 'bf' 'df'; do \
252 opt="--specialization=$$spec --scarf"; \
254 ./barvinok_enumerate_e --verify $$opt < $$i; \
259 @for i in $(top_srcdir)/tests/*; do \
260 if test -f $$i; then \
261 for options in '--index=10' '--primal --index=10'; do \
262 for spec in 'random' 'bf' 'df'; do \
263 opt="--specialization=$$spec $$options"; \
265 ./test $$opt < $$i || echo -n " NOT"; \
273 @for i in $(top_srcdir)/tests/lexmin/*; do \
274 if test -f $$i; then \
275 for spec in 'random' 'bf' 'df'; do \
276 opt="--specialization=$$spec"; \
278 ./lexmin --verify $$opt < $$i; \
286 version.h: @GIT_HEAD@
287 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@