1# $FreeBSD$ 2 3.include <src.opts.mk> 4.include "../Makefile.inc" 5 6.include "../Makefile.crypto" 7 8.PATH.c:${HOSTAPD_DISTDIR} 9 10PACKAGE= hostapd 11PROG= hostapd 12SRCS= config_file.c \ 13 ctrl_iface.c \ 14 eap_register.c \ 15 main.c 16 17MAN= hostapd.8 hostapd.conf.5 18 19.if ${MK_EXAMPLES} != "no" 20FILESDIR= ${SHAREDIR}/examples/hostapd 21.PATH: ${HOSTAPD_DISTDIR} 22FILES= hostapd.conf hostapd.eap_user hostapd.wpa_psk 23.endif 24 25CFLAGS+=-I${.CURDIR:H}/wpa_supplicant \ 26 -I${WPA_DISTDIR}/src/eap_peer \ 27 -DCONFIG_MBO \ 28 -DCONFIG_RSN_PREAUTH \ 29 -DHOSTAPD 30.if ${MK_INET6} != "no" 31CFLAGS+= -DCONFIG_IPV6 32.endif 33#CFLAGS+= -g 34LIBADD+= pcap util \ 35 wpadrivers wpaap wpal2_packet wpaeap_server \ 36 wpaeapol_auth wpaeap_common \ 37 wparadius wpatls wpawps wpacommon wpacrypto wpautils 38 39# User customizations for wpa_supplicant/hostapd build environment 40CFLAGS+=${HOSTAPD_CFLAGS} 41#DPADD+=${HOSTAPD_DPADD} 42LDADD+=${HOSTAPD_LDADD} 43#LDFLAGS+=${HOSTAPD_LDFLAGS} 44 45# For WPS, EAP modes, etc 46NEED_DH_GROUPS=y 47NEED_DH_GROUPS_ALL=y 48 49.if !empty(CFLAGS:M*-DCONFIG_WPS) 50NEED_SIM_COMMON=y 51.endif 52 53.if !empty(CFLAGS:M*-DEAP_SERVER_AKA) 54NEED_SIM_COMMON=y 55.endif 56 57.if !empty(CFLAGS:M*-DEAP_SERVER_SIM) 58NEED_SIM_COMMON=y 59.endif 60 61.if defined(NEED_SIM_COMMON) 62NEED_FIPS186_2_PRF=y 63.endif 64 65.if !empty(CFLAGS:M*-DEAP_SERVER_GPSK) 66CFLAGS+=-DEAP_GPSK_SHA256 67NEED_AES_OMAC1=y 68.endif 69 70.include <bsd.prog.mk> 71