aboutsummaryrefslogtreecommitdiff
path: root/bin/rmail/Makefile
diff options
context:
space:
mode:
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>2002-02-17 22:05:07 +0000
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>2002-02-17 22:05:07 +0000
commit095dae9d7a615448609268e249bc2d9c380dd200 (patch)
tree588b0c80154fe0800ed93be988c1076a84c146b5 /bin/rmail/Makefile
parent40b36f54c8eeabf63b79c812727185384df2fa9e (diff)
downloadsrc-095dae9d7a615448609268e249bc2d9c380dd200.tar.gz
src-095dae9d7a615448609268e249bc2d9c380dd200.zip
Update build infrastructure for sendmail 8.12.
Notes
Notes: svn path=/head/; revision=90798
Diffstat (limited to 'bin/rmail/Makefile')
-rw-r--r--bin/rmail/Makefile20
1 files changed, 13 insertions, 7 deletions
diff --git a/bin/rmail/Makefile b/bin/rmail/Makefile
index 2571512af9f7..485d153d6af3 100644
--- a/bin/rmail/Makefile
+++ b/bin/rmail/Makefile
@@ -9,19 +9,22 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
PROG= rmail
SRCS= rmail.c
MAN= rmail.8
-CFLAGS+=-I${SENDMAIL_DIR}/include
+CFLAGS+=-I${SENDMAIL_DIR}/include -I.
WARNS= 0
WFORMAT=0
-.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}
@@ -36,4 +39,7 @@ LDFLAGS+=${SENDMAIL_LDFLAGS}
# Not much point this being static. It calls a shared sendmail...
NOSHARED?= NO
+sm_os.h:
+ ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
+
.include <bsd.prog.mk>