2 MAYBE_BERNSTEIN = bernstein
4 SUBDIRS = $(MAYBE_BERNSTEIN) . omega doc
6 AM_CPPFLAGS = -I$(srcdir)/bernstein/include
8 lib_LTLIBRARIES = libbarvinok.la
9 noinst_PROGRAMS = test barvinok_count randomtest barvinok_enumerate \
11 verif_ehrhart barvinok_enumerate_e \
12 barvinok_series remove_redundant_equalities \
15 EXTRA_PROGRAMS = piptest verify_lexsmaller polyhedron_sample 4coins lexmin \
17 pkginclude_HEADERS = \
26 barvinok/basis_reduction.h \
31 BERNSTEIN_CC = bernstein.cc
34 BR_CDD = basis_reduction_cdd.cc initcdd.cc
37 BR_GLPK = basis_reduction_glpk.c
39 libbarvinok_la_SOURCES = \
58 genfun_constructor.cc \
59 genfun_constructor.h \
74 EXTRA_libbarvinok_la_SOURCES = \
80 BERNSTEIN_LA = $(top_builddir)/bernstein/libbernstein.la
82 libbarvinok_la_LIBADD = @LTLIBOBJS@ $(BERNSTEIN_LA)
83 libbarvinok_la_LDFLAGS = @BV_LDFLAGS@ -version-info @versioninfo@
84 LDADD = libbarvinok.la
87 barvinok_count_SOURCES = barvinok_count.c
88 barvinok_ehrhart_SOURCES = barvinok_ehrhart.cc
89 barvinok_series_SOURCES = barvinok_series.cc
90 barvinok_union_SOURCES = barvinok_union.cc
92 BEEO_SOURCES = omega/Exit.cc omega/convert.cc
96 barvinok_enumerate_e_SOURCES = \
97 barvinok_enumerate_e.cc \
99 barvinok_enumerate_e_CPPFLAGS = @OMEGA_CPPFLAGS@ @CPPFLAGS@
100 barvinok_enumerate_e_LDFLAGS = @OMEGA_LDFLAGS@ @LDFLAGS@
101 barvinok_enumerate_e_LDADD = @OMEGA_LIBS@ libbarvinok.la
102 verif_ehrhart_SOURCES = verif_ehrhart.c verify_main.cc verif_ehrhart.h
103 4coins_SOURCES = 4coins.cc
105 POLYSIGN = polysign_cddf.cc polysign_cdd.cc
121 EXTRA_lexmin_SOURCE = polysign_cddf.cc polysign_cdd.cc polysign.c
123 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
131 doc/applications.tex \
141 polymake/Makefile.in \
143 polymake/autogen.sh \
144 polymake/configure.in \
145 polymake/lattice_points.cc
147 ACLOCAL_AMFLAGS = -I m4
150 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
151 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
154 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
157 (cd $(distdir)/polymake; \
158 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
159 (cd doc; make barvinok.pdf)
160 cp doc/barvinok.pdf $(distdir)/doc/
161 if test -f $(top_srcdir)/.git/HEAD; then \
162 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
164 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
168 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf ehrhart_e/piplib
170 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf
174 @for i in $(top_srcdir)/tests/ehrhart/*; do \
175 if test -f $$i; then \
177 ./verif_ehrhart --series < $$i; \
181 @for i in $(top_srcdir)/tests/ehrhart/*; do \
182 if test -f $$i; then \
184 ./verif_ehrhart < $$i; \
187 @for dir in $(BEE_TESTDIRS); do \
188 for options in '' '--pip' '--pip --omega'; do \
189 for i in $(top_srcdir)/tests/$$dir/*; do \
190 if test -f $$i; then \
191 echo $$i $$options; \
192 ./barvinok_enumerate_e --verify $$options < $$i; \
197 @for i in $(top_srcdir)/tests/ehrhart_e/scarf/*; do \
198 if test -f $$i; then \
200 ./barvinok_enumerate_e --verify --scarf < $$i; \
203 @for i in $(top_srcdir)/tests/*; do \
204 if test -f $$i; then \
206 ./test < $$i || echo -n " NOT"; \
211 @for i in $(top_srcdir)/tests/lexmin/*; do \
212 if test -f $$i; then \
214 ./lexmin --verify < $$i; \
219 version.h: @GIT_HEAD@
220 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@