2 MAYBE_BERNSTEIN = bernstein
4 SUBDIRS = $(MAYBE_BERNSTEIN) lib . omega doc
6 AM_CPPFLAGS = -I$(srcdir)/bernstein/include -I$(srcdir)/lib @GINACLIB_CPPFLAGS@
9 lib_LTLIBRARIES = libbarvinok.la
10 bin_PROGRAMS = barvinok_count barvinok_enumerate barvinok_enumerate_e \
12 noinst_PROGRAMS = test randomtest \
13 remove_redundant_equalities \
14 barvinok_union barvinok_maximize \
16 EXTRA_PROGRAMS = piptest verify_lexsmaller polyhedron_sample 4coins lexmin \
18 pkginclude_HEADERS = \
27 barvinok/basis_reduction.h \
32 BERNSTEIN_CC = bernstein.cc
35 BR_CDD = basis_reduction_cdd.cc initcdd.cc
38 BR_GLPK = basis_reduction_glpk.c
40 libbarvinok_la_SOURCES = \
59 genfun_constructor.cc \
60 genfun_constructor.h \
76 EXTRA_libbarvinok_la_SOURCES = \
82 BERNSTEIN_LA = $(top_builddir)/bernstein/libbernstein.la
84 libbarvinok_la_LIBADD = @LTLIBOBJS@ $(BERNSTEIN_LA) lib/libgnu.la
85 libbarvinok_la_LDFLAGS = @BV_LDFLAGS@ -version-info @versioninfo@
86 LDADD = libbarvinok.la
89 barvinok_count_SOURCES = barvinok_count.c
90 barvinok_ehrhart_SOURCES = barvinok_ehrhart.cc
91 barvinok_union_SOURCES = barvinok_union.cc
93 BEEO_SOURCES = omega/Exit.cc omega/convert.cc
97 barvinok_enumerate_SOURCES = \
98 barvinok_enumerate.cc \
107 barvinok_enumerate_e_SOURCES = \
108 barvinok_enumerate_e.cc \
116 barvinok_enumerate_e_CPPFLAGS = @OMEGA_CPPFLAGS@ $(AM_CPPFLAGS)
117 barvinok_enumerate_e_LDFLAGS = @OMEGA_LDFLAGS@ @LDFLAGS@
118 barvinok_enumerate_e_LDADD = @OMEGA_LIBS@ libbarvinok.la
119 barvinok_maximize_SOURCES = \
123 4coins_SOURCES = 4coins.cc
125 POLYSIGN = polysign_cddf.cc polysign_cdd.cc
144 EXTRA_lexmin_SOURCE = polysign_cddf.cc polysign_cdd.cc polysign.c
146 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
154 doc/applications.tex \
164 polymake/Makefile.in \
166 polymake/autogen.sh \
167 polymake/configure.in \
168 polymake/lattice_points.cc
170 ACLOCAL_AMFLAGS = -I m4
173 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
174 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
177 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
180 (cd $(distdir)/polymake; \
181 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
182 (cd doc; make barvinok.pdf)
183 cp doc/barvinok.pdf $(distdir)/doc/
184 if test -f $(top_srcdir)/.git/HEAD; then \
185 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
187 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
191 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf ehrhart_e/piplib
193 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf
196 check: check-enumerate check-enumerate_e check-test check-lexmin
197 check-enumerate: barvinok_enumerate
198 @for i in $(top_srcdir)/tests/ehrhart/*; do \
199 if test -f $$i; then \
201 for options in '' '--series' '--series --primal'; do \
202 for spec in 'random' 'bf' 'df'; do \
203 opt="--specialization=$$spec $$options"; \
205 ./barvinok_enumerate --verify $$opt < $$i; \
210 check-enumerate_e: barvinok_enumerate_e
211 @for dir in $(BEE_TESTDIRS); do \
212 for i in $(top_srcdir)/tests/$$dir/*; do \
213 if test -f $$i; then \
214 for options in '' '--pip' '--pip --omega'; do \
215 for spec in 'random' 'bf' 'df'; do \
216 opt="--specialization=$$spec $$options"; \
218 ./barvinok_enumerate_e --verify $$opt < $$i; \
224 @for i in $(top_srcdir)/tests/ehrhart_e/scarf/*; do \
225 if test -f $$i; then \
226 for spec in 'random' 'bf' 'df'; do \
227 opt="--specialization=$$spec --scarf"; \
229 ./barvinok_enumerate_e --verify $$opt < $$i; \
234 @for i in $(top_srcdir)/tests/*; do \
235 if test -f $$i; then \
236 for options in '--index=10' '--primal --index=10'; do \
237 for spec in 'random' 'bf' 'df'; do \
238 opt="--specialization=$$spec $$options"; \
240 ./test $$opt < $$i || echo -n " NOT"; \
248 @for i in $(top_srcdir)/tests/lexmin/*; do \
249 if test -f $$i; then \
250 for spec in 'random' 'bf' 'df'; do \
251 opt="--specialization=$$spec"; \
253 ./lexmin --verify $$opt < $$i; \
261 version.h: @GIT_HEAD@
262 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@