avoid gccism
[barvinok.git] / Makefile.am
blob6a8c8d554e6c4bc2f41a4615aabb7b8d7b4de4d7
1 lib_LTLIBRARIES = libbarvinok.la
2 noinst_PROGRAMS = test barvinok_count randomtest barvinok_enumerate \
3                   verif_ehrhart barvinok_enumerate_e verif_ehrhart_e \
4                   @bv_extra_programs@
5 EXTRA_PROGRAMS = piptest
6 pkginclude_HEADERS = barvinok.h util.h ev_operations.h
7 LINK = $(CXXLINK)
9 libbarvinok_la_SOURCES = \
10     ev_operations.c \
11     ev_operations.h \
12     util.c \
13     util.h \
14     barvinok.cc \
15     barvinok.h
16 EXTRA_libbarvinok_la_SOURCES = \
17     piputil.h
18 libbarvinok_la_LIBADD = @LTLIBOBJS@
19 libbarvinok_la_LDFLAGS = -version-info @versioninfo@
20 LDADD = libbarvinok.la
22 test_SOURCES = test.c
23 barvinok_count_SOURCES = barvinok_count.c
25 TESTFILES = $(shell find $(top_srcdir)/tests -type f ! -path '*CVS*')
27 EXTRA_DIST = ChangeLog $(TESTFILES)
29 check:
30         @for i in $(top_srcdir)/tests/*; do \
31             if test -f $$i; then \
32                 echo -n $$i; \
33                 ./test < $$i || echo -n " NOT"; \
34                 echo " ok"; \
35             fi \
36         done
37         @for i in $(top_srcdir)/tests/ehrhart/*; do \
38             if test -f $$i; then \
39                 echo $$i; \
40                 ./verif_ehrhart < $$i; \
41             fi \
42         done