mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
d510ecb42b
to avoid polluting sys.mk. This directive controls the addition of compiler warning flags to CFLAGS in a relatively compiler-neutral manner. The idea is that WARNS can be set in Makefile.inc or in individual Makefiles as they become clean, to prevent the introduction of new warnings in the code. -Werror is added by default
16 lines
420 B
Makefile
16 lines
420 B
Makefile
# $FreeBSD$
|
|
|
|
# Search for kernel source tree in standard places.
|
|
.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. /sys /usr/src/sys
|
|
.if !defined(SYSDIR) && exists(${_dir}/conf/kmod.mk)
|
|
SYSDIR= ${_dir}
|
|
.endif
|
|
.endfor
|
|
.if !defined(SYSDIR) || !exists(${SYSDIR}/kern) || !exists(${SYSDIR}/conf/)
|
|
.error "can't find kernel source tree"
|
|
.endif
|
|
|
|
.include "${SYSDIR}/conf/kmod.mk"
|
|
|
|
.include <bsd.sys.mk>
|