]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - libexec/smrsh/Makefile
MFC r228558, r228585, r228588, r228652, r228707:
[FreeBSD/stable/9.git] / libexec / smrsh / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 7/2/95
2 # $FreeBSD$
3
4 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
5 .PATH:  ${SENDMAIL_DIR}/smrsh
6
7 PROG=   smrsh
8 SRCS=   smrsh.c
9 MAN=    smrsh.8
10 CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
11
12 LIBSMDIR=       ${.OBJDIR}/../../lib/libsm
13 LIBSM=          ${LIBSMDIR}/libsm.a
14
15 DPADD=  ${LIBSM}
16 LDADD=  ${LIBSM}
17
18 WARNS?= 2
19
20 .if ${CC:T:Mclang} == "clang"
21 # Unfortunately, clang gives warnings about sendmail code that cannot
22 # be turned off yet.  Since this is contrib code, and we don't really
23 # care about the warnings, just make them non-fatal for now.
24 NO_WERROR=
25 .endif
26
27 SRCS+=  sm_os.h
28 CLEANFILES+=sm_os.h
29
30 # User customizations to the sendmail build environment
31 CFLAGS+=${SENDMAIL_CFLAGS}
32 DPADD+=${SENDMAIL_DPADD}
33 LDADD+=${SENDMAIL_LDADD}
34 LDFLAGS+=${SENDMAIL_LDFLAGS}
35
36 sm_os.h:
37         ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
38
39 .include <bsd.prog.mk>