mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-27 11:20:58 +01:00
09818ac28e
Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway.
26 lines
515 B
Makefile
26 lines
515 B
Makefile
# $FreeBSD$
|
|
|
|
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
|
|
.PATH: ${SENDMAIL_DIR}/libsmutil
|
|
|
|
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
|
|
CFLAGS+=-DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL
|
|
|
|
# User customizations to the sendmail build environment
|
|
CFLAGS+=${SENDMAIL_CFLAGS}
|
|
|
|
WARNS?= 2
|
|
|
|
LIB= smutil
|
|
|
|
SRCS+= sm_os.h
|
|
SRCS+= debug.c err.c lockfile.c safefile.c snprintf.c cf.c
|
|
CLEANFILES+=sm_os.h
|
|
|
|
INTERNALLIB=
|
|
|
|
sm_os.h:
|
|
ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
|
|
|
|
.include <bsd.lib.mk>
|