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