barvinok_enumerate_union_series: use gen_fun::summate method
[barvinok.git] / Makefile.am
blob569bfd79f0552db8e4b9d1c53d37b4785ca4e0e1
1 SUBDIRS = . omega doc
3 lib_LTLIBRARIES = libbarvinok.la
4 noinst_PROGRAMS = test barvinok_count randomtest barvinok_enumerate \
5                   barvinok_ehrhart \
6                   verif_ehrhart barvinok_enumerate_e \
7                   barvinok_series remove_redundant_equalities \
8                   barvinok_union \
9                   @bv_extra_programs@
10 EXTRA_PROGRAMS = piptest verify_lexsmaller polyhedron_sample
11 pkginclude_HEADERS = \
12     barvinok/barvinok.h \
13     barvinok/util.h \
14     barvinok/evalue.h \
15     barvinok/genfun.h
16 LINK = $(CXXLINK)
18 libbarvinok_la_SOURCES = \
19     barvinok/evalue.h \
20     barvinok/genfun.h \
21     barvinok/util.h \
22     barvinok/barvinok.h \
23     NTL_QQ.cc \
24     evalue.c \
25     genfun.cc \
26     util.c \
27     bfcounter.cc \
28     bfcounter.h \
29     conversion.cc \
30     conversion.h \
31     decomposer.cc \
32     decomposer.h \
33     dpoly.cc \
34     dpoly.h \
35     genfun_constructor.cc \
36     genfun_constructor.h \
37     lattice_point.cc \
38     lattice_point.h \
39     reduce_domain.c \
40     reduce_domain.h \
41     reducer.cc \
42     reducer.h \
43     mat_util.cc \
44     mat_util.h \
45     barvinok.cc
46 EXTRA_libbarvinok_la_SOURCES = \
47     piputil.h
48 libbarvinok_la_LIBADD = @LTLIBOBJS@
49 libbarvinok_la_LDFLAGS = @BV_LDFLAGS@ -version-info @versioninfo@
50 LDADD = libbarvinok.la
52 test_SOURCES = test.c
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
57 if HAVE_OMEGA
58 BEEO_SOURCES = omega/Exit.cc omega/convert.cc
59 else
60 BEEO_SOURCES = 
61 endif
62 barvinok_enumerate_e_SOURCES = \
63         barvinok_enumerate_e.cc \
64         scarf.cc \
65         $(BEEO_SOURCES)
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*')
73 EXTRA_DIST = \
74     README.Solaris \
75     ChangeLog \
76     $(TESTFILES) \
77     latte2polylib.pl \
78     NTL_5_3_2.patch \
79     doc/Internal.tex \
80     doc/Usage.tex \
81     doc/barvinok.bib \
82     doc/barvinok.gdf \
83     doc/barvinok.tex \
84     doc/chicago.bst \
85     doc/chicago.sty \
86     doc/mydefs.sty \
87     polymake/Makefile.in \
88     polymake/README \
89     polymake/autogen.sh \
90     polymake/configure.in \
91     polymake/lattice_points.cc
93 ACLOCAL_AMFLAGS = -I m4
95 install-data-local:
96         @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
97         $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
99 uninstall-local:
100         rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
102 dist-hook:
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; \
109         else \
110             echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
111         fi
113 if HAVE_PIPLIB
114 BEE_TESTDIRS = ehrhart_e ehrhart_e/piplib
115 else
116 BEE_TESTDIRS = ehrhart_e
117 endif
119 check-series:
120         @for i in $(top_srcdir)/tests/ehrhart/*; do \
121             if test -f $$i; then \
122                 echo $$i; \
123                 ./verif_ehrhart --series < $$i; \
124             fi \
125         done
126 check:
127         @for i in $(top_srcdir)/tests/ehrhart/*; do \
128             if test -f $$i; then \
129                 echo $$i; \
130                 ./verif_ehrhart < $$i; \
131             fi \
132         done
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; \
139                     fi \
140                 done \
141             done \
142         done
143         @for i in $(top_srcdir)/tests/*; do \
144             if test -f $$i; then \
145                 echo -n $$i; \
146                 ./test < $$i || echo -n " NOT"; \
147                 echo " ok"; \
148             fi \
149         done
151 version.h: @GIT_HEAD@
152         echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@