1 TESTS = test_wmbiff test_tlscomm
2 noinst_PROGRAMS = test_wmbiff test_tlscomm
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 \
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 \
21 wmbiff-classic-master-led.xpm wmbiff-classic-master-contrast.xpm
23 EXTRA_DIST = $(man_MANS) sample.wmbiffrc wmbiff-master-led.xpm \
24 wmbiff-classic-master-led.xpm
26 MAINTAINERCLEANFILES = Makefile.in
28 # CODING STYLE AND INDENTATION [2001-Mar-12]:
30 # There have been some problems with coding style in the past. Many people
31 # contributed to wmbiff (thank you!), and the code got really messy. To help
32 # resolve this, I used GNU indent with what I believe to be the most
33 # widely-accepted coding style options (K&R style) with 4-space TAB indents
34 # (because some of the code is highly nested) to clean up the code. Not
35 # everyone may be happy with this, but has been determined to be necessary for
36 # consistency and legibility.
38 # In other words, make sure you run "make clean" and "make indent", and do not
39 # change the options on the indent command, before you submit patches against
40 # wmbiff. This will make everyone's life easier.
42 # -- Dwayne C. Litzenberger <dlitz@dlitz.net>
44 indent -npro -kr -i4 -ts4 $(wmbiff_SOURCES) test_*.c || true
46 # to perform surgery on a few changed files.
48 indent -npro -kr -i4 -ts4 $< || true
50 dist-hook-local: indent config-h-check
53 -rm -f wmbiff-master-contrast.xpm wmbiff-master.xpm \
54 wmbiff-classic-master-contrast.xpm
56 # remove colors, then substitute old colors, then repalletize
57 # for some reason $< doesn't always work.
58 wmbiff-master-contrast.xpm: wmbiff-master-led.xpm Makefile
59 egrep -v '^"[:%][[:space:]]c #' < wmbiff-master-led.xpm | \
60 sed -e 's/:/./g' -e 's/%/$$/g' -e 's/ 15 / 13 /' | \
61 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/'\
64 wmbiff-classic-master-contrast.xpm: wmbiff-classic-master-led.xpm Makefile
65 egrep -v '^"[:%][[:space:]]c #' < wmbiff-classic-master-led.xpm | \
66 sed -e 's/:/./g' -e 's/%/$$/g' -e 's/ 15 / 13 /' | \
67 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/'\
70 # fail if there's a .c file that doesn't include config.h
72 ls *.c | sort > cfiles
73 grep -l config.h *.c | sort | diff - cfiles
76 # just a reminder of how to run valgrind to get decent output.
78 valgrind --leak-check=yes ./wmbiff -exit