1 1.29 christos # $NetBSD: Makefile,v 1.29 2007/01/02 03:09:13 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.25 christos USE_EDITLINE=yes 7 1.25 christos MIME_SUPPORT=yes # currently requires USE_EDITLINE 8 1.28 christos CHARSET_SUPPORT=yes # requires MIME_SUPPORT 9 1.28 christos THREAD_SUPPORT=yes # EXPERIMENTAL 10 1.15 lukem 11 1.1 cgd PROG= mail 12 1.28 christos SRCS= version.c support.c cmd1.c cmd2.c cmd3.c cmd4.c cmdtab.c collect.c \ 13 1.28 christos dotlock.c edit.c fio.c format.c getname.c head.c v7.local.c lex.c \ 14 1.28 christos list.c main.c names.c popen.c quit.c send.c strings.c temp.c tty.c \ 15 1.28 christos vars.c 16 1.3 jtc LINKS= ${BINDIR}/mail ${BINDIR}/Mail ${BINDIR}/mail ${BINDIR}/mailx 17 1.3 jtc MLINKS= mail.1 Mail.1 mail.1 mailx.1 18 1.20 wiz 19 1.25 christos LDADD+= -lutil 20 1.25 christos DPADD+= ${LIBUTIL} 21 1.25 christos 22 1.26 christos .if ${USE_EDITLINE:Uno} == "yes" 23 1.23 christos SRCS+= complete.c 24 1.23 christos 25 1.25 christos CPPFLAGS+= -DUSE_EDITLINE 26 1.24 he LDADD+= -ledit -ltermcap 27 1.24 he DPADD+= ${LIBEDIT} ${LIBTERMCAP} 28 1.23 christos 29 1.26 christos .if ${MIME_SUPPORT:Uno} == "yes" 30 1.25 christos SRCS+= mime_attach.c 31 1.25 christos SRCS+= mime_child.c 32 1.25 christos SRCS+= mime_codecs.c 33 1.25 christos SRCS+= mime_decode.c 34 1.28 christos SRCS+= mime_detach.c 35 1.25 christos SRCS+= mime_header.c 36 1.25 christos 37 1.25 christos CPPFLAGS+= -DMIME_SUPPORT 38 1.26 christos .if ${CHARSET_SUPPORT:Uno} == "yes" 39 1.25 christos CPPFLAGS+= -DCHARSET_SUPPORT 40 1.25 christos .endif 41 1.25 christos 42 1.25 christos LDADD+= -lmagic -lz 43 1.25 christos DPADD+= ${LIBMAGIC} ${LIBZ} 44 1.25 christos .endif 45 1.23 christos .endif 46 1.23 christos 47 1.28 christos .if ${THREAD_SUPPORT:Uno} == "yes" 48 1.28 christos SRCS+= thread.c 49 1.28 christos CPPFLAGS+= -DTHREAD_SUPPORT 50 1.28 christos .endif 51 1.28 christos 52 1.23 christos WARNS= 4 53 1.25 christos CWARNFLAGS+= -Wextra 54 1.3 jtc 55 1.21 lukem .PATH: ${.CURDIR}/misc 56 1.21 lukem 57 1.15 lukem .if ${MKSHARE} != "no" 58 1.21 lukem FILESDIR= /usr/share/misc 59 1.21 lukem FILES= mail.help mail.tildehelp 60 1.5 mycroft 61 1.5 mycroft .if make(install) 62 1.5 mycroft SUBDIR+= USD.doc 63 1.14 lukem .endif 64 1.5 mycroft .endif 65 1.11 perry 66 1.21 lukem CONFIGFILES= mail.rc 67 1.21 lukem FILESDIR_mail.rc= /etc 68 1.1 cgd 69 1.1 cgd .include <bsd.prog.mk> 70 1.13 mycroft .include <bsd.subdir.mk> 71