| 1 | # $Id: Makefile.am,v 1.11 2005/06/19 14:57:07 mrsam Exp $ |
| 2 | # |
| 3 | # Copyright 1998 - 2005 Double Precision, Inc. See COPYING for |
| 4 | # distribution information. |
| 5 | |
| 6 | AUTOMAKE = srcdir=${srcdir} @SHELL@ ${srcdir}/../automake.fix @AUTOMAKE@ |
| 7 | |
| 8 | LIBGDBMSOURCES=gdbmobj.h gdbmobj.c gdbmobj2.c gdbmobj3.c |
| 9 | TESTGDBMSOURCES=testgdbm.C |
| 10 | |
| 11 | CLEANFILES=testgdbm.dat |
| 12 | |
| 13 | if FOUND_GDBM |
| 14 | noinst_LTLIBRARIES=libgdbmobj.la |
| 15 | noinst_PROGRAMS=testgdbm |
| 16 | |
| 17 | libgdbmobj_la_SOURCES=$(LIBGDBMSOURCES) |
| 18 | |
| 19 | testgdbm_SOURCES=$(TESTGDBMSOURCES) |
| 20 | |
| 21 | testgdbm_DEPENDENCIES=libgdbmobj.la |
| 22 | testgdbm_LDADD=libgdbmobj.la @LIBGDBM@ |
| 23 | testgdbm_LDFLAGS=-static |
| 24 | |
| 25 | check-am: |
| 26 | $(srcdir)/testsuite | cmp -s - $(srcdir)/testsuite.txt |
| 27 | |
| 28 | else |
| 29 | noinst_SCRIPTS=notfound |
| 30 | |
| 31 | notfound: |
| 32 | @exit 0 |
| 33 | |
| 34 | endif |
| 35 | |
| 36 | EXTRA_DIST=$(LIBGDBMSOURCES) $(TESTGDBMSOURCES) testsuite testsuite.txt |