Home | History | Annotate | Line # | Download | only in mail
      1  1.45    martin #	$NetBSD: Makefile,v 1.45 2024/11/11 11:44:51 martin 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.45    martin .include "${NETBSDSRCDIR}/external/bsd/zstd/Makefile.zstd"
      7  1.45    martin 
      8  1.30       tls USE_FORT?= yes	# data-driven bugs?
      9  1.30       tls 
     10  1.31  christos USE_EDITLINE?=yes
     11  1.31  christos MIME_SUPPORT?=yes	# currently requires USE_EDITLINE
     12  1.31  christos CHARSET_SUPPORT?=yes	# requires MIME_SUPPORT
     13  1.31  christos THREAD_SUPPORT?=yes	# EXPERIMENTAL
     14  1.31  christos 
     15  1.31  christos # Work around some problems in -current.
     16  1.31  christos # See the source code for more info.
     17  1.31  christos #
     18  1.31  christos CPPFLAGS+=	-DBROKEN_EXEC_TTY_RESTORE	# broken since 4.99.10
     19  1.31  christos CPPFLAGS+=	-DBROKEN_CLONE_STAT		# see PRs 37878 and 37550
     20  1.32  christos CPPFLAGS+=	-DBROKEN_MAGIC			# bad MIME type on short files
     21  1.31  christos 
     22  1.31  christos # Debugging options (most should go away - please leave for now).
     23  1.31  christos #
     24  1.31  christos #CPPFLAGS+=	-DDEBUG_FILE_LEAK
     25  1.15     lukem 
     26   1.1       cgd PROG=	mail
     27  1.28  christos SRCS=	version.c support.c cmd1.c cmd2.c cmd3.c cmd4.c cmdtab.c collect.c \
     28  1.28  christos 	dotlock.c edit.c fio.c format.c getname.c head.c v7.local.c lex.c \
     29  1.31  christos 	list.c main.c names.c popen.c quit.c send.c sig.c strings.c temp.c \
     30  1.31  christos 	tty.c vars.c
     31  1.37  christos LINKS=	${BINDIR}/mail ${BINDIR}/mailx
     32  1.37  christos MLINKS=	mail.1 mailx.1
     33  1.20       wiz 
     34  1.25  christos LDADD+=		-lutil
     35  1.25  christos DPADD+=		${LIBUTIL}
     36  1.25  christos 
     37  1.26  christos .if ${USE_EDITLINE:Uno} == "yes"
     38  1.23  christos SRCS+=	complete.c
     39  1.23  christos 
     40  1.25  christos CPPFLAGS+=	-DUSE_EDITLINE
     41  1.34       roy LDADD+=		-ledit -lterminfo
     42  1.34       roy DPADD+=		${LIBEDIT} ${LIBTERMINFO}
     43  1.23  christos 
     44  1.26  christos .if ${MIME_SUPPORT:Uno} == "yes"
     45  1.25  christos SRCS+=	mime_attach.c
     46  1.25  christos SRCS+=	mime_child.c
     47  1.25  christos SRCS+=	mime_codecs.c
     48  1.25  christos SRCS+=	mime_decode.c
     49  1.28  christos SRCS+=	mime_detach.c
     50  1.25  christos SRCS+=	mime_header.c
     51  1.25  christos 
     52  1.25  christos CPPFLAGS+=	-DMIME_SUPPORT
     53  1.26  christos .if ${CHARSET_SUPPORT:Uno} == "yes"
     54  1.25  christos CPPFLAGS+=	-DCHARSET_SUPPORT
     55  1.25  christos .endif
     56  1.25  christos 
     57  1.40  christos LDADD+=		-lmagic -llzma -lbz2 -lz
     58  1.40  christos DPADD+=		${LIBMAGIC} ${LIBLZMA} ${LIBBZ2} ${LIBZ}
     59  1.45    martin PROGDPLIBS+=	${ZSTDDPLIBS}
     60  1.25  christos .endif
     61  1.23  christos .endif
     62  1.23  christos 
     63  1.28  christos .if ${THREAD_SUPPORT:Uno} == "yes"
     64  1.28  christos SRCS+=	thread.c
     65  1.28  christos CPPFLAGS+=	-DTHREAD_SUPPORT
     66  1.28  christos .endif
     67  1.28  christos 
     68  1.25  christos CWARNFLAGS+=	-Wextra
     69   1.3       jtc 
     70  1.21     lukem .PATH: ${.CURDIR}/misc
     71  1.21     lukem 
     72  1.15     lukem .if ${MKSHARE} != "no"
     73  1.21     lukem FILESDIR=		/usr/share/misc
     74  1.21     lukem FILES=			mail.help mail.tildehelp
     75  1.36  dholland .endif
     76   1.5   mycroft 
     77  1.38  christos SUBDIR.roff+= USD.doc
     78  1.11     perry 
     79  1.21     lukem CONFIGFILES=		mail.rc
     80  1.21     lukem FILESDIR_mail.rc=	/etc
     81  1.41  riastrad FILESMODE_mail.rc=	644
     82   1.1       cgd 
     83  1.39       mrg COPTS.format.c+= -Wno-format-nonliteral
     84  1.44       rin COPTS.fio.c+=	${CC_WNO_FORMAT_TRUNCATION}
     85  1.35  christos 
     86   1.1       cgd .include <bsd.prog.mk>
     87  1.13   mycroft .include <bsd.subdir.mk>
     88