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 noinst_PROGRAMS = test barvinok_count randomtest barvinok_enumerate \
12 barvinok_enumerate_e \
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 \
103 barvinok_enumerate_e_SOURCES = \
106 barvinok_enumerate_e.cc \
108 barvinok_enumerate_e_CPPFLAGS = @OMEGA_CPPFLAGS@ $(AM_CPPFLAGS)
109 barvinok_enumerate_e_LDFLAGS = @OMEGA_LDFLAGS@ @LDFLAGS@
110 barvinok_enumerate_e_LDADD = @OMEGA_LIBS@ libbarvinok.la
111 4coins_SOURCES = 4coins.cc
113 POLYSIGN = polysign_cddf.cc polysign_cdd.cc
132 EXTRA_lexmin_SOURCE = polysign_cddf.cc polysign_cdd.cc polysign.c
134 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
142 doc/applications.tex \
152 polymake/Makefile.in \
154 polymake/autogen.sh \
155 polymake/configure.in \
156 polymake/lattice_points.cc
158 ACLOCAL_AMFLAGS = -I m4
161 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
162 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
165 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
168 (cd $(distdir)/polymake; \
169 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
170 (cd doc; make barvinok.pdf)
171 cp doc/barvinok.pdf $(distdir)/doc/
172 if test -f $(top_srcdir)/.git/HEAD; then \
173 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
175 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
179 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf ehrhart_e/piplib
181 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf
185 @for i in $(top_srcdir)/tests/ehrhart/*; do \
186 if test -f $$i; then \
188 ./barvinok_enumerate --verify --series < $$i; \
192 @for i in $(top_srcdir)/tests/ehrhart/*; do \
193 if test -f $$i; then \
195 ./barvinok_enumerate --verify < $$i; \
198 @for dir in $(BEE_TESTDIRS); do \
199 for options in '' '--pip' '--pip --omega'; do \
200 for i in $(top_srcdir)/tests/$$dir/*; do \
201 if test -f $$i; then \
202 echo $$i $$options; \
203 ./barvinok_enumerate_e --verify $$options < $$i; \
208 @for i in $(top_srcdir)/tests/ehrhart_e/scarf/*; do \
209 if test -f $$i; then \
211 ./barvinok_enumerate_e --verify --scarf < $$i; \
214 @for i in $(top_srcdir)/tests/*; do \
215 for options in '' '--primal'; do \
216 if test -f $$i; then \
217 echo -n $$i $$options; \
218 ./test $$options < $$i || echo -n " NOT"; \
224 @for i in $(top_srcdir)/tests/lexmin/*; do \
225 if test -f $$i; then \
227 ./lexmin --verify < $$i; \
232 version.h: @GIT_HEAD@
233 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@