Home | History | Annotate | Line # | Download | only in mail
Makefile revision 1.30.20.1
      1  1.30.20.1       jym #	$NetBSD: Makefile,v 1.30.20.1 2009/05/13 19:19:56 jym 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.30.20.1       jym USE_EDITLINE?=yes
      9  1.30.20.1       jym MIME_SUPPORT?=yes	# currently requires USE_EDITLINE
     10  1.30.20.1       jym CHARSET_SUPPORT?=yes	# requires MIME_SUPPORT
     11  1.30.20.1       jym THREAD_SUPPORT?=yes	# EXPERIMENTAL
     12  1.30.20.1       jym 
     13  1.30.20.1       jym # Work around some problems in -current.
     14  1.30.20.1       jym # See the source code for more info.
     15  1.30.20.1       jym #
     16  1.30.20.1       jym CPPFLAGS+=	-DBROKEN_EXEC_TTY_RESTORE	# broken since 4.99.10
     17  1.30.20.1       jym CPPFLAGS+=	-DBROKEN_CLONE_STAT		# see PRs 37878 and 37550
     18  1.30.20.1       jym CPPFLAGS+=	-DBROKEN_MAGIC			# bad MIME type on short files
     19  1.30.20.1       jym 
     20  1.30.20.1       jym # Debugging options (most should go away - please leave for now).
     21  1.30.20.1       jym #
     22  1.30.20.1       jym #CPPFLAGS+=	-DDEBUG_FILE_LEAK
     23       1.15     lukem 
     24        1.1       cgd PROG=	mail
     25       1.28  christos SRCS=	version.c support.c cmd1.c cmd2.c cmd3.c cmd4.c cmdtab.c collect.c \
     26       1.28  christos 	dotlock.c edit.c fio.c format.c getname.c head.c v7.local.c lex.c \
     27  1.30.20.1       jym 	list.c main.c names.c popen.c quit.c send.c sig.c strings.c temp.c \
     28  1.30.20.1       jym 	tty.c vars.c
     29        1.3       jtc LINKS=	${BINDIR}/mail ${BINDIR}/Mail ${BINDIR}/mail ${BINDIR}/mailx
     30        1.3       jtc MLINKS=	mail.1 Mail.1 mail.1 mailx.1
     31       1.20       wiz 
     32       1.25  christos LDADD+=		-lutil
     33       1.25  christos DPADD+=		${LIBUTIL}
     34       1.25  christos 
     35       1.26  christos .if ${USE_EDITLINE:Uno} == "yes"
     36       1.23  christos SRCS+=	complete.c
     37       1.23  christos 
     38       1.25  christos CPPFLAGS+=	-DUSE_EDITLINE
     39       1.24        he LDADD+=		-ledit -ltermcap
     40       1.24        he DPADD+=		${LIBEDIT} ${LIBTERMCAP}
     41       1.23  christos 
     42       1.26  christos .if ${MIME_SUPPORT:Uno} == "yes"
     43       1.25  christos SRCS+=	mime_attach.c
     44       1.25  christos SRCS+=	mime_child.c
     45       1.25  christos SRCS+=	mime_codecs.c
     46       1.25  christos SRCS+=	mime_decode.c
     47       1.28  christos SRCS+=	mime_detach.c
     48       1.25  christos SRCS+=	mime_header.c
     49       1.25  christos 
     50       1.25  christos CPPFLAGS+=	-DMIME_SUPPORT
     51       1.26  christos .if ${CHARSET_SUPPORT:Uno} == "yes"
     52       1.25  christos CPPFLAGS+=	-DCHARSET_SUPPORT
     53       1.25  christos .endif
     54       1.25  christos 
     55       1.25  christos LDADD+=		-lmagic -lz
     56       1.25  christos DPADD+=		${LIBMAGIC} ${LIBZ}
     57       1.25  christos .endif
     58       1.23  christos .endif
     59       1.23  christos 
     60       1.28  christos .if ${THREAD_SUPPORT:Uno} == "yes"
     61       1.28  christos SRCS+=	thread.c
     62       1.28  christos CPPFLAGS+=	-DTHREAD_SUPPORT
     63       1.28  christos .endif
     64       1.28  christos 
     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