3 AM_CPPFLAGS = -I$(srcdir)/../include -I. -DCLN
5 poly_src = $(srcdir)/../applications
7 lib_LTLIBRARIES = libpolylibcln.la
8 LDADD = libpolylibcln.la
22 disjoint_union_sepcln \
23 disjoint_union_adjcln \
24 ehrhart_quick_apxcln \
25 ehrhart_upper_boundcln \
26 ehrhart_lower_boundcln \
33 ../source/arith/errors.c \
34 ../source/kernel/errormsg.c \
35 ../source/kernel/vector.c \
36 ../source/kernel/matrix.c \
37 ../source/kernel/polyhedron.c \
38 ../source/kernel/polyparam.c \
39 ../source/kernel/param.c \
40 ../source/kernel/alpha.c \
41 ../source/ehrhart/ehrhart.c \
42 ../source/ehrhart/ext_ehrhart.c \
43 ../source/ehrhart/eval_ehrhart.c \
44 ../source/ehrhart/homogenization.c \
45 ../source/ehrhart/ranking.c \
46 ../source/kernel/matrix_addon.c \
47 ../source/kernel/matrix_permutations.c \
48 ../source/kernel/compress_parms.c \
49 ../source/kernel/SolveDio.c \
50 ../source/kernel/Lattice.c \
51 ../source/kernel/Matop.c \
52 ../source/kernel/NormalForms.c \
53 ../source/kernel/Zpolyhedron.c
55 libpolylibcln_la_SOURCES = $(CFILES)
56 # trick to force use of c++ linker
57 nodist_EXTRA_libpolylibcln_la_SOURCES = dummy.cxx
59 testlib_SOURCES = $(poly_src)/testlib.c
60 example_SOURCES = $(poly_src)/example.c
61 count_SOURCES = $(srcdir)/../source/count.c
62 Zpolytest_SOURCES = $(poly_src)/Zpolytest.c
63 ehrhart_rankingcln_SOURCES = $(poly_src)/ehrhart_ranking.c
64 ehrhart_unioncln_SOURCES = $(poly_src)/ehrhart_union.c
65 polytest_SOURCES = $(poly_src)/polytest.c
66 ppcln_SOURCES = $(poly_src)/pp.c
67 testehrhartcln_SOURCES = $(poly_src)/testehrhart.c
68 verif_ehrhart_SOURCES = $(poly_src)/verif_ehrhart.c
70 c2pcln_SOURCES = $(poly_src)/c2p.c
71 r2pcln_SOURCES = $(poly_src)/r2p.c
72 findvcln_SOURCES = $(poly_src)/findv.c
73 disjoint_union_sepcln_SOURCES = $(poly_src)/disjoint_union_sep.c
74 disjoint_union_adjcln_SOURCES = $(poly_src)/disjoint_union_adj.c
75 ehrhart_quick_apxcln_SOURCES = $(poly_src)/ehrhart_quick_apx.c
76 ehrhart_upper_boundcln_SOURCES = $(poly_src)/ehrhart_upper_bound.c
77 ehrhart_lower_boundcln_SOURCES = $(poly_src)/ehrhart_lower_bound.c
79 # hack to compile c source files using c++ compiler
82 ACLOCAL_AMFLAGS = -I m4
182 for x in $(ZPOLYTESTS) ; do \
183 echo "Verify file $$x" ; \
184 ./Zpolytest$(TEST_BITS) < $(srcdir)/../Test/Zpolytest/$$x > xyz;\
185 diff -w xyz $(srcdir)/../Test/Zpolytest/`basename $$x .in`.out ; \
187 if [ "$$result" -eq "1" ]; then \
188 echo "Error: $$x is not the same"; \
189 failedtest=`expr $$failedtest + 1`; \
194 if [ $$failedtest != 0 ]; then \
195 echo "$$failedtest tests failed"; \
197 echo "Test Zpolytest works correctly"; \
200 for x in $(EHRHART) ; do \
201 echo "Verify file $$x" ; \
202 ./testehrhartcln < $(srcdir)/../Test/ehrhart/$$x >xyz; \
203 diff -w xyz $(srcdir)/../Test/ehrhart/`basename $$x .in`.out ; \
205 if [ "$$result" -eq "1" ]; then \
206 echo "Error: $$x is not the same"; \
207 failedtest=`expr $$failedtest + 1`; \
212 if [ $$failedtest != 0 ]; then \
213 echo "$$failedtest tests failed"; \
215 echo "Test ehrhart works correctly"; \
218 for x in $(EHRHART_UNION) ; do \
219 echo "Verify file $$x" ; \
220 ./ehrhart_unioncln < $(srcdir)/../Test/ehrhart_union/$$x > xyz;\
221 diff -w xyz $(srcdir)/../Test/ehrhart_union/`basename $$x .in`.out ; \
223 if [ "$$result" -eq "1" ]; then \
224 echo "Error: $$x is not the same"; \
225 failedtest=`expr $$failedtest + 1`; \
230 if [ $$failedtest != 0 ]; then \
231 echo "$$failedtest tests failed"; \
233 echo "Test ehrhart_union works correctly"; \
236 for x in $(RANKING) ; do \
237 echo "Verify file $$x" ; \
238 ./ehrhart_rankingcln < $(srcdir)/../Test/ranking/$$x >xyz; \
239 diff -w xyz $(srcdir)/../Test/ranking/`basename $$x .in`.out ; \
241 if [ "$$result" -eq "1" ]; then \
242 echo "Error: $$x is not the same"; \
243 failedtest=`expr $$failedtest + 1`; \
248 if [ $$failedtest != 0 ]; then \
249 echo "$$failedtest tests failed"; \
251 echo "Test ehrhart_ranking works correctly"; \
254 for x in $(GENERAL) ; do \
255 echo "Verify file $$x"; \
256 ./polytest < $(srcdir)/../Test/general/$$x > xyz;\
257 diff -w xyz $(srcdir)/../Test/general/`basename $$x .in`.out ; \
259 if [ "$$result" -eq "1" ]; then \
260 echo "Error: $$x is not the same"; \
261 failedtest=`expr $$failedtest + 1`; \
266 if [ $$failedtest != 0 ]; then \
267 echo "$$failedtest tests failed"; \
269 echo "Test polytest works correctly"; \
272 for x in $(PP) ; do \
273 echo "Verify file $$x"; \
274 ./ppcln < $(srcdir)/../Test/pp/$$x > xyz;\
275 diff -w xyz $(srcdir)/../Test/pp/`basename $$x .in`.out ; \
277 if [ "$$result" -eq "1" ]; then \
278 echo "Error: $$x is not the same"; \
279 failedtest=`expr $$failedtest + 1`; \
284 if [ $$failedtest != 0 ]; then \
285 echo "$$failedtest tests failed"; \
287 echo "Test pp works correctly"; \
291 @for x in $(EHRHART) ; do \
292 echo "Verify Ehrhart for $$x"; \
293 ./verif_ehrhart < $(srcdir)/../Test/ehrhart/$$x ;\