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 = \
49 genfun_constructor.cc \
50 genfun_constructor.h \
63 EXTRA_libbarvinok_la_SOURCES = \
67 BERNSTEIN_LA = $(top_builddir)/bernstein/libbernstein.la
69 libbarvinok_la_LIBADD = @LTLIBOBJS@ $(BERNSTEIN_LA)
70 libbarvinok_la_LDFLAGS = @BV_LDFLAGS@ -version-info @versioninfo@
71 LDADD = libbarvinok.la
74 barvinok_count_SOURCES = barvinok_count.c
75 barvinok_ehrhart_SOURCES = barvinok_ehrhart.cc
76 barvinok_series_SOURCES = barvinok_series.cc
77 barvinok_union_SOURCES = barvinok_union.cc
79 BEEO_SOURCES = omega/Exit.cc omega/convert.cc
83 barvinok_enumerate_e_SOURCES = \
84 barvinok_enumerate_e.cc \
86 barvinok_enumerate_e_CPPFLAGS = @OMEGA_CPPFLAGS@ @CPPFLAGS@
87 barvinok_enumerate_e_LDFLAGS = @OMEGA_LDFLAGS@ @LDFLAGS@
88 barvinok_enumerate_e_LDADD = @OMEGA_LIBS@ libbarvinok.la
89 verif_ehrhart_SOURCES = verif_ehrhart.c verify_main.cc verif_ehrhart.h
90 4coins_SOURCES = 4coins.cc
102 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
118 polymake/Makefile.in \
120 polymake/autogen.sh \
121 polymake/configure.in \
122 polymake/lattice_points.cc
124 ACLOCAL_AMFLAGS = -I m4
127 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
128 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
131 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
134 (cd $(distdir)/polymake; \
135 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
136 (cd doc; make barvinok.pdf)
137 cp doc/barvinok.pdf $(distdir)/doc/
138 if test -f $(top_srcdir)/.git/HEAD; then \
139 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
141 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
145 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf ehrhart_e/piplib
147 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf
151 @for i in $(top_srcdir)/tests/ehrhart/*; do \
152 if test -f $$i; then \
154 ./verif_ehrhart --series < $$i; \
158 @for i in $(top_srcdir)/tests/ehrhart/*; do \
159 if test -f $$i; then \
161 ./verif_ehrhart < $$i; \
164 @for dir in $(BEE_TESTDIRS); do \
165 for options in '' '--pip' '--pip --omega'; do \
166 for i in $(top_srcdir)/tests/$$dir/*; do \
167 if test -f $$i; then \
168 echo $$i $$options; \
169 ./barvinok_enumerate_e --verify $$options < $$i; \
174 @for i in $(top_srcdir)/tests/ehrhart_e/scarf/*; do \
175 if test -f $$i; then \
177 ./barvinok_enumerate_e --verify --scarf < $$i; \
180 @for i in $(top_srcdir)/tests/*; do \
181 if test -f $$i; then \
183 ./test < $$i || echo -n " NOT"; \
188 @for i in $(top_srcdir)/tests/lexmin/*; do \
189 if test -f $$i; then \
191 ./lexmin --verify < $$i; \
196 version.h: @GIT_HEAD@
197 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@