1# $FreeBSD$ 2 3.include <src.opts.mk> 4.include "../Makefile.inc" 5 6.PATH.c:${HOSTAPD_DISTDIR} \ 7 ${WPA_DISTDIR}/src/drivers 8 9PROG= hostapd 10SRCS= accounting.c aes-omac1.c ap_config.c ap_drv_ops.c ap_mlme.c authsrv.c \ 11 base64.c beacon.c bss_load.c chap.c common.c config_file.c \ 12 ctrl_iface.c \ 13 ctrl_iface_ap.c driver_common.c l2_packet_freebsd.c driver_bsd.c \ 14 drivers.c drv_callbacks.c eap_common.c eap_peap_common.c \ 15 eap_register.c eap_server.c eap_server_methods.c eap_user_db.c \ 16 eapol_auth_dump.c eapol_auth_sm.c eloop.c gas.c gas_serv.c hostapd.c \ 17 hs20.c http_client.c http_server.c httpread.c \ 18 hw_features_common.c ieee802_11_auth.c \ 19 ieee802_11_common.c ieee802_11_shared.c ieee802_1x.c ip_addr.c \ 20 main.c ms_funcs.c os_unix.c peerkey_auth.c pmksa_cache_auth.c \ 21 preauth_auth.c radius.c radius_client.c radius_das.c sta_info.c \ 22 tkip_countermeasures.c upnp_xml.c utils.c uuid.c vlan_init.c \ 23 wpa_auth.c wpa_auth_glue.c wpa_auth_ie.c wpa_common.c wpa_debug.c \ 24 wpabuf.c wps.c wps_attr_build.c wps_attr_parse.c wps_attr_process.c \ 25 wps_common.c wps_dev_attr.c wps_enrollee.c wps_hostapd.c \ 26 wps_registrar.c wps_upnp.c wps_upnp_ap.c wps_upnp_event.c \ 27 wps_upnp_ssdp.c wps_upnp_web.c 28 29MAN= hostapd.8 hostapd.conf.5 30 31.if ${MK_EXAMPLES} != "no" 32FILESDIR= ${SHAREDIR}/examples/hostapd 33.PATH: ${HOSTAPD_DISTDIR} 34FILES= hostapd.conf hostapd.eap_user hostapd.wpa_psk 35.endif 36 37CFLAGS+=-DCONFIG_DRIVER_BSD \ 38 -DCONFIG_DRIVER_RADIUS_ACL \ 39 -DCONFIG_HS20 \ 40 -DCONFIG_INTERWORKING \ 41 -DCONFIG_PEERKEY \ 42 -DCONFIG_RSN_PREAUTH \ 43 -DCONFIG_WPS \ 44 -DCONFIG_WPS2 \ 45 -DCONFIG_WPS_UPNP \ 46 -DHOSTAPD 47.if ${MK_INET6} != "no" 48CFLAGS+= -DCONFIG_IPV6 49.endif 50#CFLAGS+= -g 51LIBADD+= pcap util 52 53# User customizations for wpa_supplicant/hostapd build environment 54CFLAGS+=${HOSTAPD_CFLAGS} 55#DPADD+=${HOSTAPD_DPADD} 56LDADD+=${HOSTAPD_LDADD} 57#LDFLAGS+=${HOSTAPD_LDFLAGS} 58 59CFLAGS+=-DDPKCS12_FUNCS \ 60 -DEAP_SERVER \ 61 -DEAP_SERVER_GTC \ 62 -DEAP_SERVER_IDENTITY \ 63 -DEAP_SERVER_MD5 \ 64 -DEAP_SERVER_MSCHAPV2 \ 65 -DEAP_SERVER_PEAP \ 66 -DEAP_SERVER_TLS \ 67 -DEAP_SERVER_TTLS \ 68 -DEAP_SERVER_WSC \ 69 -DEAP_TLS_FUNCS 70 71SRCS+= eap_server_gtc.c \ 72 eap_server_identity.c \ 73 eap_server_md5.c \ 74 eap_server_mschapv2.c \ 75 eap_server_peap.c \ 76 eap_server_tls.c \ 77 eap_server_tls_common.c \ 78 eap_server_ttls.c \ 79 eap_server_wsc.c \ 80 eap_wsc_common.c 81TLS_FUNCS=y 82 83.if !empty(CFLAGS:M*-DCONFIG_WPS) 84NEED_SIM_COMMON=y 85.endif 86 87.if !empty(CFLAGS:M*-DEAP_SERVER_AKA) 88SRCS+= eap_server_aka.c 89NEED_SIM_COMMON=y 90.endif 91 92.if !empty(CFLAGS:M*-DEAP_SERVER_SIM) 93SRCS+= eap_server_sim.c 94NEED_SIM_COMMON=y 95.endif 96 97.if defined(NEED_SIM_COMMON) 98SRCS+= eap_sim_common.c \ 99 eap_sim_db.c 100NEED_FIPS186_2_PRF=y 101.endif 102 103.if !empty(CFLAGS:M*-DEAP_SERVER_GPSK) 104CFLAGS+=-DEAP_GPSK_SHA256 105SRCS+= eap_server_gpsk.c \ 106 eap_gpsk_common.c 107NEED_AES_OMAC1=y 108.endif 109 110.if !empty(CFLAGS:M*-DEAP_SERVER_PAX) 111SRCS+= eap_server_pax.c \ 112 eap_pax_common.c 113.endif 114 115.if !empty(CFLAGS:M*-DEAP_SERVER_SAKE) 116SRCS+= eap_server_sake.c \ 117 eap_sake_common.c 118.endif 119 120.include "../Makefile.crypto" 121 122.include <bsd.prog.mk> 123