Makefile revision 1.25
11.25Schristos#	$NetBSD: Makefile,v 1.25 2006/10/21 21:37:20 christos Exp $
21.10Stls#	@(#)Makefile	8.3 (Berkeley) 4/20/95
31.1Scgd
41.15Slukem.include <bsd.own.mk>
51.25Schristos
61.25SchristosUSE_EDITLINE=yes
71.25SchristosMIME_SUPPORT=yes	# currently requires USE_EDITLINE
81.25SchristosCHARSET_SUPPORT=yes	# only used with MIME_SUPPORT
91.15Slukem
101.1ScgdPROG=	mail
111.18StvSRCS=	version.c support.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c dotlock.c \
121.8Schristos	edit.c fio.c getname.c head.c v7.local.c lex.c list.c main.c names.c \
131.8Schristos	popen.c quit.c send.c strings.c temp.c tty.c vars.c
141.3SjtcLINKS=	${BINDIR}/mail ${BINDIR}/Mail ${BINDIR}/mail ${BINDIR}/mailx
151.3SjtcMLINKS=	mail.1 Mail.1 mail.1 mailx.1
161.20Swiz
171.25SchristosLDADD+=		-lutil
181.25SchristosDPADD+=		${LIBUTIL}
191.25Schristos
201.25Schristos.if defined(USE_EDITLINE)
211.23SchristosSRCS+=	complete.c
221.23Schristos
231.25SchristosCPPFLAGS+=	-DUSE_EDITLINE
241.24SheLDADD+=		-ledit -ltermcap
251.24SheDPADD+=		${LIBEDIT} ${LIBTERMCAP}
261.23Schristos
271.25Schristos.if defined(MIME_SUPPORT)
281.25SchristosSRCS+=	mime_attach.c
291.25SchristosSRCS+=	mime_child.c
301.25SchristosSRCS+=	mime_codecs.c
311.25SchristosSRCS+=	mime_decode.c
321.25SchristosSRCS+=	mime_header.c
331.25Schristos
341.25SchristosCPPFLAGS+=	-DMIME_SUPPORT
351.25Schristos.if defined(CHARSET_SUPPORT)
361.25SchristosCPPFLAGS+=	-DCHARSET_SUPPORT
371.25Schristos.endif
381.25Schristos
391.25SchristosLDADD+=		-lmagic -lz
401.25SchristosDPADD+=		${LIBMAGIC} ${LIBZ}
411.25Schristos.endif
421.23Schristos.endif
431.23Schristos
441.23SchristosWARNS=	4
451.25SchristosCWARNFLAGS+=	-Wextra
461.3Sjtc
471.21Slukem.PATH: ${.CURDIR}/misc
481.21Slukem
491.15Slukem.if ${MKSHARE} != "no"
501.21SlukemFILESDIR=		/usr/share/misc
511.21SlukemFILES=			mail.help mail.tildehelp
521.5Smycroft
531.5Smycroft.if make(install)
541.5SmycroftSUBDIR+= USD.doc
551.14Slukem.endif
561.5Smycroft.endif
571.11Sperry
581.21SlukemCONFIGFILES=		mail.rc
591.21SlukemFILESDIR_mail.rc=	/etc
601.1Scgd
611.1Scgd.include <bsd.prog.mk>
621.13Smycroft.include <bsd.subdir.mk>
63