1# @(#)Makefile 8.1 (Berkeley) 7/2/95
2# $FreeBSD: head/libexec/smrsh/Makefile 65970 2000-09-17 00:41:33Z gshapiro $
3
4SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
5.PATH: ${SENDMAIL_DIR}/smrsh
6
7PROG= smrsh
8SRCS= smrsh.c
9MAN8= smrsh.8
10CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include
11
12.if exists(${.OBJDIR}/../../lib/libsmutil)
13LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
14.else
15LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
16.endif
17LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
18
19DPADD+= ${LIBSMUTIL}
20LDADD+= ${LIBSMUTIL}
21
22# User customizations to the sendmail build environment
23CFLAGS+=${SENDMAIL_CFLAGS}
24LDFLAGS+=${SENDMAIL_LDFLAGS}
25LDADD+=${SENDMAIL_LDADD}
26DPADD+=${SENDMAIL_DPADD}
27
28.include <bsd.prog.mk>
2# $FreeBSD: head/libexec/smrsh/Makefile 65970 2000-09-17 00:41:33Z gshapiro $
3
4SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
5.PATH: ${SENDMAIL_DIR}/smrsh
6
7PROG= smrsh
8SRCS= smrsh.c
9MAN8= smrsh.8
10CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include
11
12.if exists(${.OBJDIR}/../../lib/libsmutil)
13LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
14.else
15LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
16.endif
17LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
18
19DPADD+= ${LIBSMUTIL}
20LDADD+= ${LIBSMUTIL}
21
22# User customizations to the sendmail build environment
23CFLAGS+=${SENDMAIL_CFLAGS}
24LDFLAGS+=${SENDMAIL_LDFLAGS}
25LDADD+=${SENDMAIL_LDADD}
26DPADD+=${SENDMAIL_DPADD}
27
28.include <bsd.prog.mk>