Update gnutls code (require at least 2.2.0).
[dockapps.git] / wmbiff / wmbiff / Makefile.am
blob56ec91c9b4dd67341d94ce3ec2d3267e66f0fe2a
1 TESTS = test_wmbiff test_tlscomm
2 noinst_PROGRAMS = test_wmbiff test_tlscomm
3 bin_PROGRAMS = wmbiff
4 wmbiff_SOURCES = wmbiff.c socket.c Pop3Client.c mboxClient.c \
5         maildirClient.c Imap4Client.c tlsComm.c tlsComm.h ShellClient.c  \
6         passwordMgr.c passwordMgr.h charutil.c charutil.h Client.h  \
7         regulo.c regulo.h  MessageList.c MessageList.h
8 EXTRA_wmbiff_SOURCES = gnutls-common.c gnutls-common.h  
9 wmbiff_LDADD = -L../wmgeneral -lwmgeneral @LIBGCRYPT_LIBS@ @GNUTLS_COMMON_O@
10 wmbiff_DEPENDENCIES = ../wmgeneral/libwmgeneral.a Makefile @GNUTLS_COMMON_O@
11 test_wmbiff_SOURCES = ShellClient.c charutil.c charutil.h Client.h \
12         test_wmbiff.c passwordMgr.c Imap4Client.c regulo.c Pop3Client.c \
13         tlsComm.c tlsComm.h socket.c 
14 test_tlscomm_SOURCES = test_tlscomm.c \
15         tlsComm.c tlsComm.h 
16 EXTRA_test_wmbiff_SOURCES = gnutls-common.c gnutls-common.h     
17 test_wmbiff_LDADD = @LIBGCRYPT_LIBS@ 
18 man_MANS = wmbiff.1 wmbiffrc.5
19 skindir = $(datadir)/wmbiff/skins
20 skin_DATA = wmbiff-master-led.xpm wmbiff-master-contrast.xpm 
22 EXTRA_DIST = $(man_MANS) sample.wmbiffrc wmbiff-master-led.xpm 
24 MAINTAINERCLEANFILES = Makefile.in
26 # CODING STYLE AND INDENTATION [2001-Mar-12]:
28 # There have been some problems with coding style in the past.  Many people
29 # contributed to wmbiff (thank you!), and the code got really messy.  To help
30 # resolve this, I used GNU indent with what I believe to be the most
31 # widely-accepted coding style options (K&R style) with 4-space TAB indents
32 # (because some of the code is highly nested) to clean up the code.  Not
33 # everyone may be happy with this, but has been determined to be necessary for
34 # consistency and legibility.
36 # In other words, make sure you run "make clean" and "make indent", and do not
37 # change the options on the indent command, before you submit patches against
38 # wmbiff.  This will make everyone's life easier.
40 #       -- Dwayne C. Litzenberger <dlitz@dlitz.net>
41 indent:
42         indent -npro -kr -i4 -ts4 $(wmbiff_SOURCES) test_*.c || true
44 # to perform surgery on a few changed files.
45 .c.indent:
46         indent -npro -kr -i4 -ts4 $< || true
48 dist-hook-local: indent config-h-check
50 distclean-local:
51         -rm -f wmbiff-master-contrast.xpm wmbiff-master.xpm
53 # remove colors, then substitute old colors, then repalletize
54 # for some reason $< doesn't always work. 
55 wmbiff-master-contrast.xpm:  wmbiff-master-led.xpm Makefile
56         egrep -v '^"[:%][[:space:]]c #' < wmbiff-master-led.xpm | \
57         sed -e 's/:/./g' -e 's/%/$$/g' -e 's/ 15 / 13 /' | \
58         sed -e 's/#\([0-9A-F]\{2\}\)[0-9A-F]\{2\}\([0-9A-F]\{2\}\)[0-9A-F]\{2\}\([0-9A-F]\{2\}\)[0-9A-F]\{2\}/#\1\2\3/'\
59         > $@ || rm $@
61 # fail if there's a .c file that doesn't include config.h
62 config-h-check:
63         ls *.c | sort > cfiles
64         grep -l config.h *.c | sort | diff - cfiles
65         rm cfiles
67 # just a reminder of how to run valgrind to get decent output.
68 valgrind:
69         valgrind --leak-check=yes ./wmbiff -exit