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
127 EXTRA_lexmin_SOURCE = polysign_cddf.cc polysign_cdd.cc polysign.c
129 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
137 doc/applications.tex \
147 polymake/Makefile.in \
149 polymake/autogen.sh \
150 polymake/configure.in \
151 polymake/lattice_points.cc
153 ACLOCAL_AMFLAGS = -I m4
156 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
157 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
160 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
163 (cd $(distdir)/polymake; \
164 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
165 (cd doc; make barvinok.pdf)
166 cp doc/barvinok.pdf $(distdir)/doc/
167 if test -f $(top_srcdir)/.git/HEAD; then \
168 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
170 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
174 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf ehrhart_e/piplib
176 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf
180 @for i in $(top_srcdir)/tests/ehrhart/*; do \
181 if test -f $$i; then \
183 ./verif_ehrhart --series < $$i; \
187 @for i in $(top_srcdir)/tests/ehrhart/*; do \
188 if test -f $$i; then \
190 ./verif_ehrhart < $$i; \
193 @for dir in $(BEE_TESTDIRS); do \
194 for options in '' '--pip' '--pip --omega'; do \
195 for i in $(top_srcdir)/tests/$$dir/*; do \
196 if test -f $$i; then \
197 echo $$i $$options; \
198 ./barvinok_enumerate_e --verify $$options < $$i; \
203 @for i in $(top_srcdir)/tests/ehrhart_e/scarf/*; do \
204 if test -f $$i; then \
206 ./barvinok_enumerate_e --verify --scarf < $$i; \
209 @for i in $(top_srcdir)/tests/*; do \
210 for options in '' '--primal'; do \
211 if test -f $$i; then \
212 echo -n $$i $$options; \
213 ./test $$options < $$i || echo -n " NOT"; \
219 @for i in $(top_srcdir)/tests/lexmin/*; do \
220 if test -f $$i; then \
222 ./lexmin --verify < $$i; \
227 version.h: @GIT_HEAD@
228 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@