From 730b12a9a97574dedbbaf4b030508d12e352a2dd Mon Sep 17 00:00:00 2001 From: gshapiro Date: Sun, 17 Feb 2002 22:05:07 +0000 Subject: Update build infrastructure for sendmail 8.12. --- libexec/smrsh/Makefile | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'libexec/smrsh') diff --git a/libexec/smrsh/Makefile b/libexec/smrsh/Makefile index f34a4cf..22f3a78 100644 --- a/libexec/smrsh/Makefile +++ b/libexec/smrsh/Makefile @@ -9,17 +9,20 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail PROG= smrsh SRCS= smrsh.c MAN= smrsh.8 -CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include +CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. -.if exists(${.OBJDIR}/../../lib/libsmutil) -LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil +.if exists(${.OBJDIR}/../../lib/libsm) +LIBSMDIR:= ${.OBJDIR}/../../lib/libsm .else -LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR +LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR .endif -LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a +LIBSM:= ${LIBSMDIR}/libsm.a -DPADD= ${LIBSMUTIL} -LDADD= ${LIBSMUTIL} +DPADD= ${LIBSM} +LDADD= ${LIBSM} + +SRCS+= sm_os.h +CLEANFILES+=sm_os.h # User customizations to the sendmail build environment CFLAGS+=${SENDMAIL_CFLAGS} @@ -27,4 +30,7 @@ DPADD+=${SENDMAIL_DPADD} LDADD+=${SENDMAIL_LDADD} LDFLAGS+=${SENDMAIL_LDFLAGS} +sm_os.h: + ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h + .include -- cgit v1.1