Makefile revision 1.30
11.30Stls#	$NetBSD: Makefile,v 1.30 2007/05/28 12:06:28 tls 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.25SchristosUSE_EDITLINE=yes
91.25SchristosMIME_SUPPORT=yes	# currently requires USE_EDITLINE
101.28SchristosCHARSET_SUPPORT=yes	# requires MIME_SUPPORT
111.28SchristosTHREAD_SUPPORT=yes	# EXPERIMENTAL
121.15Slukem
131.1ScgdPROG=	mail
141.28SchristosSRCS=	version.c support.c cmd1.c cmd2.c cmd3.c cmd4.c cmdtab.c collect.c \
151.28Schristos	dotlock.c edit.c fio.c format.c getname.c head.c v7.local.c lex.c \
161.28Schristos	list.c main.c names.c popen.c quit.c send.c strings.c temp.c tty.c \
171.28Schristos	vars.c
181.3SjtcLINKS=	${BINDIR}/mail ${BINDIR}/Mail ${BINDIR}/mail ${BINDIR}/mailx
191.3SjtcMLINKS=	mail.1 Mail.1 mail.1 mailx.1
201.20Swiz
211.25SchristosLDADD+=		-lutil
221.25SchristosDPADD+=		${LIBUTIL}
231.25Schristos
241.26Schristos.if ${USE_EDITLINE:Uno} == "yes"
251.23SchristosSRCS+=	complete.c
261.23Schristos
271.25SchristosCPPFLAGS+=	-DUSE_EDITLINE
281.24SheLDADD+=		-ledit -ltermcap
291.24SheDPADD+=		${LIBEDIT} ${LIBTERMCAP}
301.23Schristos
311.26Schristos.if ${MIME_SUPPORT:Uno} == "yes"
321.25SchristosSRCS+=	mime_attach.c
331.25SchristosSRCS+=	mime_child.c
341.25SchristosSRCS+=	mime_codecs.c
351.25SchristosSRCS+=	mime_decode.c
361.28SchristosSRCS+=	mime_detach.c
371.25SchristosSRCS+=	mime_header.c
381.25Schristos
391.25SchristosCPPFLAGS+=	-DMIME_SUPPORT
401.26Schristos.if ${CHARSET_SUPPORT:Uno} == "yes"
411.25SchristosCPPFLAGS+=	-DCHARSET_SUPPORT
421.25Schristos.endif
431.25Schristos
441.25SchristosLDADD+=		-lmagic -lz
451.25SchristosDPADD+=		${LIBMAGIC} ${LIBZ}
461.25Schristos.endif
471.23Schristos.endif
481.23Schristos
491.28Schristos.if ${THREAD_SUPPORT:Uno} == "yes"
501.28SchristosSRCS+=	thread.c
511.28SchristosCPPFLAGS+=	-DTHREAD_SUPPORT
521.28Schristos.endif
531.28Schristos
541.23SchristosWARNS=	4
551.25SchristosCWARNFLAGS+=	-Wextra
561.3Sjtc
571.21Slukem.PATH: ${.CURDIR}/misc
581.21Slukem
591.15Slukem.if ${MKSHARE} != "no"
601.21SlukemFILESDIR=		/usr/share/misc
611.21SlukemFILES=			mail.help mail.tildehelp
621.5Smycroft
631.5Smycroft.if make(install)
641.5SmycroftSUBDIR+= USD.doc
651.14Slukem.endif
661.5Smycroft.endif
671.11Sperry
681.21SlukemCONFIGFILES=		mail.rc
691.21SlukemFILESDIR_mail.rc=	/etc
701.1Scgd
711.1Scgd.include <bsd.prog.mk>
721.13Smycroft.include <bsd.subdir.mk>
73