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