fe815331bb
The current default is provided in various Makefile.inc in some top-level directories and covers a good portion of the tree, but doesn't cover parts of the build a little deeper (e.g. libcasper). Provide a default in src.sys.mk and set WARNS to it in bsd.sys.mk if that variable is defined. This lets us relatively cleanly provide a default WARNS no matter where you're building in the src tree without breaking things outside of the tree. Crunchgen has been updated as a bootstrap tool to work on this change because it needs r365605 at a minimum to succeed. The cleanup necessary to successfully walk over this change on WITHOUT_CLEAN builds has been added. There is a supplemental project to this to list all of the warnings that are encountered when the environment has WARNS=6 NO_WERROR=yes: https://warns.kevans.dev -- this project will hopefully eventually go away in favor of CI doing a much better job than it. Reviewed by: emaste, brooks, ngie (all earlier version) Reviewed by: emaste, arichardson (depend-cleanup.sh change) Differential Revision: https://reviews.freebsd.org/D26455
40 lines
990 B
Makefile
40 lines
990 B
Makefile
# $FreeBSD$
|
|
|
|
BINDIR?= /usr/sbin
|
|
|
|
WARNS?= 0
|
|
|
|
WPA_DISTDIR?= ${SRCTOP}/contrib/wpa/
|
|
WPA_SUPPLICANT_DISTDIR?=${WPA_DISTDIR}/wpa_supplicant
|
|
HOSTAPD_DISTDIR?= ${WPA_DISTDIR}/hostapd
|
|
|
|
.PATH.c:${.CURDIR:H} \
|
|
${WPA_DISTDIR}/src/common \
|
|
${WPA_DISTDIR}/src/crypto \
|
|
${WPA_DISTDIR}/src/eapol_auth \
|
|
${WPA_DISTDIR}/src/eap_common \
|
|
${WPA_DISTDIR}/src/eapol_supp \
|
|
${WPA_DISTDIR}/src/l2_packet \
|
|
${WPA_DISTDIR}/src/radius \
|
|
${WPA_DISTDIR}/src/rsn_supp \
|
|
${WPA_DISTDIR}/src/tls \
|
|
${WPA_DISTDIR}/src/utils \
|
|
${WPA_DISTDIR}/src/wps
|
|
|
|
CFLAGS+=-I${.CURDIR}
|
|
CFLAGS+=-I${HOSTAPD_DISTDIR}
|
|
CFLAGS+=-I${WPA_DISTDIR}/src
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/common
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/crypto
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/drivers
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/l2_packet
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/utils
|
|
CFLAGS+=-I${WPA_DISTDIR}/src/wps
|
|
|
|
CFLAGS+= -DCONFIG_CTRL_IFACE
|
|
CFLAGS+= -DCONFIG_CTRL_IFACE_UNIX
|
|
CFLAGS+= -DNEED_AP_MLME
|
|
CFLAGS+= -DTLS_DEFAULT_CIPHERS=\"DEFAULT:!EXP:!LOW\"
|
|
|
|
.include <bsd.own.mk>
|