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 = \
28 BERNSTEIN_CC = bernstein.cc
30 libbarvinok_la_SOURCES = \
47 genfun_constructor.cc \
48 genfun_constructor.h \
60 EXTRA_libbarvinok_la_SOURCES = \
64 BERNSTEIN_LA = $(top_builddir)/bernstein/libbernstein.la
66 libbarvinok_la_LIBADD = @LTLIBOBJS@ $(BERNSTEIN_LA)
67 libbarvinok_la_LDFLAGS = @BV_LDFLAGS@ -version-info @versioninfo@
68 LDADD = libbarvinok.la
71 barvinok_count_SOURCES = barvinok_count.c
72 barvinok_ehrhart_SOURCES = barvinok_ehrhart.cc
73 barvinok_series_SOURCES = barvinok_series.cc
74 barvinok_union_SOURCES = barvinok_union.cc
76 BEEO_SOURCES = omega/Exit.cc omega/convert.cc
80 barvinok_enumerate_e_SOURCES = \
81 barvinok_enumerate_e.cc \
84 barvinok_enumerate_e_CPPFLAGS = @OMEGA_CPPFLAGS@ @CPPFLAGS@
85 barvinok_enumerate_e_LDFLAGS = @OMEGA_LDFLAGS@ @LDFLAGS@
86 barvinok_enumerate_e_LDADD = @OMEGA_LIBS@ libbarvinok.la
87 verif_ehrhart_SOURCES = verif_ehrhart.c verify_main.cc verif_ehrhart.h
88 4coins_SOURCES = 4coins.cc scarf.cc
100 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
116 polymake/Makefile.in \
118 polymake/autogen.sh \
119 polymake/configure.in \
120 polymake/lattice_points.cc
122 ACLOCAL_AMFLAGS = -I m4
125 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
126 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
129 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
132 (cd $(distdir)/polymake; \
133 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
134 (cd doc; make barvinok.pdf)
135 cp doc/barvinok.pdf $(distdir)/doc/
136 if test -f $(top_srcdir)/.git/HEAD; then \
137 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
139 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
143 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf ehrhart_e/piplib
145 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf
149 @for i in $(top_srcdir)/tests/ehrhart/*; do \
150 if test -f $$i; then \
152 ./verif_ehrhart --series < $$i; \
156 @for i in $(top_srcdir)/tests/ehrhart/*; do \
157 if test -f $$i; then \
159 ./verif_ehrhart < $$i; \
162 @for dir in $(BEE_TESTDIRS); do \
163 for options in '' '--pip' '--pip --omega'; do \
164 for i in $(top_srcdir)/tests/$$dir/*; do \
165 if test -f $$i; then \
166 echo $$i $$options; \
167 ./barvinok_enumerate_e --verify $$options < $$i; \
172 @for i in $(top_srcdir)/tests/ehrhart_e/scarf/*; do \
173 if test -f $$i; then \
175 ./barvinok_enumerate_e --verify --scarf < $$i; \
178 @for i in $(top_srcdir)/tests/*; do \
179 if test -f $$i; then \
181 ./test < $$i || echo -n " NOT"; \
186 @for i in $(top_srcdir)/tests/lexmin/*; do \
187 if test -f $$i; then \
189 ./lexmin --verify < $$i; \
194 version.h: @GIT_HEAD@
195 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@