Home | History | Annotate | Line # | Download | only in mail
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 
      6 USE_FORT?= yes	# data-driven bugs?
      7 
      8 USE_EDITLINE?=yes
      9 MIME_SUPPORT?=yes	# currently requires USE_EDITLINE
     10 CHARSET_SUPPORT?=yes	# requires MIME_SUPPORT
     11 THREAD_SUPPORT?=yes	# EXPERIMENTAL
     12 
     13 # Work around some problems in -current.
     14 # See the source code for more info.
     15 #
     16 CPPFLAGS+=	-DBROKEN_EXEC_TTY_RESTORE	# broken since 4.99.10
     17 CPPFLAGS+=	-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 
     23 PROG=	mail
     24 SRCS=	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
     28 LINKS=	${BINDIR}/mail ${BINDIR}/Mail ${BINDIR}/mail ${BINDIR}/mailx
     29 MLINKS=	mail.1 Mail.1 mail.1 mailx.1
     30 
     31 LDADD+=		-lutil
     32 DPADD+=		${LIBUTIL}
     33 
     34 .if ${USE_EDITLINE:Uno} == "yes"
     35 SRCS+=	complete.c
     36 
     37 CPPFLAGS+=	-DUSE_EDITLINE
     38 LDADD+=		-ledit -ltermcap
     39 DPADD+=		${LIBEDIT} ${LIBTERMCAP}
     40 
     41 .if ${MIME_SUPPORT:Uno} == "yes"
     42 SRCS+=	mime_attach.c
     43 SRCS+=	mime_child.c
     44 SRCS+=	mime_codecs.c
     45 SRCS+=	mime_decode.c
     46 SRCS+=	mime_detach.c
     47 SRCS+=	mime_header.c
     48 
     49 CPPFLAGS+=	-DMIME_SUPPORT
     50 .if ${CHARSET_SUPPORT:Uno} == "yes"
     51 CPPFLAGS+=	-DCHARSET_SUPPORT
     52 .endif
     53 
     54 LDADD+=		-lmagic -lz
     55 DPADD+=		${LIBMAGIC} ${LIBZ}
     56 .endif
     57 .endif
     58 
     59 .if ${THREAD_SUPPORT:Uno} == "yes"
     60 SRCS+=	thread.c
     61 CPPFLAGS+=	-DTHREAD_SUPPORT
     62 .endif
     63 
     64 WARNS=	4
     65 CWARNFLAGS+=	-Wextra
     66 
     67 .PATH: ${.CURDIR}/misc
     68 
     69 .if ${MKSHARE} != "no"
     70 FILESDIR=		/usr/share/misc
     71 FILES=			mail.help mail.tildehelp
     72 
     73 .if make(install)
     74 SUBDIR+= USD.doc
     75 .endif
     76 .endif
     77 
     78 CONFIGFILES=		mail.rc
     79 FILESDIR_mail.rc=	/etc
     80 
     81 .include <bsd.prog.mk>
     82 .include <bsd.subdir.mk>
     83