document barvinok_union
[barvinok.git] / Makefile.am
blobe38e51bf4f1cdad3f8a005181d13aedc9bc109d6
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
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     evalue.c \
24     genfun.cc \
25     util.c \
26     conversion.cc \
27     conversion.h \
28     decomposer.cc \
29     decomposer.h \
30     lattice_point.cc \
31     lattice_point.h \
32     reduce_domain.c \
33     reduce_domain.h \
34     mat_util.cc \
35     mat_util.h \
36     barvinok.cc
37 EXTRA_libbarvinok_la_SOURCES = \
38     piputil.h
39 libbarvinok_la_LIBADD = @LTLIBOBJS@
40 libbarvinok_la_LDFLAGS = @BV_LDFLAGS@ -version-info @versioninfo@
41 LDADD = libbarvinok.la
43 test_SOURCES = test.c
44 barvinok_count_SOURCES = barvinok_count.c
45 barvinok_ehrhart_SOURCES = barvinok_ehrhart.cc
46 barvinok_series_SOURCES = barvinok_series.cc
47 barvinok_union_SOURCES = barvinok_union.cc
48 if HAVE_OMEGA
49 BEEO_SOURCES = omega/Exit.cc omega/convert.cc
50 else
51 BEEO_SOURCES = 
52 endif
53 barvinok_enumerate_e_SOURCES = barvinok_enumerate_e.cc $(BEEO_SOURCES)
54 barvinok_enumerate_e_CPPFLAGS = @OMEGA_CPPFLAGS@ @CPPFLAGS@
55 barvinok_enumerate_e_LDFLAGS = @OMEGA_LDFLAGS@ @LDFLAGS@
56 barvinok_enumerate_e_LDADD = @OMEGA_LIBS@ libbarvinok.la
57 verif_ehrhart_SOURCES = verif_ehrhart.c verify_main.cc verif_ehrhart.h
59 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
61 EXTRA_DIST = \
62     README.Solaris \
63     ChangeLog \
64     $(TESTFILES) \
65     latte2polylib.pl \
66     NTL_5_3_2.patch \
67     doc/Internal.tex \
68     doc/Usage.tex \
69     doc/barvinok.bib \
70     doc/barvinok.gdf \
71     doc/barvinok.tex \
72     doc/chicago.bst \
73     doc/chicago.sty \
74     doc/mydefs.sty \
75     polymake/Makefile.in \
76     polymake/README \
77     polymake/autogen.sh \
78     polymake/configure.in \
79     polymake/lattice_points.cc
81 ACLOCAL_AMFLAGS = -I m4
83 install-data-local:
84         @test -z "$(pkgconfig_libdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfig_libdir)"
85         $(INSTALL_DATA) $(pkgconfig_libfile) "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
87 uninstall-local:
88         rm -f "$(DESTDIR)$(pkgconfig_libdir)/$(pkgconfig_libfile)"
90 dist-hook:
91         (cd $(distdir)/polymake; \
92             ./autogen.sh; rm -rf autogen.sh autom4te.cache)
93         (cd doc; make barvinok.pdf)
94         cp doc/barvinok.pdf $(distdir)/doc/
95         if test -f $(top_srcdir)/.git/HEAD; then \
96             echo @GIT_HEAD_VERSION@ > $(distdir)/GIT_HEAD_ID; \
97         else \
98             echo $(GIT_HEAD_ID) > $(distdir)/GIT_HEAD_ID; \
99         fi
101 if HAVE_PIPLIB
102 BEE_TESTDIRS = ehrhart_e ehrhart_e/piplib
103 else
104 BEE_TESTDIRS = ehrhart_e
105 endif
107 check-series:
108         @for i in $(top_srcdir)/tests/ehrhart/*; do \
109             if test -f $$i; then \
110                 echo $$i; \
111                 ./verif_ehrhart --series < $$i; \
112             fi \
113         done
114 check:
115         @for i in $(top_srcdir)/tests/ehrhart/*; do \
116             if test -f $$i; then \
117                 echo $$i; \
118                 ./verif_ehrhart < $$i; \
119             fi \
120         done
121         @for dir in $(BEE_TESTDIRS); do \
122             for options in '' '--pip' '--pip --omega'; do \
123                 for i in $(top_srcdir)/tests/$$dir/*; do \
124                     if test -f $$i; then \
125                         echo $$i $$options; \
126                         ./barvinok_enumerate_e --verify $$options < $$i; \
127                     fi \
128                 done \
129             done \
130         done
131         @for i in $(top_srcdir)/tests/*; do \
132             if test -f $$i; then \
133                 echo -n $$i; \
134                 ./test < $$i || echo -n " NOT"; \
135                 echo " ok"; \
136             fi \
137         done
139 version.h: @GIT_HEAD@
140         echo '#define GIT_HEAD_ID "'@GIT_HEAD_VERSION@'"' > $@