1# @(#)Makefile 8.1 (Berkeley) 7/19/93 2# $FreeBSD$ 3 4MAINTAINER= gshapiro@FreeBSD.org 5 6SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail 7.PATH: ${SENDMAIL_DIR}/mail.local 8 9PROG= mail.local 10SRCS= mail.local.c 11MAN= mail.local.8 12CFLAGS+=-I${SENDMAIL_DIR}/include -I. 13WFORMAT=0 14 15.if exists(${.OBJDIR}/../../lib/libsm) 16LIBSMDIR:= ${.OBJDIR}/../../lib/libsm 17.else 18LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR 19.endif 20LIBSM:= ${LIBSMDIR}/libsm.a 21 22DPADD= ${LIBSM} 23LDADD= ${LIBSM} 24 25SRCS+= sm_os.h 26CLEANFILES+=sm_os.h 27 28# User customizations to the sendmail build environment 29CFLAGS+=${SENDMAIL_CFLAGS} 30DPADD+=${SENDMAIL_DPADD} 31LDADD+=${SENDMAIL_LDADD} 32LDFLAGS+=${SENDMAIL_LDFLAGS} 33 34sm_os.h: 35 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h 36 37.include <bsd.prog.mk> 38