barvinok_count: simplify constraints after removing equalities
[barvinok.git] / Makefile.am
blob12154151871209f99e3b969d24cdf30b538d0b28
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 4coins
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
70 4coins_SOURCES = 4coins.cc scarf.cc
72 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
74 EXTRA_DIST = \
75     README.Solaris \
76     ChangeLog \
77     $(TESTFILES) \
78     latte2polylib.pl \
79     NTL_5_3_2.patch \
80     doc/Internal.tex \
81     doc/Usage.tex \
82     doc/barvinok.bib \
83     doc/barvinok.gdf \
84     doc/barvinok.tex \
85     doc/chicago.bst \
86     doc/chicago.sty \
87     doc/mydefs.sty \
88     polymake/Makefile.in \
89     polymake/README \
90     polymake/autogen.sh \
91     polymake/configure.in \
92     polymake/lattice_points.cc
94 ACLOCAL_AMFLAGS = -I m4
96 install-data-local:
97         @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
98         $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
100 uninstall-local:
101         rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
103 dist-hook:
104         (cd $(distdir)/polymake; \
105             ./autogen.sh; rm -rf autogen.sh autom4te.cache)
106         (cd doc; make barvinok.pdf)
107         cp doc/barvinok.pdf $(distdir)/doc/
108         if test -f $(top_srcdir)/.git/HEAD; then \
109             echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
110         else \
111             echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
112         fi
114 if HAVE_PIPLIB
115 BEE_TESTDIRS = ehrhart_e ehrhart_e/piplib
116 else
117 BEE_TESTDIRS = ehrhart_e
118 endif
120 check-series:
121         @for i in $(top_srcdir)/tests/ehrhart/*; do \
122             if test -f $$i; then \
123                 echo $$i; \
124                 ./verif_ehrhart --series < $$i; \
125             fi \
126         done
127 check:
128         @for i in $(top_srcdir)/tests/ehrhart/*; do \
129             if test -f $$i; then \
130                 echo $$i; \
131                 ./verif_ehrhart < $$i; \
132             fi \
133         done
134         @for dir in $(BEE_TESTDIRS); do \
135             for options in '' '--pip' '--pip --omega'; do \
136                 for i in $(top_srcdir)/tests/$$dir/*; do \
137                     if test -f $$i; then \
138                         echo $$i $$options; \
139                         ./barvinok_enumerate_e --verify $$options < $$i; \
140                     fi \
141                 done \
142             done \
143         done
144         @for i in $(top_srcdir)/tests/*; do \
145             if test -f $$i; then \
146                 echo -n $$i; \
147                 ./test < $$i || echo -n " NOT"; \
148                 echo " ok"; \
149             fi \
150         done
152 version.h: @GIT_HEAD@
153         echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@