1# $FreeBSD$ 2 3.include <src.opts.mk> 4.include "../Makefile.inc" 5 6.include "../Makefile.crypto" 7 8.PATH.c:${HOSTAPD_DISTDIR} \ 9 ${WPA_DISTDIR}/src/drivers 10 11PACKAGE= hostapd 12PROG= hostapd 13SRCS= config_file.c \ 14 ctrl_iface.c \ 15 driver_bsd.c \ 16 eap_register.c \ 17 main.c 18 19MAN= hostapd.8 hostapd.conf.5 20 21.if ${MK_EXAMPLES} != "no" 22FILESDIR= ${SHAREDIR}/examples/hostapd 23.PATH: ${HOSTAPD_DISTDIR} 24FILES= hostapd.conf hostapd.eap_user hostapd.wpa_psk 25.endif 26 27CFLAGS+=-I${.CURDIR:H}/wpa_supplicant \ 28 -I${WPA_DISTDIR}/src/eap_peer \ 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