1 # $NetBSD: Makefile,v 1.32 2009/04/11 14:22:32 christos Exp $
2 # @(#)Makefile 8.3 (Berkeley) 4/20/95
6 USE_FORT?
= yes
# data-driven bugs?
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
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 \
29 LINKS
= ${BINDIR}/mail
${BINDIR}/Mail
${BINDIR}/mail
${BINDIR}/mailx
30 MLINKS
= mail
.1 Mail
.1 mail
.1 mailx
.1
35 .if
${USE_EDITLINE
:Uno
} == "yes"
38 CPPFLAGS
+= -DUSE_EDITLINE
39 LDADD
+= -ledit
-ltermcap
40 DPADD
+= ${LIBEDIT} ${LIBTERMCAP}
42 .if
${MIME_SUPPORT
:Uno
} == "yes"
50 CPPFLAGS
+= -DMIME_SUPPORT
51 .if
${CHARSET_SUPPORT
:Uno
} == "yes"
52 CPPFLAGS
+= -DCHARSET_SUPPORT
56 DPADD
+= ${LIBMAGIC} ${LIBZ}
60 .if
${THREAD_SUPPORT
:Uno
} == "yes"
62 CPPFLAGS
+= -DTHREAD_SUPPORT
67 .PATH
: ${.CURDIR
}/misc
69 .if
${MKSHARE} != "no"
70 FILESDIR
= /usr
/share
/misc
71 FILES
= mail.help mail.tildehelp
79 FILESDIR_mail.rc
= /etc
81 .
include <bsd.prog.mk
>
82 .
include <bsd.subdir.mk
>