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
11 pkginclude_HEADERS = \
18 libbarvinok_la_SOURCES = \
35 genfun_constructor.cc \
36 genfun_constructor.h \
46 EXTRA_libbarvinok_la_SOURCES = \
48 libbarvinok_la_LIBADD = @LTLIBOBJS@
49 libbarvinok_la_LDFLAGS = @BV_LDFLAGS@ -version-info @versioninfo@
50 LDADD = libbarvinok.la
53 barvinok_count_SOURCES = barvinok_count.c
54 barvinok_ehrhart_SOURCES = barvinok_ehrhart.cc
55 barvinok_series_SOURCES = barvinok_series.cc
56 barvinok_union_SOURCES = barvinok_union.cc
58 BEEO_SOURCES = omega/Exit.cc omega/convert.cc
62 barvinok_enumerate_e_SOURCES = \
63 barvinok_enumerate_e.cc \
66 barvinok_enumerate_e_CPPFLAGS = @OMEGA_CPPFLAGS@ @CPPFLAGS@
67 barvinok_enumerate_e_LDFLAGS = @OMEGA_LDFLAGS@ @LDFLAGS@
68 barvinok_enumerate_e_LDADD = @OMEGA_LIBS@ libbarvinok.la
69 verif_ehrhart_SOURCES = verif_ehrhart.c verify_main.cc verif_ehrhart.h
71 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
87 polymake/Makefile.in \
90 polymake/configure.in \
91 polymake/lattice_points.cc
93 ACLOCAL_AMFLAGS = -I m4
96 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
97 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
100 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
103 (cd $(distdir)/polymake; \
104 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
105 (cd doc; make barvinok.pdf)
106 cp doc/barvinok.pdf $(distdir)/doc/
107 if test -f $(top_srcdir)/.git/HEAD; then \
108 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
110 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
114 BEE_TESTDIRS = ehrhart_e ehrhart_e/piplib
116 BEE_TESTDIRS = ehrhart_e
120 @for i in $(top_srcdir)/tests/ehrhart/*; do \
121 if test -f $$i; then \
123 ./verif_ehrhart --series < $$i; \
127 @for i in $(top_srcdir)/tests/ehrhart/*; do \
128 if test -f $$i; then \
130 ./verif_ehrhart < $$i; \
133 @for dir in $(BEE_TESTDIRS); do \
134 for options in '' '--pip' '--pip --omega'; do \
135 for i in $(top_srcdir)/tests/$$dir/*; do \
136 if test -f $$i; then \
137 echo $$i $$options; \
138 ./barvinok_enumerate_e --verify $$options < $$i; \
143 @for i in $(top_srcdir)/tests/*; do \
144 if test -f $$i; then \
146 ./test < $$i || echo -n " NOT"; \
151 version.h: @GIT_HEAD@
152 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@