No empty .Rs/.Re
[netbsd-mini2440.git] / usr.bin / mail / Makefile
blobee90657b71e6b2a22c9946339d9a9642b38f2a26
1 # $NetBSD: Makefile,v 1.32 2009/04/11 14:22:32 christos Exp $
2 # @(#)Makefile 8.3 (Berkeley) 4/20/95
4 .include <bsd.own.mk>
6 USE_FORT?= yes # data-driven bugs?
8 USE_EDITLINE?=yes
9 MIME_SUPPORT?=yes # currently requires USE_EDITLINE
10 CHARSET_SUPPORT?=yes # requires MIME_SUPPORT
11 THREAD_SUPPORT?=yes # EXPERIMENTAL
13 # Work around some problems in -current.
14 # See the source code for more info.
16 CPPFLAGS+= -DBROKEN_EXEC_TTY_RESTORE # broken since 4.99.10
17 CPPFLAGS+= -DBROKEN_CLONE_STAT # see PRs 37878 and 37550
18 CPPFLAGS+= -DBROKEN_MAGIC # bad MIME type on short files
20 # Debugging options (most should go away - please leave for now).
22 #CPPFLAGS+= -DDEBUG_FILE_LEAK
24 PROG= mail
25 SRCS= version.c support.c cmd1.c cmd2.c cmd3.c cmd4.c cmdtab.c collect.c \
26 dotlock.c edit.c fio.c format.c getname.c head.c v7.local.c lex.c \
27 list.c main.c names.c popen.c quit.c send.c sig.c strings.c temp.c \
28 tty.c vars.c
29 LINKS= ${BINDIR}/mail ${BINDIR}/Mail ${BINDIR}/mail ${BINDIR}/mailx
30 MLINKS= mail.1 Mail.1 mail.1 mailx.1
32 LDADD+= -lutil
33 DPADD+= ${LIBUTIL}
35 .if ${USE_EDITLINE:Uno} == "yes"
36 SRCS+= complete.c
38 CPPFLAGS+= -DUSE_EDITLINE
39 LDADD+= -ledit -ltermcap
40 DPADD+= ${LIBEDIT} ${LIBTERMCAP}
42 .if ${MIME_SUPPORT:Uno} == "yes"
43 SRCS+= mime_attach.c
44 SRCS+= mime_child.c
45 SRCS+= mime_codecs.c
46 SRCS+= mime_decode.c
47 SRCS+= mime_detach.c
48 SRCS+= mime_header.c
50 CPPFLAGS+= -DMIME_SUPPORT
51 .if ${CHARSET_SUPPORT:Uno} == "yes"
52 CPPFLAGS+= -DCHARSET_SUPPORT
53 .endif
55 LDADD+= -lmagic -lz
56 DPADD+= ${LIBMAGIC} ${LIBZ}
57 .endif
58 .endif
60 .if ${THREAD_SUPPORT:Uno} == "yes"
61 SRCS+= thread.c
62 CPPFLAGS+= -DTHREAD_SUPPORT
63 .endif
65 CWARNFLAGS+= -Wextra
67 .PATH: ${.CURDIR}/misc
69 .if ${MKSHARE} != "no"
70 FILESDIR= /usr/share/misc
71 FILES= mail.help mail.tildehelp
73 .if make(install)
74 SUBDIR+= USD.doc
75 .endif
76 .endif
78 CONFIGFILES= mail.rc
79 FILESDIR_mail.rc= /etc
81 .include <bsd.prog.mk>
82 .include <bsd.subdir.mk>