2 MAYBE_BERNSTEIN = bernstein
4 SUBDIRS = $(MAYBE_BERNSTEIN) lib . omega doc
6 AM_CPPFLAGS = -I$(srcdir)/bernstein/include -I$(srcdir)/lib
9 lib_LTLIBRARIES = libbarvinok.la
10 bin_PROGRAMS = barvinok_count barvinok_enumerate barvinok_enumerate_e \
12 noinst_PROGRAMS = test randomtest \
13 remove_redundant_equalities \
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 \
105 barvinok_enumerate_e_SOURCES = \
108 barvinok_enumerate_e.cc \
110 barvinok_enumerate_e_CPPFLAGS = @OMEGA_CPPFLAGS@ $(AM_CPPFLAGS)
111 barvinok_enumerate_e_LDFLAGS = @OMEGA_LDFLAGS@ @LDFLAGS@
112 barvinok_enumerate_e_LDADD = @OMEGA_LIBS@ libbarvinok.la
113 4coins_SOURCES = 4coins.cc
115 POLYSIGN = polysign_cddf.cc polysign_cdd.cc
134 EXTRA_lexmin_SOURCE = polysign_cddf.cc polysign_cdd.cc polysign.c
136 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
144 doc/applications.tex \
154 polymake/Makefile.in \
156 polymake/autogen.sh \
157 polymake/configure.in \
158 polymake/lattice_points.cc
160 ACLOCAL_AMFLAGS = -I m4
163 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
164 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
167 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
170 (cd $(distdir)/polymake; \
171 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
172 (cd doc; make barvinok.pdf)
173 cp doc/barvinok.pdf $(distdir)/doc/
174 if test -f $(top_srcdir)/.git/HEAD; then \
175 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
177 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
181 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf ehrhart_e/piplib
183 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf
187 @for i in $(top_srcdir)/tests/ehrhart/*; do \
188 if test -f $$i; then \
189 for options in '' '--primal'; do \
190 for spec in 'random' 'bf' 'df'; do \
191 opt="--specialization=$$spec $$options"; \
193 ./barvinok_enumerate --verify --series $$opt < $$i; \
199 @for i in $(top_srcdir)/tests/ehrhart/*; do \
200 if test -f $$i; then \
201 for spec in 'random' 'bf' 'df'; do \
202 opt="--specialization=$$spec"; \
204 ./barvinok_enumerate --verify $$opt < $$i; \
208 @for dir in $(BEE_TESTDIRS); do \
209 for i in $(top_srcdir)/tests/$$dir/*; do \
210 if test -f $$i; then \
211 for options in '' '--pip' '--pip --omega'; do \
212 for spec in 'random' 'bf' 'df'; do \
213 opt="--specialization=$$spec $$options"; \
215 ./barvinok_enumerate_e --verify $$opt < $$i; \
221 @for i in $(top_srcdir)/tests/ehrhart_e/scarf/*; do \
222 if test -f $$i; then \
223 for spec in 'random' 'bf' 'df'; do \
224 opt="--specialization=$$spec --scarf"; \
226 ./barvinok_enumerate_e --verify $$opt < $$i; \
230 @for i in $(top_srcdir)/tests/*; do \
231 if test -f $$i; then \
232 for options in '--index=10' '--primal --index=10'; do \
233 for spec in 'random' 'bf' 'df'; do \
234 opt="--specialization=$$spec $$options"; \
236 ./test $$opt < $$i || echo -n " NOT"; \
243 @for i in $(top_srcdir)/tests/lexmin/*; do \
244 if test -f $$i; then \
245 for spec in 'random' 'bf' 'df'; do \
246 opt="--specialization=$$spec"; \
248 ./lexmin --verify $$opt < $$i; \
254 version.h: @GIT_HEAD@
255 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@