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 = \
99 barvinok_enumerate_e.cc \
101 barvinok_enumerate_e_CPPFLAGS = @OMEGA_CPPFLAGS@ $(AM_CPPFLAGS)
102 barvinok_enumerate_e_LDFLAGS = @OMEGA_LDFLAGS@ @LDFLAGS@
103 barvinok_enumerate_e_LDADD = @OMEGA_LIBS@ libbarvinok.la
104 verif_ehrhart_SOURCES = verif_ehrhart.c verify_main.cc verif_ehrhart.h
105 4coins_SOURCES = 4coins.cc
107 POLYSIGN = polysign_cddf.cc polysign_cdd.cc
123 EXTRA_lexmin_SOURCE = polysign_cddf.cc polysign_cdd.cc polysign.c
125 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
133 doc/applications.tex \
143 polymake/Makefile.in \
145 polymake/autogen.sh \
146 polymake/configure.in \
147 polymake/lattice_points.cc
149 ACLOCAL_AMFLAGS = -I m4
152 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
153 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
156 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
159 (cd $(distdir)/polymake; \
160 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
161 (cd doc; make barvinok.pdf)
162 cp doc/barvinok.pdf $(distdir)/doc/
163 if test -f $(top_srcdir)/.git/HEAD; then \
164 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
166 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
170 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf ehrhart_e/piplib
172 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf
176 @for i in $(top_srcdir)/tests/ehrhart/*; do \
177 if test -f $$i; then \
179 ./verif_ehrhart --series < $$i; \
183 @for i in $(top_srcdir)/tests/ehrhart/*; do \
184 if test -f $$i; then \
186 ./verif_ehrhart < $$i; \
189 @for dir in $(BEE_TESTDIRS); do \
190 for options in '' '--pip' '--pip --omega'; do \
191 for i in $(top_srcdir)/tests/$$dir/*; do \
192 if test -f $$i; then \
193 echo $$i $$options; \
194 ./barvinok_enumerate_e --verify $$options < $$i; \
199 @for i in $(top_srcdir)/tests/ehrhart_e/scarf/*; do \
200 if test -f $$i; then \
202 ./barvinok_enumerate_e --verify --scarf < $$i; \
205 @for i in $(top_srcdir)/tests/*; do \
206 if test -f $$i; then \
208 ./test < $$i || echo -n " NOT"; \
213 @for i in $(top_srcdir)/tests/lexmin/*; do \
214 if test -f $$i; then \
216 ./lexmin --verify < $$i; \
221 version.h: @GIT_HEAD@
222 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@