1# @(#)Makefile 8.8 (Berkeley) 3/28/97 2# $FreeBSD$ 3 4SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail 5SMDIR= ${SENDMAIL_DIR}/src 6.PATH: ${SMDIR} 7 8BINDIR= /usr/libexec/sendmail 9 10PROG= sendmail 11MAN= mailq.1 newaliases.1 aliases.5 sendmail.8 12SRCS= alias.c arpadate.c bf.c collect.c conf.c control.c \ 13 convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c \ 14 macro.c main.c map.c mci.c milter.c mime.c parseaddr.c queue.c \ 15 readcf.c recipient.c savemail.c sasl.c sfsasl.c shmticklib.c \ 16 sm_resolve.c srvrsmtp.c stab.c stats.c sysexits.c timers.c \ 17 tls.c trace.c udb.c usersmtp.c util.c version.c 18BINOWN= root 19BINGRP= smmsp 20.ifdef SENDMAIL_SET_USER_ID 21BINMODE=4555 22.else 23BINMODE=2555 24.endif 25 26# Define the database format to use for aliases et al. 27DBMDEF= -DNEWDB 28# If you don't want NIS alias/map support, comment out this line 29NIS= -DNIS 30# Map extensions 31MAPS= -DMAP_REGEX -DDNSMAP 32 33CSTD?= c89 34CFLAGS+= -I${SMDIR} -I${SENDMAIL_DIR}/include -I. 35CFLAGS+= ${DBMDEF} ${NIS} -DMILTER -DNETINET6 -DTCPWRAPPERS ${MAPS} 36 37DPADD= ${LIBUTIL} ${LIBWRAP} 38LDADD= -lutil -lwrap 39 40.if exists(${.OBJDIR}/../../lib/libsm) 41LIBSMDIR:= ${.OBJDIR}/../../lib/libsm 42.else 43LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR 44.endif 45LIBSM:= ${LIBSMDIR}/libsm.a 46 47.if exists(${.OBJDIR}/../../lib/libsmutil) 48LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil 49.else 50LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR 51.endif 52LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a 53 54DPADD+= ${LIBSMUTIL} ${LIBSM} 55LDADD+= ${LIBSMUTIL} ${LIBSM} 56 57SRCS+= sm_os.h 58CLEANFILES+=sm_os.h 59 60.if !defined(NOCRYPT) && !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH) 61# STARTTLS support 62DISTRIBUTION= crypto 63CFLAGS+= -DSTARTTLS -D_FFR_TLS_1 64DPADD+= ${LIBSSL} ${LIBCRYPTO} 65LDADD+= -lssl -lcrypto 66.endif 67 68# User customizations to the sendmail build environment 69CFLAGS+=${SENDMAIL_CFLAGS} 70DPADD+=${SENDMAIL_DPADD} 71LDADD+=${SENDMAIL_LDADD} 72LDFLAGS+=${SENDMAIL_LDFLAGS} 73 74sm_os.h: 75 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h 76 77.include <bsd.prog.mk> 78