1c6063d0dSWarner Losh.include <src.opts.mk> 2e1fe3dbaSRuslan Ermilov 39c4fa87cSGlen BarberPACKAGE=sendmail 464a0982bSEnji CooperSENDMAIL_DIR=${SRCTOP}/contrib/sendmail 588c75941SGregory Neil ShapiroSMDIR= ${SENDMAIL_DIR}/src 622751f56SPeter Wemm.PATH: ${SMDIR} 758162a73SPeter Wemm 87fdd45b0SBryan DreweryBINDIR= ${LIBEXECDIR}/sendmail 98ea9610dSPeter Wemm 1022751f56SPeter WemmPROG= sendmail 1190e655eaSDavid E. O'BrienMAN= mailq.1 newaliases.1 aliases.5 sendmail.8 127d0ac6f3SGregory Neil ShapiroMLINKS+=sendmail.8 hoststat.8 137d0ac6f3SGregory Neil ShapiroMLINKS+=sendmail.8 purgestat.8 146ebfa57dSGregory Neil ShapiroSRCS= alias.c arpadate.c bf.c collect.c conf.c control.c \ 1588c75941SGregory Neil Shapiro convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c \ 1688c75941SGregory Neil Shapiro macro.c main.c map.c mci.c milter.c mime.c parseaddr.c queue.c \ 17*19d4fb85SGregory Neil Shapiro ratectrl.c readcf.c recipient.c savemail.c sasl.c sched.c sfsasl.c \ 18f673db9fSGregory Neil Shapiro shmticklib.c sm_resolve.c srvrsmtp.c stab.c stats.c sysexits.c \ 195b0945b5SGregory Neil Shapiro timers.c tlsh.c tls.c trace.c udb.c usersmtp.c util.c version.c 20c9842b5aSRuslan ErmilovBINOWN= root 216ebfa57dSGregory Neil ShapiroBINGRP= smmsp 226ebfa57dSGregory Neil Shapiro.ifdef SENDMAIL_SET_USER_ID 2390e655eaSDavid E. O'BrienBINMODE=4555 246ebfa57dSGregory Neil Shapiro.else 256ebfa57dSGregory Neil ShapiroBINMODE=2555 266ebfa57dSGregory Neil Shapiro.endif 2790e655eaSDavid E. O'Brien 2890e655eaSDavid E. O'Brien# Define the database format to use for aliases et al. 2990e655eaSDavid E. O'BrienDBMDEF= -DNEWDB 3090e655eaSDavid E. O'Brien# If you don't want NIS alias/map support, comment out this line 31e1fe3dbaSRuslan Ermilov.if ${MK_NIS} != "no" 3290e655eaSDavid E. O'BrienNIS= -DNIS 336c58990dSBjoern A. Zeeb.endif 3490e655eaSDavid E. O'Brien# Map extensions 356ebfa57dSGregory Neil ShapiroMAPS= -DMAP_REGEX -DDNSMAP 3690e655eaSDavid E. O'Brien 376ebfa57dSGregory Neil ShapiroCFLAGS+= -I${SMDIR} -I${SENDMAIL_DIR}/include -I. 382486c641SEnji CooperCFLAGS+= ${DBMDEF} ${NIS} ${MAPS} 390c56527fSGregory Neil Shapiro 40e1fe3dbaSRuslan Ermilov.if ${MK_INET6_SUPPORT} != "no" 410c56527fSGregory Neil ShapiroCFLAGS+= -DNETINET6 420c56527fSGregory Neil Shapiro.endif 4390e655eaSDavid E. O'Brien 44ccbcdcd5SGregory Neil ShapiroWARNS?= 0 4571ccf092SEd Schouten 462486c641SEnji CooperLIBADD= util sm smutil 476ebfa57dSGregory Neil Shapiro 486ebfa57dSGregory Neil ShapiroSRCS+= sm_os.h 496ebfa57dSGregory Neil ShapiroCLEANFILES+=sm_os.h 5088c75941SGregory Neil Shapiro 5104efeffeSWarner Losh.if ${MK_OPENSSL} != "no" 5285e427ccSGregory Neil Shapiro# STARTTLS support 535b0945b5SGregory Neil ShapiroCFLAGS+= -DSTARTTLS -DTLS_EC 54c6db8143SBaptiste DaroussinLIBADD+= ssl crypto 5585e427ccSGregory Neil Shapiro.endif 5685e427ccSGregory Neil Shapiro 572486c641SEnji Cooper.if ${MK_TCP_WRAPPERS} != "no" 582486c641SEnji CooperCFLAGS+= -DTCPWRAPPERS 592486c641SEnji CooperLIBADD+= wrap 602486c641SEnji Cooper.endif 612486c641SEnji Cooper 6295a2b4d1SMateusz GuzikCFLAGS+= ${NO_WDEPRECATED_NON_PROTOTYPE} 6395a2b4d1SMateusz Guzik 64cf1fec42SGregory Neil Shapiro# User customizations to the sendmail build environment 65cf1fec42SGregory Neil ShapiroCFLAGS+=${SENDMAIL_CFLAGS} 66cf1fec42SGregory Neil ShapiroDPADD+=${SENDMAIL_DPADD} 67c6cc6025SGregory Neil ShapiroLDADD+=${SENDMAIL_LDADD} 68c6cc6025SGregory Neil ShapiroLDFLAGS+=${SENDMAIL_LDFLAGS} 69cf1fec42SGregory Neil Shapiro 70b791fbe6SBryan Drewerysm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA 71b791fbe6SBryan Drewery ln -sf ${.ALLSRC} ${.TARGET} 72049239a4SPeter Wemm 7322751f56SPeter Wemm.include <bsd.prog.mk> 74