122751f56SPeter Wemm# @(#)Makefile 8.8 (Berkeley) 3/28/97 297d92980SPeter Wemm# $FreeBSD$ 358162a73SPeter Wemm 488c75941SGregory Neil ShapiroSENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail 588c75941SGregory Neil ShapiroSMDIR= ${SENDMAIL_DIR}/src 622751f56SPeter Wemm.PATH: ${SMDIR} 758162a73SPeter Wemm 81e503e98SGregory Neil ShapiroBINDIR= /usr/libexec/sendmail 98ea9610dSPeter Wemm 1022751f56SPeter WemmPROG= sendmail 1190e655eaSDavid E. O'BrienMAN= mailq.1 newaliases.1 aliases.5 sendmail.8 126ebfa57dSGregory Neil ShapiroSRCS= alias.c arpadate.c bf.c collect.c conf.c control.c \ 1388c75941SGregory Neil Shapiro convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c \ 1488c75941SGregory Neil Shapiro macro.c main.c map.c mci.c milter.c mime.c parseaddr.c queue.c \ 15f673db9fSGregory Neil Shapiro ratectrl.c readcf.c recipient.c savemail.c sasl.c sfsasl.c \ 16f673db9fSGregory Neil Shapiro shmticklib.c sm_resolve.c srvrsmtp.c stab.c stats.c sysexits.c \ 17f673db9fSGregory Neil Shapiro timers.c tls.c trace.c udb.c usersmtp.c util.c version.c 18c9842b5aSRuslan ErmilovBINOWN= root 196ebfa57dSGregory Neil ShapiroBINGRP= smmsp 206ebfa57dSGregory Neil Shapiro.ifdef SENDMAIL_SET_USER_ID 2190e655eaSDavid E. O'BrienBINMODE=4555 226ebfa57dSGregory Neil Shapiro.else 236ebfa57dSGregory Neil ShapiroBINMODE=2555 246ebfa57dSGregory Neil Shapiro.endif 2590e655eaSDavid E. O'Brien 2690e655eaSDavid E. O'Brien# Define the database format to use for aliases et al. 2790e655eaSDavid E. O'BrienDBMDEF= -DNEWDB 2890e655eaSDavid E. O'Brien# If you don't want NIS alias/map support, comment out this line 2990e655eaSDavid E. O'BrienNIS= -DNIS 3090e655eaSDavid E. O'Brien# Map extensions 316ebfa57dSGregory Neil ShapiroMAPS= -DMAP_REGEX -DDNSMAP 3290e655eaSDavid E. O'Brien 330ff4c492SDavid E. O'BrienCSTD?= c89 346ebfa57dSGregory Neil ShapiroCFLAGS+= -I${SMDIR} -I${SENDMAIL_DIR}/include -I. 35f673db9fSGregory Neil ShapiroCFLAGS+= ${DBMDEF} ${NIS} -DTCPWRAPPERS ${MAPS} 360c56527fSGregory Neil Shapiro 370c56527fSGregory Neil Shapiro.if !defined(NOINET6) 380c56527fSGregory Neil ShapiroCFLAGS+= -DNETINET6 390c56527fSGregory Neil Shapiro.endif 4090e655eaSDavid E. O'Brien 412331d160SMark MurrayDPADD= ${LIBUTIL} ${LIBWRAP} 42cf1fec42SGregory Neil ShapiroLDADD= -lutil -lwrap 4322751f56SPeter Wemm 446ebfa57dSGregory Neil Shapiro.if exists(${.OBJDIR}/../../lib/libsm) 456ebfa57dSGregory Neil ShapiroLIBSMDIR:= ${.OBJDIR}/../../lib/libsm 466ebfa57dSGregory Neil Shapiro.else 476ebfa57dSGregory Neil ShapiroLIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR 486ebfa57dSGregory Neil Shapiro.endif 496ebfa57dSGregory Neil ShapiroLIBSM:= ${LIBSMDIR}/libsm.a 506ebfa57dSGregory Neil Shapiro 5188c75941SGregory Neil Shapiro.if exists(${.OBJDIR}/../../lib/libsmutil) 5288c75941SGregory Neil ShapiroLIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil 5388c75941SGregory Neil Shapiro.else 5488c75941SGregory Neil ShapiroLIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR 5588c75941SGregory Neil Shapiro.endif 5688c75941SGregory Neil ShapiroLIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a 5788c75941SGregory Neil Shapiro 586ebfa57dSGregory Neil ShapiroDPADD+= ${LIBSMUTIL} ${LIBSM} 596ebfa57dSGregory Neil ShapiroLDADD+= ${LIBSMUTIL} ${LIBSM} 606ebfa57dSGregory Neil Shapiro 616ebfa57dSGregory Neil ShapiroSRCS+= sm_os.h 626ebfa57dSGregory Neil ShapiroCLEANFILES+=sm_os.h 6388c75941SGregory Neil Shapiro 64ebb9f0efSMark Murray.if !defined(NOCRYPT) && !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH) 6585e427ccSGregory Neil Shapiro# STARTTLS support 6685e427ccSGregory Neil ShapiroDISTRIBUTION= crypto 676ebfa57dSGregory Neil ShapiroCFLAGS+= -DSTARTTLS -D_FFR_TLS_1 6885e427ccSGregory Neil ShapiroDPADD+= ${LIBSSL} ${LIBCRYPTO} 69052238b1SDavid E. O'BrienLDADD+= -lssl -lcrypto 7085e427ccSGregory Neil Shapiro.endif 7185e427ccSGregory Neil Shapiro 72cf1fec42SGregory Neil Shapiro# User customizations to the sendmail build environment 73cf1fec42SGregory Neil ShapiroCFLAGS+=${SENDMAIL_CFLAGS} 74cf1fec42SGregory Neil ShapiroDPADD+=${SENDMAIL_DPADD} 75c6cc6025SGregory Neil ShapiroLDADD+=${SENDMAIL_LDADD} 76c6cc6025SGregory Neil ShapiroLDFLAGS+=${SENDMAIL_LDFLAGS} 77cf1fec42SGregory Neil Shapiro 786ebfa57dSGregory Neil Shapirosm_os.h: 796ebfa57dSGregory Neil Shapiro ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h 80049239a4SPeter Wemm 8122751f56SPeter Wemm.include <bsd.prog.mk> 82