1 ## Process this file with automake to produce Makefile.in
6 INCLUDES = -DPKGDATADIR=\"$(pkgdatadir)\" -I $(srcdir)/../include
9 noinst_PROGRAMS = testgedcom pathtest gomtest @EXTRA_PROGS@
10 EXTRA_PROGRAMS = gomtest_static
12 testgedcom_SOURCES = standalone.c utf8-locale.c
13 noinst_HEADERS = utf8-locale.h
14 testgedcom_LDFLAGS = -L ../gedcom/.libs -lgedcom
15 testgedcom_LDADD = @INTLLIBS@
17 pathtest_SOURCES = pathtest.c
18 pathtest_LDFLAGS = -L ../gedcom/.libs -lgedcom
20 gomtest_SOURCES = gomtest.c
21 gomtest_LDFLAGS = -L ../gedcom/.libs -L ../gom/.libs -lgedcom_gom -lgedcom
23 gomtest_static_SOURCES = gomtest.c
24 gomtest_static_LDADD = ../gedcom/.libs/libgedcom.a ../gom/.libs/libgedcom_gom.a
25 DMALLOC_LOG = dmalloc.log
27 TEST_SCRIPT=test_script test_gom
28 TESTS := $(wildcard $(srcdir)/*.test)
30 EXTRA_DIST=$(TEST_SCRIPT) $(TESTS)
33 @rm -f testgedcom.out $(DMALLOC_LOG)
35 check-% : %.test all-local
36 @srcdir=$(srcdir); export srcdir; \
37 if $(TESTS_ENVIRONMENT) ./$<; then \
38 echo "Test succeeded"; \
43 check-dmalloc-%: %.test all-local
44 @if [ "@EXTRA_PROGS@" = "" ]; then \
45 echo "Please run './configure --with-dmalloc' first"; \
48 srcdir=$(srcdir); export srcdir; \
49 GOM_DMALLOC_TEST=$(DMALLOC_LOG); export GOM_DMALLOC_TEST; \
50 if $(TESTS_ENVIRONMENT) ./$<; then \
51 echo "Test succeeded"; \