3 lib_LTLIBRARIES = libbarvinok.la
4 noinst_PROGRAMS = test barvinok_count randomtest barvinok_enumerate \
6 verif_ehrhart barvinok_enumerate_e \
7 barvinok_series remove_redundant_equalities \
10 EXTRA_PROGRAMS = piptest verify_lexsmaller polyhedron_sample 4coins lexmin \
12 pkginclude_HEADERS = \
21 libbarvinok_la_SOURCES = \
38 genfun_constructor.cc \
39 genfun_constructor.h \
50 EXTRA_libbarvinok_la_SOURCES = \
52 libbarvinok_la_LIBADD = @LTLIBOBJS@
53 libbarvinok_la_LDFLAGS = @BV_LDFLAGS@ -version-info @versioninfo@
54 LDADD = libbarvinok.la
57 barvinok_count_SOURCES = barvinok_count.c
58 barvinok_ehrhart_SOURCES = barvinok_ehrhart.cc
59 barvinok_series_SOURCES = barvinok_series.cc
60 barvinok_union_SOURCES = barvinok_union.cc
62 BEEO_SOURCES = omega/Exit.cc omega/convert.cc
66 barvinok_enumerate_e_SOURCES = \
67 barvinok_enumerate_e.cc \
70 barvinok_enumerate_e_CPPFLAGS = @OMEGA_CPPFLAGS@ @CPPFLAGS@
71 barvinok_enumerate_e_LDFLAGS = @OMEGA_LDFLAGS@ @LDFLAGS@
72 barvinok_enumerate_e_LDADD = @OMEGA_LIBS@ libbarvinok.la
73 verif_ehrhart_SOURCES = verif_ehrhart.c verify_main.cc verif_ehrhart.h
74 4coins_SOURCES = 4coins.cc scarf.cc
86 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
102 polymake/Makefile.in \
104 polymake/autogen.sh \
105 polymake/configure.in \
106 polymake/lattice_points.cc
108 ACLOCAL_AMFLAGS = -I m4
111 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
112 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
115 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
118 (cd $(distdir)/polymake; \
119 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
120 (cd doc; make barvinok.pdf)
121 cp doc/barvinok.pdf $(distdir)/doc/
122 if test -f $(top_srcdir)/.git/HEAD; then \
123 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
125 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
129 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf ehrhart_e/piplib
131 BEE_TESTDIRS = ehrhart_e ehrhart_e/scarf
135 @for i in $(top_srcdir)/tests/ehrhart/*; do \
136 if test -f $$i; then \
138 ./verif_ehrhart --series < $$i; \
142 @for i in $(top_srcdir)/tests/ehrhart/*; do \
143 if test -f $$i; then \
145 ./verif_ehrhart < $$i; \
148 @for dir in $(BEE_TESTDIRS); do \
149 for options in '' '--pip' '--pip --omega'; do \
150 for i in $(top_srcdir)/tests/$$dir/*; do \
151 if test -f $$i; then \
152 echo $$i $$options; \
153 ./barvinok_enumerate_e --verify $$options < $$i; \
158 @for i in $(top_srcdir)/tests/ehrhart_e/scarf/*; do \
159 if test -f $$i; then \
161 ./barvinok_enumerate_e --verify --scarf < $$i; \
164 @for i in $(top_srcdir)/tests/*; do \
165 if test -f $$i; then \
167 ./test < $$i || echo -n " NOT"; \
172 @for i in $(top_srcdir)/tests/lexmin/*; do \
173 if test -f $$i; then \
175 ./lexmin --verify < $$i; \
180 version.h: @GIT_HEAD@
181 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@