Home | History | Annotate | Line # | Download | only in mail
Makefile revision 1.41
      1  1.41  riastrad #	$NetBSD: Makefile,v 1.41 2022/08/30 13:40:37 riastradh 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.32  christos CPPFLAGS+=	-DBROKEN_MAGIC			# bad MIME type on short files
     19  1.31  christos 
     20  1.31  christos # Debugging options (most should go away - please leave for now).
     21  1.31  christos #
     22  1.31  christos #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.31  christos 	list.c main.c names.c popen.c quit.c send.c sig.c strings.c temp.c \
     28  1.31  christos 	tty.c vars.c
     29  1.37  christos LINKS=	${BINDIR}/mail ${BINDIR}/mailx
     30  1.37  christos MLINKS=	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.34       roy LDADD+=		-ledit -lterminfo
     40  1.34       roy DPADD+=		${LIBEDIT} ${LIBTERMINFO}
     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.40  christos LDADD+=		-lmagic -llzma -lbz2 -lz
     56  1.40  christos DPADD+=		${LIBMAGIC} ${LIBLZMA} ${LIBBZ2} ${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.36  dholland .endif
     73   1.5   mycroft 
     74  1.38  christos SUBDIR.roff+= USD.doc
     75  1.11     perry 
     76  1.21     lukem CONFIGFILES=		mail.rc
     77  1.21     lukem FILESDIR_mail.rc=	/etc
     78  1.41  riastrad FILESMODE_mail.rc=	644
     79   1.1       cgd 
     80  1.39       mrg COPTS.format.c+= -Wno-format-nonliteral
     81  1.39       mrg COPTS.fio.c+=	${GCC_NO_FORMAT_TRUNCATION}
     82  1.35  christos 
     83   1.1       cgd .include <bsd.prog.mk>
     84  1.13   mycroft .include <bsd.subdir.mk>
     85