| 1 | # $Id: Makefile.am,v 1.20 2007/06/30 15:40:53 mrsam Exp $ |
| 2 | # |
| 3 | # Copyright 1998 - 2005 Double Precision, Inc. See COPYING for |
| 4 | # distribution information. |
| 5 | |
| 6 | |
| 7 | noinst_LTLIBRARIES=libencode.la librfc822.la |
| 8 | |
| 9 | librfc822_la_SOURCES=rfc822.c rfc822.h rfc822hdr.c rfc822hdr.h \ |
| 10 | rfc822_getaddr.c rfc822_getaddrs.c \ |
| 11 | rfc822_mkdate.c rfc822_parsedt.c rfc2047u.c \ |
| 12 | rfc2047.c rfc2047.h imapsubj.c imaprefs.h imaprefs.c \ |
| 13 | encodeautodetect.c |
| 14 | |
| 15 | libencode_la_SOURCES=encode.c encode.h |
| 16 | |
| 17 | BUILT_SOURCES=rfc822.3 rfc822.html |
| 18 | noinst_DATA=$(BUILT_SOURCES) |
| 19 | |
| 20 | noinst_PROGRAMS=testsuite reftest |
| 21 | testsuite_SOURCES=testsuite.c |
| 22 | testsuite_DEPENDENCIES=librfc822.la |
| 23 | testsuite_LDADD=librfc822.la |
| 24 | testsuite_LDFLAGS=-static |
| 25 | |
| 26 | reftest_SOURCES=reftest.c imaprefs.h |
| 27 | reftest_DEPENDENCIES=librfc822.la |
| 28 | reftest_LDADD=librfc822.la |
| 29 | reftest_LDFLAGS=-static |
| 30 | |
| 31 | EXTRA_DIST=testsuite.txt reftest.txt $(BUILT_SOURCES) |
| 32 | |
| 33 | if HAVE_SGML |
| 34 | rfc822.html: rfc822.sgml ../docbook/sgml2html |
| 35 | ../docbook/sgml2html rfc822.sgml rfc822.html |
| 36 | |
| 37 | rfc822.3: rfc822.sgml ../docbook/sgml2html |
| 38 | ../docbook/sgml2man rfc822.sgml rfc822.3 |
| 39 | endif |
| 40 | |
| 41 | check-am: |
| 42 | ./testsuite | cmp -s - $(srcdir)/testsuite.txt |
| 43 | ./reftest | cmp -s - $(srcdir)/reftest.txt |