Makefile revision 1.31
11.31Schristos#	$NetBSD: Makefile,v 1.31 2009/04/10 13:08:24 christos Exp $
21.10Stls#	@(#)Makefile	8.3 (Berkeley) 4/20/95
31.1Scgd
41.15Slukem.include <bsd.own.mk>
51.25Schristos
61.30StlsUSE_FORT?= yes	# data-driven bugs?
71.30Stls
81.31SchristosUSE_EDITLINE?=yes
91.31SchristosMIME_SUPPORT?=yes	# currently requires USE_EDITLINE
101.31SchristosCHARSET_SUPPORT?=yes	# requires MIME_SUPPORT
111.31SchristosTHREAD_SUPPORT?=yes	# EXPERIMENTAL
121.31Schristos
131.31Schristos# Work around some problems in -current.
141.31Schristos# See the source code for more info.
151.31Schristos#
161.31SchristosCPPFLAGS+=	-DBROKEN_EXEC_TTY_RESTORE	# broken since 4.99.10
171.31SchristosCPPFLAGS+=	-DBROKEN_CLONE_STAT		# see PRs 37878 and 37550
181.31Schristos
191.31Schristos# Debugging options (most should go away - please leave for now).
201.31Schristos#
211.31Schristos#CPPFLAGS+=	-DDEBUG_FILE_LEAK
221.15Slukem
231.1ScgdPROG=	mail
241.28SchristosSRCS=	version.c support.c cmd1.c cmd2.c cmd3.c cmd4.c cmdtab.c collect.c \
251.28Schristos	dotlock.c edit.c fio.c format.c getname.c head.c v7.local.c lex.c \
261.31Schristos	list.c main.c names.c popen.c quit.c send.c sig.c strings.c temp.c \
271.31Schristos	tty.c vars.c
281.3SjtcLINKS=	${BINDIR}/mail ${BINDIR}/Mail ${BINDIR}/mail ${BINDIR}/mailx
291.3SjtcMLINKS=	mail.1 Mail.1 mail.1 mailx.1
301.20Swiz
311.25SchristosLDADD+=		-lutil
321.25SchristosDPADD+=		${LIBUTIL}
331.25Schristos
341.26Schristos.if ${USE_EDITLINE:Uno} == "yes"
351.23SchristosSRCS+=	complete.c
361.23Schristos
371.25SchristosCPPFLAGS+=	-DUSE_EDITLINE
381.24SheLDADD+=		-ledit -ltermcap
391.24SheDPADD+=		${LIBEDIT} ${LIBTERMCAP}
401.23Schristos
411.26Schristos.if ${MIME_SUPPORT:Uno} == "yes"
421.25SchristosSRCS+=	mime_attach.c
431.25SchristosSRCS+=	mime_child.c
441.25SchristosSRCS+=	mime_codecs.c
451.25SchristosSRCS+=	mime_decode.c
461.28SchristosSRCS+=	mime_detach.c
471.25SchristosSRCS+=	mime_header.c
481.25Schristos
491.25SchristosCPPFLAGS+=	-DMIME_SUPPORT
501.26Schristos.if ${CHARSET_SUPPORT:Uno} == "yes"
511.25SchristosCPPFLAGS+=	-DCHARSET_SUPPORT
521.25Schristos.endif
531.25Schristos
541.25SchristosLDADD+=		-lmagic -lz
551.25SchristosDPADD+=		${LIBMAGIC} ${LIBZ}
561.25Schristos.endif
571.23Schristos.endif
581.23Schristos
591.28Schristos.if ${THREAD_SUPPORT:Uno} == "yes"
601.28SchristosSRCS+=	thread.c
611.28SchristosCPPFLAGS+=	-DTHREAD_SUPPORT
621.28Schristos.endif
631.28Schristos
641.23SchristosWARNS=	4
651.25SchristosCWARNFLAGS+=	-Wextra
661.3Sjtc
671.21Slukem.PATH: ${.CURDIR}/misc
681.21Slukem
691.15Slukem.if ${MKSHARE} != "no"
701.21SlukemFILESDIR=		/usr/share/misc
711.21SlukemFILES=			mail.help mail.tildehelp
721.5Smycroft
731.5Smycroft.if make(install)
741.5SmycroftSUBDIR+= USD.doc
751.14Slukem.endif
761.5Smycroft.endif
771.11Sperry
781.21SlukemCONFIGFILES=		mail.rc
791.21SlukemFILESDIR_mail.rc=	/etc
801.1Scgd
811.1Scgd.include <bsd.prog.mk>
821.13Smycroft.include <bsd.subdir.mk>
83