add an ehrhart example with interesting chambers
[barvinok.git] / bernstein / Makefile.am
blobfeefd0a22a78b0a750995c6ebba1ee6cbaca1b3a
1 lib_LTLIBRARIES = libbernstein.la
2 bin_PROGRAMS = bernstein
3 pkginclude_HEADERS = \
4         include/bernstein/bernstein.h \
5         include/bernstein/maximize.h \
6         include/bernstein/piecewise_lst.h
8 AM_CPPFLAGS = -I$(srcdir)/include @GINACLIB_CPPFLAGS@
10 libbernstein_la_SOURCES = \
11     src/bernstein.cpp \
12     src/maximize.cpp \
13     src/piecewise_lst.cpp \
14     src/polylib++.h \
15     src/polynomial.cpp \
16     src/polynomial.h
17 libbernstein_la_LIBADD = @GINACLIB_LIBS@
18 libbernstein_la_LDFLAGS = -version-info @versioninfo@
19 LDADD = libbernstein.la
21 bernstein_SOURCES = src/main.cpp
23 EXTRA_DIST = examples
25 ACLOCAL_AMFLAGS = -I m4
27 check:
28         @for i in $(top_srcdir)/examples/*.matrix; do \
29             if ./bernstein < $$i | diff -u $${i%.matrix}.out -; then \
30                 echo "$$i passed"; \
31             else \
32                 echo "$$i failed"; \
33             fi \
34         done