Home | History | Annotate | Line # | Download | only in mail
Makefile revision 1.26
      1 #	$NetBSD: Makefile,v 1.26 2006/10/21 21:51:47 christos Exp $
      2 #	@(#)Makefile	8.3 (Berkeley) 4/20/95
      3 
      4 .include <bsd.own.mk>
      5 
      6 USE_EDITLINE=yes
      7 MIME_SUPPORT=yes	# currently requires USE_EDITLINE
      8 CHARSET_SUPPORT=yes	# only used with MIME_SUPPORT
      9 
     10 PROG=	mail
     11 SRCS=	version.c support.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c dotlock.c \
     12 	edit.c fio.c getname.c head.c v7.local.c lex.c list.c main.c names.c \
     13 	popen.c quit.c send.c strings.c temp.c tty.c vars.c
     14 LINKS=	${BINDIR}/mail ${BINDIR}/Mail ${BINDIR}/mail ${BINDIR}/mailx
     15 MLINKS=	mail.1 Mail.1 mail.1 mailx.1
     16 
     17 LDADD+=		-lutil
     18 DPADD+=		${LIBUTIL}
     19 
     20 .if ${USE_EDITLINE:Uno} == "yes"
     21 SRCS+=	complete.c
     22 
     23 CPPFLAGS+=	-DUSE_EDITLINE
     24 LDADD+=		-ledit -ltermcap
     25 DPADD+=		${LIBEDIT} ${LIBTERMCAP}
     26 
     27 .if ${MIME_SUPPORT:Uno} == "yes"
     28 SRCS+=	mime_attach.c
     29 SRCS+=	mime_child.c
     30 SRCS+=	mime_codecs.c
     31 SRCS+=	mime_decode.c
     32 SRCS+=	mime_header.c
     33 
     34 CPPFLAGS+=	-DMIME_SUPPORT
     35 .if ${CHARSET_SUPPORT:Uno} == "yes"
     36 CPPFLAGS+=	-DCHARSET_SUPPORT
     37 .endif
     38 
     39 LDADD+=		-lmagic -lz
     40 DPADD+=		${LIBMAGIC} ${LIBZ}
     41 .endif
     42 .endif
     43 
     44 WARNS=	4
     45 CWARNFLAGS+=	-Wextra
     46 
     47 .PATH: ${.CURDIR}/misc
     48 
     49 .if ${MKSHARE} != "no"
     50 FILESDIR=		/usr/share/misc
     51 FILES=			mail.help mail.tildehelp
     52 
     53 .if make(install)
     54 SUBDIR+= USD.doc
     55 .endif
     56 .endif
     57 
     58 CONFIGFILES=		mail.rc
     59 FILESDIR_mail.rc=	/etc
     60 
     61 .include <bsd.prog.mk>
     62 .include <bsd.subdir.mk>
     63