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