Commit | Line | Data |
---|---|---|
d9898ee8 | 1 | # |
8d138742 | 2 | # Copyright 1998 - 2009 Double Precision, Inc. See COPYING for |
d9898ee8 | 3 | # distribution information. |
4 | ||
d9898ee8 | 5 | |
6 | noinst_LTLIBRARIES=libencode.la librfc822.la | |
7 | ||
8 | librfc822_la_SOURCES=rfc822.c rfc822.h rfc822hdr.c rfc822hdr.h \ | |
9 | rfc822_getaddr.c rfc822_getaddrs.c \ | |
10 | rfc822_mkdate.c rfc822_parsedt.c rfc2047u.c \ | |
11 | rfc2047.c rfc2047.h imapsubj.c imaprefs.h imaprefs.c \ | |
12 | encodeautodetect.c | |
8d138742 CE |
13 | librfc822_la_LIBADD = $(LIBIDN_LIBS) |
14 | ||
b0322a85 CE |
15 | DISTCLEANFILES=rfc822.config |
16 | ||
8d138742 | 17 | AM_CFLAGS = $(LIBIDN_CFLAGS) |
d9898ee8 | 18 | |
19 | libencode_la_SOURCES=encode.c encode.h | |
20 | ||
21 | BUILT_SOURCES=rfc822.3 rfc822.html | |
22 | noinst_DATA=$(BUILT_SOURCES) | |
23 | ||
24 | noinst_PROGRAMS=testsuite reftest | |
25 | testsuite_SOURCES=testsuite.c | |
b0322a85 CE |
26 | testsuite_DEPENDENCIES=librfc822.la ../unicode/libunicode.la |
27 | testsuite_LDADD=librfc822.la ../unicode/libunicode.la | |
d9898ee8 | 28 | testsuite_LDFLAGS=-static |
29 | ||
30 | reftest_SOURCES=reftest.c imaprefs.h | |
8d138742 CE |
31 | reftest_DEPENDENCIES=librfc822.la ../unicode/libunicode.la |
32 | reftest_LDADD=librfc822.la ../unicode/libunicode.la | |
d9898ee8 | 33 | reftest_LDFLAGS=-static |
34 | ||
35 | EXTRA_DIST=testsuite.txt reftest.txt $(BUILT_SOURCES) | |
36 | ||
37 | if HAVE_SGML | |
38 | rfc822.html: rfc822.sgml ../docbook/sgml2html | |
39 | ../docbook/sgml2html rfc822.sgml rfc822.html | |
40 | ||
41 | rfc822.3: rfc822.sgml ../docbook/sgml2html | |
42 | ../docbook/sgml2man rfc822.sgml rfc822.3 | |
43 | endif | |
44 | ||
45 | check-am: | |
46 | ./testsuite | cmp -s - $(srcdir)/testsuite.txt | |
47 | ./reftest | cmp -s - $(srcdir)/reftest.txt |