gen_fun::Hadamard_product: don't assume equalities are independent
[barvinok.git] / Makefile.am
blobe867e43c907df90bcf8c17182aab2610597440f5
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 lexmin \
11                  polytope_scan
12 pkginclude_HEADERS = \
13     barvinok/NTL_QQ.h \
14     barvinok/barvinok.h \
15     barvinok/util.h \
16     barvinok/evalue.h \
17     barvinok/genfun.h
18 LINK = $(CXXLINK)
20 libbarvinok_la_SOURCES = \
21     barvinok/evalue.h \
22     barvinok/genfun.h \
23     barvinok/util.h \
24     barvinok/barvinok.h \
25     NTL_QQ.cc \
26     evalue.c \
27     genfun.cc \
28     util.c \
29     bfcounter.cc \
30     bfcounter.h \
31     conversion.cc \
32     conversion.h \
33     decomposer.cc \
34     decomposer.h \
35     dpoly.cc \
36     dpoly.h \
37     genfun_constructor.cc \
38     genfun_constructor.h \
39     lattice_point.cc \
40     lattice_point.h \
41     reduce_domain.c \
42     reduce_domain.h \
43     reducer.cc \
44     reducer.h \
45     mat_util.cc \
46     mat_util.h \
47     barvinok.cc
48 EXTRA_libbarvinok_la_SOURCES = \
49     piputil.h
50 libbarvinok_la_LIBADD = @LTLIBOBJS@
51 libbarvinok_la_LDFLAGS = @BV_LDFLAGS@ -version-info @versioninfo@
52 LDADD = libbarvinok.la
54 test_SOURCES = test.c
55 barvinok_count_SOURCES = barvinok_count.c
56 barvinok_ehrhart_SOURCES = barvinok_ehrhart.cc
57 barvinok_series_SOURCES = barvinok_series.cc
58 barvinok_union_SOURCES = barvinok_union.cc
59 if HAVE_OMEGA
60 BEEO_SOURCES = omega/Exit.cc omega/convert.cc
61 else
62 BEEO_SOURCES = 
63 endif
64 barvinok_enumerate_e_SOURCES = \
65         barvinok_enumerate_e.cc \
66         scarf.cc \
67         $(BEEO_SOURCES)
68 barvinok_enumerate_e_CPPFLAGS = @OMEGA_CPPFLAGS@ @CPPFLAGS@
69 barvinok_enumerate_e_LDFLAGS = @OMEGA_LDFLAGS@ @LDFLAGS@
70 barvinok_enumerate_e_LDADD = @OMEGA_LIBS@ libbarvinok.la
71 verif_ehrhart_SOURCES = verif_ehrhart.c verify_main.cc verif_ehrhart.h
72 4coins_SOURCES = 4coins.cc scarf.cc
73 lexmin_SOURCES = lexmin.cc combine.c combine.h fdstream.cc fdstream.h
75 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
77 EXTRA_DIST = \
78     README.Solaris \
79     ChangeLog \
80     $(TESTFILES) \
81     latte2polylib.pl \
82     NTL_5_3_2.patch \
83     doc/Internal.tex \
84     doc/Usage.tex \
85     doc/barvinok.bib \
86     doc/barvinok.gdf \
87     doc/barvinok.tex \
88     doc/chicago.bst \
89     doc/chicago.sty \
90     doc/mydefs.sty \
91     polymake/Makefile.in \
92     polymake/README \
93     polymake/autogen.sh \
94     polymake/configure.in \
95     polymake/lattice_points.cc
97 ACLOCAL_AMFLAGS = -I m4
99 install-data-local:
100         @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
101         $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
103 uninstall-local:
104         rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
106 dist-hook:
107         (cd $(distdir)/polymake; \
108             ./autogen.sh; rm -rf autogen.sh autom4te.cache)
109         (cd doc; make barvinok.pdf)
110         cp doc/barvinok.pdf $(distdir)/doc/
111         if test -f $(top_srcdir)/.git/HEAD; then \
112             echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
113         else \
114             echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
115         fi
117 if HAVE_PIPLIB
118 BEE_TESTDIRS = ehrhart_e ehrhart_e/piplib
119 else
120 BEE_TESTDIRS = ehrhart_e
121 endif
123 check-series:
124         @for i in $(top_srcdir)/tests/ehrhart/*; do \
125             if test -f $$i; then \
126                 echo $$i; \
127                 ./verif_ehrhart --series < $$i; \
128             fi \
129         done
130 check:
131         @for i in $(top_srcdir)/tests/ehrhart/*; do \
132             if test -f $$i; then \
133                 echo $$i; \
134                 ./verif_ehrhart < $$i; \
135             fi \
136         done
137         @for dir in $(BEE_TESTDIRS); do \
138             for options in '' '--pip' '--pip --omega'; do \
139                 for i in $(top_srcdir)/tests/$$dir/*; do \
140                     if test -f $$i; then \
141                         echo $$i $$options; \
142                         ./barvinok_enumerate_e --verify $$options < $$i; \
143                     fi \
144                 done \
145             done \
146         done
147         @for i in $(top_srcdir)/tests/*; do \
148             if test -f $$i; then \
149                 echo -n $$i; \
150                 ./test < $$i || echo -n " NOT"; \
151                 echo " ok"; \
152             fi \
153         done
154 if HAVE_GLPK
155         @for i in $(top_srcdir)/tests/lexmin/*; do \
156             if test -f $$i; then \
157                 echo $$i; \
158                 ./lexmin --verify < $$i; \
159             fi \
160         done
161 endif
163 version.h: @GIT_HEAD@
164         echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@