1# Makefile.am - Top level automakefile for libspiro 2 3SUBDIRS = . 4 5test_programs = call-test0 call-test1 call-test2 call-test3 call-test4 \ 6 call-test5 call-test6 call-test7 call-test8 call-test9 \ 7 call-test10 call-test11 call-test12 call-test13 \ 8 call-test14 call-test15 call-test16 call-test17 \ 9 call-test18 call-test19 call-test20 call-testm 10 11pkgconfigdir = $(prefix)/libdata/pkgconfig 12pkgconfig_DATA = libspiro.pc 13 14ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} 15 16AM_CFLAGS = $(WCFLAGS) $(LS_CFLAGS) 17AM_LDFLAGS = $(WLSLIB) $(LS_LIB) -no-undefined --mode=link 18 19LIBTOOL_DEPS = @LIBTOOL_DEPS@ 20 21DISTCLEANFILES = libspiro.pc 22DISTCHECK_CONFIGURE_FLAGS = --enable-verbose_lib --disable-test_inputs --disable-test-a-lot 23 24lib_LTLIBRARIES = libspiro.la 25 26libspiro_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBSPIRO_VERSION) 27libspiro_la_SOURCES = spiro.c bezctx.c spiroentrypoints.c 28libspiro_la.$(OBJEXT): bezctx.h bezctx_intf.h spiro.h spiroentrypoints.h 29 30EXTRA_DIST = bezctx.md get-spiro-src.sh README-RaphLevien README.md \ 31 closedspiro.png openspiro.png spiral16.png spiral32.png spiro-a.png \ 32 java/ShowPlate.java java/Spiro.java java/SpiroBezierContext.java \ 33 java/SpiroCanvas.java java/SpiroCP.java java/SpiroGeneralPath.java \ 34 java/SpiroPointType.java README-GeorgeWilliams fontforge-debug.txt \ 35 fontforge.sh m4/ax_check_compile_flag.m4 path5.png path6.png libspiro.3 36 37include_HEADERS = bezctx.h bezctx_intf.h spiro.h spiroentrypoints.h 38man_MANS = libspiro.3 39 40libtool: $(LIBTOOL_DEPS) 41 $(SHELL) ./config.status libtool 42 43check-valgrind: 44if HAVEVALGRIND 45 $(MAKE); 46 $(VALGRIND) --error-exitcode=1 $(builddir)/tests/unit-test 47 (for arg in $(test_programs); do \ 48 $(LIBTOOL) --mode=execute $(VALGRIND) --error-exitcode=1 $(builddir)/tests/$$(arg) ; \ 49 done) 50else 51 echo "install Valgrind, then run ./configure again" 52endif 53 54