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
75 lexmin_SOURCES = lexmin.cc combine.c combine.h fdstream.cc fdstream.h
77 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
93 polymake/Makefile.in \
96 polymake/configure.in \
97 polymake/lattice_points.cc
99 ACLOCAL_AMFLAGS = -I m4
102 @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
103 $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
106 rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
109 (cd $(distdir)/polymake; \
110 ./autogen.sh; rm -rf autogen.sh autom4te.cache)
111 (cd doc; make barvinok.pdf)
112 cp doc/barvinok.pdf $(distdir)/doc/
113 if test -f $(top_srcdir)/.git/HEAD; then \
114 echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
116 echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
120 BEE_TESTDIRS = ehrhart_e ehrhart_e/piplib
122 BEE_TESTDIRS = ehrhart_e
126 @for i in $(top_srcdir)/tests/ehrhart/*; do \
127 if test -f $$i; then \
129 ./verif_ehrhart --series < $$i; \
133 @for i in $(top_srcdir)/tests/ehrhart/*; do \
134 if test -f $$i; then \
136 ./verif_ehrhart < $$i; \
139 @for dir in $(BEE_TESTDIRS); do \
140 for options in '' '--pip' '--pip --omega'; do \
141 for i in $(top_srcdir)/tests/$$dir/*; do \
142 if test -f $$i; then \
143 echo $$i $$options; \
144 ./barvinok_enumerate_e --verify $$options < $$i; \
149 @for i in $(top_srcdir)/tests/*; do \
150 if test -f $$i; then \
152 ./test < $$i || echo -n " NOT"; \
157 @for i in $(top_srcdir)/tests/lexmin/*; do \
158 if test -f $$i; then \
160 ./lexmin --verify < $$i; \
165 version.h: @GIT_HEAD@
166 echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@