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 = \
25 barvinok/basis_reduction.h \
30 BERNSTEIN_CC = bernstein.cc
32 libbarvinok_la_SOURCES = \
50 genfun_constructor.cc \
51 genfun_constructor.h \
64 EXTRA_libbarvinok_la_SOURCES = \
68 BERNSTEIN_LA = $(top_builddir)/bernstein/libbernstein.la
70 libbarvinok_la_LIBADD = @LTLIBOBJS@ $(BERNSTEIN_LA)
71 libbarvinok_la_LDFLAGS = @BV_LDFLAGS@ -version-info @versioninfo@
72 LDADD = libbarvinok.la
75 barvinok_count_SOURCES = barvinok_count.c
76 barvinok_ehrhart_SOURCES = barvinok_ehrhart.cc
77 barvinok_series_SOURCES = barvinok_series.cc
78 barvinok_union_SOURCES = barvinok_union.cc
80 BEEO_SOURCES = omega/Exit.cc omega/convert.cc
84 barvinok_enumerate_e_SOURCES = \
85 barvinok_enumerate_e.cc \
87 barvinok_enumerate_e_CPPFLAGS = @OMEGA_CPPFLAGS@ @CPPFLAGS@
88 barvinok_enumerate_e_LDFLAGS = @OMEGA_LDFLAGS@ @LDFLAGS@
89 barvinok_enumerate_e_LDADD = @OMEGA_LIBS@ libbarvinok.la
90 verif_ehrhart_SOURCES = verif_ehrhart.c verify_main.cc verif_ehrhart.h
91 4coins_SOURCES = 4coins.cc
103 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
111 doc/applications.tex \
121 polymake/Makefile.in \
123 polymake/autogen.sh \
124 polymake/configure.in \
125 polymake/lattice_points.cc
127 ACLOCAL_AMFLAGS = -I m4
130 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
131 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
134 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
137 (cd $(distdir)/polymake; \
138 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
139 (cd doc; make barvinok.pdf)
140 cp doc/barvinok.pdf $(distdir)/doc/
141 if test -f $(top_srcdir)/.git/HEAD; then \
142 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
144 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
148 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf ehrhart_e/piplib
150 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf
154 @for i in $(top_srcdir)/tests/ehrhart/*; do \
155 if test -f $$i; then \
157 ./verif_ehrhart --series < $$i; \
161 @for i in $(top_srcdir)/tests/ehrhart/*; do \
162 if test -f $$i; then \
164 ./verif_ehrhart < $$i; \
167 @for dir in $(BEE_TESTDIRS); do \
168 for options in '' '--pip' '--pip --omega'; do \
169 for i in $(top_srcdir)/tests/$$dir/*; do \
170 if test -f $$i; then \
171 echo $$i $$options; \
172 ./barvinok_enumerate_e --verify $$options < $$i; \
177 @for i in $(top_srcdir)/tests/ehrhart_e/scarf/*; do \
178 if test -f $$i; then \
180 ./barvinok_enumerate_e --verify --scarf < $$i; \
183 @for i in $(top_srcdir)/tests/*; do \
184 if test -f $$i; then \
186 ./test < $$i || echo -n " NOT"; \
191 @for i in $(top_srcdir)/tests/lexmin/*; do \
192 if test -f $$i; then \
194 ./lexmin --verify < $$i; \
199 version.h: @GIT_HEAD@
200 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@