Home | History | Annotate | Line # | Download | only in mail
Makefile revision 1.31
      1  1.31  christos #	$NetBSD: Makefile,v 1.31 2009/04/10 13:08:24 christos Exp $
      2  1.10       tls #	@(#)Makefile	8.3 (Berkeley) 4/20/95
      3   1.1       cgd 
      4  1.15     lukem .include <bsd.own.mk>
      5  1.25  christos 
      6  1.30       tls USE_FORT?= yes	# data-driven bugs?
      7  1.30       tls 
      8  1.31  christos USE_EDITLINE?=yes
      9  1.31  christos MIME_SUPPORT?=yes	# currently requires USE_EDITLINE
     10  1.31  christos CHARSET_SUPPORT?=yes	# requires MIME_SUPPORT
     11  1.31  christos THREAD_SUPPORT?=yes	# EXPERIMENTAL
     12  1.31  christos 
     13  1.31  christos # Work around some problems in -current.
     14  1.31  christos # See the source code for more info.
     15  1.31  christos #
     16  1.31  christos CPPFLAGS+=	-DBROKEN_EXEC_TTY_RESTORE	# broken since 4.99.10
     17  1.31  christos CPPFLAGS+=	-DBROKEN_CLONE_STAT		# see PRs 37878 and 37550
     18  1.31  christos 
     19  1.31  christos # Debugging options (most should go away - please leave for now).
     20  1.31  christos #
     21  1.31  christos #CPPFLAGS+=	-DDEBUG_FILE_LEAK
     22  1.15     lukem 
     23   1.1       cgd PROG=	mail
     24  1.28  christos SRCS=	version.c support.c cmd1.c cmd2.c cmd3.c cmd4.c cmdtab.c collect.c \
     25  1.28  christos 	dotlock.c edit.c fio.c format.c getname.c head.c v7.local.c lex.c \
     26  1.31  christos 	list.c main.c names.c popen.c quit.c send.c sig.c strings.c temp.c \
     27  1.31  christos 	tty.c vars.c
     28   1.3       jtc LINKS=	${BINDIR}/mail ${BINDIR}/Mail ${BINDIR}/mail ${BINDIR}/mailx
     29   1.3       jtc MLINKS=	mail.1 Mail.1 mail.1 mailx.1
     30  1.20       wiz 
     31  1.25  christos LDADD+=		-lutil
     32  1.25  christos DPADD+=		${LIBUTIL}
     33  1.25  christos 
     34  1.26  christos .if ${USE_EDITLINE:Uno} == "yes"
     35  1.23  christos SRCS+=	complete.c
     36  1.23  christos 
     37  1.25  christos CPPFLAGS+=	-DUSE_EDITLINE
     38  1.24        he LDADD+=		-ledit -ltermcap
     39  1.24        he DPADD+=		${LIBEDIT} ${LIBTERMCAP}
     40  1.23  christos 
     41  1.26  christos .if ${MIME_SUPPORT:Uno} == "yes"
     42  1.25  christos SRCS+=	mime_attach.c
     43  1.25  christos SRCS+=	mime_child.c
     44  1.25  christos SRCS+=	mime_codecs.c
     45  1.25  christos SRCS+=	mime_decode.c
     46  1.28  christos SRCS+=	mime_detach.c
     47  1.25  christos SRCS+=	mime_header.c
     48  1.25  christos 
     49  1.25  christos CPPFLAGS+=	-DMIME_SUPPORT
     50  1.26  christos .if ${CHARSET_SUPPORT:Uno} == "yes"
     51  1.25  christos CPPFLAGS+=	-DCHARSET_SUPPORT
     52  1.25  christos .endif
     53  1.25  christos 
     54  1.25  christos LDADD+=		-lmagic -lz
     55  1.25  christos DPADD+=		${LIBMAGIC} ${LIBZ}
     56  1.25  christos .endif
     57  1.23  christos .endif
     58  1.23  christos 
     59  1.28  christos .if ${THREAD_SUPPORT:Uno} == "yes"
     60  1.28  christos SRCS+=	thread.c
     61  1.28  christos CPPFLAGS+=	-DTHREAD_SUPPORT
     62  1.28  christos .endif
     63  1.28  christos 
     64  1.23  christos WARNS=	4
     65  1.25  christos CWARNFLAGS+=	-Wextra
     66   1.3       jtc 
     67  1.21     lukem .PATH: ${.CURDIR}/misc
     68  1.21     lukem 
     69  1.15     lukem .if ${MKSHARE} != "no"
     70  1.21     lukem FILESDIR=		/usr/share/misc
     71  1.21     lukem FILES=			mail.help mail.tildehelp
     72   1.5   mycroft 
     73   1.5   mycroft .if make(install)
     74   1.5   mycroft SUBDIR+= USD.doc
     75  1.14     lukem .endif
     76   1.5   mycroft .endif
     77  1.11     perry 
     78  1.21     lukem CONFIGFILES=		mail.rc
     79  1.21     lukem FILESDIR_mail.rc=	/etc
     80   1.1       cgd 
     81   1.1       cgd .include <bsd.prog.mk>
     82  1.13   mycroft .include <bsd.subdir.mk>
     83