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*')
119 polymake/Makefile.in \
121 polymake/autogen.sh \
122 polymake/configure.in \
123 polymake/lattice_points.cc
125 ACLOCAL_AMFLAGS = -I m4
128 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
129 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
132 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
135 (cd $(distdir)/polymake; \
136 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
137 (cd doc; make barvinok.pdf)
138 cp doc/barvinok.pdf $(distdir)/doc/
139 if test -f $(top_srcdir)/.git/HEAD; then \
140 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
142 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
146 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf ehrhart_e/piplib
148 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf
152 @for i in $(top_srcdir)/tests/ehrhart/*; do \
153 if test -f $$i; then \
155 ./verif_ehrhart --series < $$i; \
159 @for i in $(top_srcdir)/tests/ehrhart/*; do \
160 if test -f $$i; then \
162 ./verif_ehrhart < $$i; \
165 @for dir in $(BEE_TESTDIRS); do \
166 for options in '' '--pip' '--pip --omega'; do \
167 for i in $(top_srcdir)/tests/$$dir/*; do \
168 if test -f $$i; then \
169 echo $$i $$options; \
170 ./barvinok_enumerate_e --verify $$options < $$i; \
175 @for i in $(top_srcdir)/tests/ehrhart_e/scarf/*; do \
176 if test -f $$i; then \
178 ./barvinok_enumerate_e --verify --scarf < $$i; \
181 @for i in $(top_srcdir)/tests/*; do \
182 if test -f $$i; then \
184 ./test < $$i || echo -n " NOT"; \
189 @for i in $(top_srcdir)/tests/lexmin/*; do \
190 if test -f $$i; then \
192 ./lexmin --verify < $$i; \
197 version.h: @GIT_HEAD@
198 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@