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 verif_ehrhart barvinok_enumerate_e \
13 barvinok_series 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_series_SOURCES = barvinok_series.cc
92 barvinok_union_SOURCES = barvinok_union.cc
94 BEEO_SOURCES = omega/Exit.cc omega/convert.cc
98 barvinok_enumerate_e_SOURCES = \
101 barvinok_enumerate_e.cc \
103 barvinok_enumerate_e_CPPFLAGS = @OMEGA_CPPFLAGS@ $(AM_CPPFLAGS)
104 barvinok_enumerate_e_LDFLAGS = @OMEGA_LDFLAGS@ @LDFLAGS@
105 barvinok_enumerate_e_LDADD = @OMEGA_LIBS@ libbarvinok.la
106 verif_ehrhart_SOURCES = verif_ehrhart.c verify_main.cc verif_ehrhart.h
107 4coins_SOURCES = 4coins.cc
109 POLYSIGN = polysign_cddf.cc polysign_cdd.cc
128 EXTRA_lexmin_SOURCE = polysign_cddf.cc polysign_cdd.cc polysign.c
130 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
138 doc/applications.tex \
148 polymake/Makefile.in \
150 polymake/autogen.sh \
151 polymake/configure.in \
152 polymake/lattice_points.cc
154 ACLOCAL_AMFLAGS = -I m4
157 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
158 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
161 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
164 (cd $(distdir)/polymake; \
165 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
166 (cd doc; make barvinok.pdf)
167 cp doc/barvinok.pdf $(distdir)/doc/
168 if test -f $(top_srcdir)/.git/HEAD; then \
169 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
171 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
175 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf ehrhart_e/piplib
177 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf
181 @for i in $(top_srcdir)/tests/ehrhart/*; do \
182 if test -f $$i; then \
184 ./verif_ehrhart --series < $$i; \
188 @for i in $(top_srcdir)/tests/ehrhart/*; do \
189 if test -f $$i; then \
191 ./verif_ehrhart < $$i; \
194 @for dir in $(BEE_TESTDIRS); do \
195 for options in '' '--pip' '--pip --omega'; do \
196 for i in $(top_srcdir)/tests/$$dir/*; do \
197 if test -f $$i; then \
198 echo $$i $$options; \
199 ./barvinok_enumerate_e --verify $$options < $$i; \
204 @for i in $(top_srcdir)/tests/ehrhart_e/scarf/*; do \
205 if test -f $$i; then \
207 ./barvinok_enumerate_e --verify --scarf < $$i; \
210 @for i in $(top_srcdir)/tests/*; do \
211 for options in '' '--primal'; do \
212 if test -f $$i; then \
213 echo -n $$i $$options; \
214 ./test $$options < $$i || echo -n " NOT"; \
220 @for i in $(top_srcdir)/tests/lexmin/*; do \
221 if test -f $$i; then \
223 ./lexmin --verify < $$i; \
228 version.h: @GIT_HEAD@
229 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@