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 \
78 EXTRA_libbarvinok_la_SOURCES = \
84 BERNSTEIN_LA = $(top_builddir)/bernstein/libbernstein.la
86 libbarvinok_la_LIBADD = @LTLIBOBJS@ $(BERNSTEIN_LA) lib/libgnu.la
87 libbarvinok_la_LDFLAGS = @BV_LDFLAGS@ -version-info @versioninfo@
88 LDADD = libbarvinok.la
91 barvinok_count_SOURCES = barvinok_count.c
92 barvinok_ehrhart_SOURCES = barvinok_ehrhart.cc
93 barvinok_union_SOURCES = barvinok_union.cc
95 BEEO_SOURCES = omega/Exit.cc omega/convert.cc
99 barvinok_enumerate_SOURCES = \
100 barvinok_enumerate.cc \
109 barvinok_enumerate_e_SOURCES = \
110 barvinok_enumerate_e.cc \
118 barvinok_enumerate_e_CPPFLAGS = @OMEGA_CPPFLAGS@ $(AM_CPPFLAGS)
119 barvinok_enumerate_e_LDFLAGS = @OMEGA_LDFLAGS@ @LDFLAGS@
120 barvinok_enumerate_e_LDADD = @OMEGA_LIBS@ libbarvinok.la
121 barvinok_maximize_SOURCES = \
127 4coins_SOURCES = 4coins.cc
129 POLYSIGN = polysign_cddf.cc polysign_cdd.cc
148 EXTRA_lexmin_SOURCE = polysign_cddf.cc polysign_cdd.cc polysign.c
150 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
158 doc/applications.tex \
168 polymake/Makefile.in \
170 polymake/autogen.sh \
171 polymake/configure.in \
172 polymake/lattice_points.cc
174 ACLOCAL_AMFLAGS = -I m4
177 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
178 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
181 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
184 (cd $(distdir)/polymake; \
185 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
186 (cd doc; make barvinok.pdf)
187 cp doc/barvinok.pdf $(distdir)/doc/
188 if test -f $(top_srcdir)/.git/HEAD; then \
189 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
191 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
195 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf ehrhart_e/piplib
197 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf
200 check: check-enumerate check-enumerate_e check-test check-lexmin
201 check-enumerate: barvinok_enumerate
202 @for i in $(top_srcdir)/tests/ehrhart/*; do \
203 if test -f $$i; then \
205 for options in '' '--series' '--series --primal'; do \
206 for spec in 'random' 'bf' 'df'; do \
207 opt="--specialization=$$spec $$options"; \
209 ./barvinok_enumerate --verify $$opt < $$i; \
214 check-enumerate_e: barvinok_enumerate_e
215 @for dir in $(BEE_TESTDIRS); do \
216 for i in $(top_srcdir)/tests/$$dir/*; do \
217 if test -f $$i; then \
218 for options in '' '--pip' '--pip --omega'; do \
219 for spec in 'random' 'bf' 'df'; do \
220 opt="--specialization=$$spec $$options"; \
222 ./barvinok_enumerate_e --verify $$opt < $$i; \
228 @for i in $(top_srcdir)/tests/ehrhart_e/scarf/*; do \
229 if test -f $$i; then \
230 for spec in 'random' 'bf' 'df'; do \
231 opt="--specialization=$$spec --scarf"; \
233 ./barvinok_enumerate_e --verify $$opt < $$i; \
238 @for i in $(top_srcdir)/tests/*; do \
239 if test -f $$i; then \
240 for options in '--index=10' '--primal --index=10'; do \
241 for spec in 'random' 'bf' 'df'; do \
242 opt="--specialization=$$spec $$options"; \
244 ./test $$opt < $$i || echo -n " NOT"; \
252 @for i in $(top_srcdir)/tests/lexmin/*; do \
253 if test -f $$i; then \
254 for spec in 'random' 'bf' 'df'; do \
255 opt="--specialization=$$spec"; \
257 ./lexmin --verify $$opt < $$i; \
265 version.h: @GIT_HEAD@
266 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@