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