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