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 = \
20 libbarvinok_la_SOURCES = \
37 genfun_constructor.cc \
38 genfun_constructor.h \
48 EXTRA_libbarvinok_la_SOURCES = \
50 libbarvinok_la_LIBADD = @LTLIBOBJS@
51 libbarvinok_la_LDFLAGS = @BV_LDFLAGS@ -version-info @versioninfo@
52 LDADD = libbarvinok.la
55 barvinok_count_SOURCES = barvinok_count.c
56 barvinok_ehrhart_SOURCES = barvinok_ehrhart.cc
57 barvinok_series_SOURCES = barvinok_series.cc
58 barvinok_union_SOURCES = barvinok_union.cc
60 BEEO_SOURCES = omega/Exit.cc omega/convert.cc
64 barvinok_enumerate_e_SOURCES = \
65 barvinok_enumerate_e.cc \
68 barvinok_enumerate_e_CPPFLAGS = @OMEGA_CPPFLAGS@ @CPPFLAGS@
69 barvinok_enumerate_e_LDFLAGS = @OMEGA_LDFLAGS@ @LDFLAGS@
70 barvinok_enumerate_e_LDADD = @OMEGA_LIBS@ libbarvinok.la
71 verif_ehrhart_SOURCES = verif_ehrhart.c verify_main.cc verif_ehrhart.h
72 4coins_SOURCES = 4coins.cc scarf.cc
73 lexmin_SOURCES = lexmin.cc combine.c combine.h fdstream.cc fdstream.h
75 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
91 polymake/Makefile.in \
94 polymake/configure.in \
95 polymake/lattice_points.cc
97 ACLOCAL_AMFLAGS = -I m4
100 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
101 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
104 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
107 (cd $(distdir)/polymake; \
108 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
109 (cd doc; make barvinok.pdf)
110 cp doc/barvinok.pdf $(distdir)/doc/
111 if test -f $(top_srcdir)/.git/HEAD; then \
112 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
114 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
118 BEE_TESTDIRS = ehrhart_e ehrhart_e/piplib
120 BEE_TESTDIRS = ehrhart_e
124 @for i in $(top_srcdir)/tests/ehrhart/*; do \
125 if test -f $$i; then \
127 ./verif_ehrhart --series < $$i; \
131 @for i in $(top_srcdir)/tests/ehrhart/*; do \
132 if test -f $$i; then \
134 ./verif_ehrhart < $$i; \
137 @for dir in $(BEE_TESTDIRS); do \
138 for options in '' '--pip' '--pip --omega'; do \
139 for i in $(top_srcdir)/tests/$$dir/*; do \
140 if test -f $$i; then \
141 echo $$i $$options; \
142 ./barvinok_enumerate_e --verify $$options < $$i; \
147 @for i in $(top_srcdir)/tests/*; do \
148 if test -f $$i; then \
150 ./test < $$i || echo -n " NOT"; \
155 @for i in $(top_srcdir)/tests/lexmin/*; do \
156 if test -f $$i; then \
158 ./lexmin --verify < $$i; \
163 version.h: @GIT_HEAD@
164 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@