1AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/libxslt -I$(top_srcdir)/libexslt \ 2 -I$(top_builddir) -I$(top_builddir)/libxslt \ 3 -I$(top_builddir)/libexslt 4 5EXTRA_PROGRAMS= 6bin_PROGRAMS = xsltproc $(XSLTPROCDV) 7 8noinst_PROGRAMS=testThreads 9 10AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(LIBXML_CFLAGS) 11 12xsltproc_SOURCES = xsltproc.c 13xsltproc_LDFLAGS = 14xsltproc_DEPENDENCIES = $(DEPS) 15 16testThreads_SOURCES=testThreads.c 17testThreads_LDFLAGS = 18testThreads_DEPENDENCIES = $(DEPS) 19testThreads_LDADD= $(THREAD_LIBS) $(LDADDS) 20 21DEPS = $(top_builddir)/libxslt/libxslt.la \ 22 $(top_builddir)/libexslt/libexslt.la 23 24LDADDS = $(top_builddir)/libxslt/libxslt.la \ 25 $(top_builddir)/libexslt/libexslt.la \ 26 $(LIBXML_LIBS) $(EXTRA_LIBS) $(WIN32_EXTRA_LIBADD) 27 28xsltproc_LDADD = $(LIBGCRYPT_LIBS) $(LDADDS) 29 30CLEANFILES = .memdump 31 32$(top_builddir)/libxslt/libxslt.la: 33 cd $(top_builddir)/libxslt && $(MAKE) libxslt.la 34 35$(top_builddir)/libexslt/libexslt.la: $(top_builddir)/libxslt/libxslt.la 36 cd $(top_builddir)/libexslt && $(MAKE) libexslt.la 37 38xsltproc.dv: xsltproc.o 39 $(CC) $(CFLAGS) -o xsltproc xsltproc.o ../libexslt/.libs/libexslt.a ../libxslt/.libs/libxslt.a $(LIBXML_LIBS) $(EXTRA_LIBS) $(LIBGCRYPT_LIBS) 40 41tests: testThreads 42 @echo > .memdump 43 @echo '## Running testThreads' 44 @($(CHECKER) ./testThreads ; grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true) 45