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