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