The first a bug in pax and should be commited to FBSD, too.
[dragonfly.git] / libexec / smrsh / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 7/2/95
2 # $FreeBSD: src/libexec/smrsh/Makefile,v 1.1.6.6 2002/03/25 21:31:40 gshapiro Exp $
3 # $DragonFly: src/libexec/smrsh/Makefile,v 1.2 2003/06/17 04:27:08 dillon Exp $
4
5 MAINTAINER=     gshapiro@FreeBSD.org
6
7 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
8 .PATH:  ${SENDMAIL_DIR}/smrsh
9
10 PROG=   smrsh
11 SRCS=   smrsh.c
12 MAN=    smrsh.8
13 CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
14
15 .if exists(${.OBJDIR}/../../lib/libsm)
16 LIBSMDIR:=      ${.OBJDIR}/../../lib/libsm
17 .else
18 LIBSMDIR!=      cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
19 .endif
20 LIBSM:=         ${LIBSMDIR}/libsm.a
21
22 DPADD=  ${LIBSM}
23 LDADD=  ${LIBSM}
24
25 SRCS+=  sm_os.h
26 CLEANFILES+=sm_os.h
27
28 # User customizations to the sendmail build environment
29 CFLAGS+=${SENDMAIL_CFLAGS}
30 DPADD+=${SENDMAIL_DPADD}
31 LDADD+=${SENDMAIL_LDADD}
32 LDFLAGS+=${SENDMAIL_LDFLAGS}
33
34 sm_os.h:
35         ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
36
37 .include <bsd.prog.mk>