Makefile revision 363441
11553Srgrimes# $FreeBSD: stable/11/usr.sbin/wpa/hostapd/Makefile 363441 2020-07-23 03:08:17Z cy $ 21553Srgrimes 31553Srgrimes.include <src.opts.mk> 41553Srgrimes.include "../Makefile.inc" 51553Srgrimes 61553Srgrimes.PATH.c:${HOSTAPD_DISTDIR} \ 71553Srgrimes ${WPA_DISTDIR}/src/ap \ 81553Srgrimes ${WPA_DISTDIR}/src/eap_server \ 91553Srgrimes ${WPA_DISTDIR}/src/eap_peer \ 101553Srgrimes ${WPA_DISTDIR}/src/drivers \ 111553Srgrimes ${WPA_DISTDIR}/wpa_supplicant 121553Srgrimes 13121300SphkPROG= hostapd 141553SrgrimesSRCS= accounting.c \ 151553Srgrimes ap_config.c \ 161553Srgrimes ap_drv_ops.c \ 171553Srgrimes ap_list.c \ 181553Srgrimes ap_mlme.c \ 191553Srgrimes authsrv.c \ 201553Srgrimes base64.c \ 211553Srgrimes beacon.c \ 221553Srgrimes bss_load.c \ 231553Srgrimes chap.c \ 241553Srgrimes common.c \ 251553Srgrimes config_file.c \ 261553Srgrimes ctrl_iface.c \ 271553Srgrimes ctrl_iface_ap.c \ 281553Srgrimes ctrl_iface_common.c \ 291553Srgrimes dfs.c \ 30114601Sobrien driver_bsd.c \ 311553Srgrimes driver_common.c \ 3230027Scharnier drivers.c \ 331553Srgrimes drv_callbacks.c \ 341553Srgrimes eloop.c \ 351553Srgrimes gas.c \ 361553Srgrimes gas_serv.c \ 371553Srgrimes http_client.c \ 381553Srgrimes http_server.c \ 39114601Sobrien httpread.c \ 4030027Scharnier hostapd.c \ 41114601Sobrien hs20.c \ 42114601Sobrien hw_features.c \ 431553Srgrimes hw_features_common.c \ 441553Srgrimes ieee802_11.c \ 451553Srgrimes ieee802_11_auth.c \ 4630027Scharnier ieee802_11_common.c \ 471553Srgrimes ieee802_11_he.c \ 4830027Scharnier ieee802_11_ht.c \ 4930027Scharnier ieee802_11_shared.c \ 501553Srgrimes ieee802_11_vht.c \ 511553Srgrimes ieee802_1x.c \ 521553Srgrimes ip_addr.c \ 531553Srgrimes l2_packet_freebsd.c \ 5465882Sache main.c \ 55241777Sed mbo_ap.c \ 56241777Sed ms_funcs.c \ 5736670Speter neighbor_db.c \ 581553Srgrimes os_unix.c \ 591553Srgrimes pmksa_cache_auth.c \ 6099800Salfred preauth_auth.c \ 611553Srgrimes radius.c \ 621553Srgrimes radius_client.c \ 6399802Salfred radius_das.c \ 641553Srgrimes rrm.c \ 651553Srgrimes sta_info.c \ 661553Srgrimes tkip_countermeasures.c \ 673468Srgrimes upnp_xml.c \ 68122141Sphk utils.c \ 691553Srgrimes uuid.c \ 701553Srgrimes vlan.c \ 711553Srgrimes vlan_ifconfig.c \ 7260418Swollman vlan_init.c \ 73122141Sphk wmm.c \ 74122141Sphk wpa_auth.c \ 7560418Swollman wpa_auth_glue.c \ 76124389Sphk wpa_auth_ie.c \ 771553Srgrimes wpa_common.c \ 781553Srgrimes wpa_ctrl.c \ 791553Srgrimes wpa_debug.c \ 801553Srgrimes wpabuf.c \ 811553Srgrimes wps.c \ 821553Srgrimes wps_attr_build.c \ 831553Srgrimes wps_attr_process.c \ 841553Srgrimes wps_attr_parse.c \ 851553Srgrimes wps_common.c \ 861553Srgrimes wps_dev_attr.c \ 871553Srgrimes wps_enrollee.c \ 88122141Sphk wps_hostapd.c \ 89122141Sphk wps_registrar.c \ 90122141Sphk wps_upnp.c \ 91122141Sphk wps_upnp_ap.c \ 92122141Sphk wps_upnp_event.c \ 93122141Sphk wps_upnp_ssdp.c \ 94122141Sphk wps_upnp_web.c 95122141Sphk 96122141SphkMAN= hostapd.8 hostapd.conf.5 97122141Sphk 981553Srgrimes.if ${MK_EXAMPLES} != "no" 992860SrgrimesFILESDIR= ${SHAREDIR}/examples/hostapd 1002860Srgrimes.PATH: ${HOSTAPD_DISTDIR} 1012860SrgrimesFILES= hostapd.conf hostapd.eap_user hostapd.wpa_psk 1021553Srgrimes.endif 1031553Srgrimes 1041553SrgrimesCFLAGS+=-I${.CURDIR:H}/wpa_supplicant \ 1051553Srgrimes -I${WPA_DISTDIR}/src/eap_peer \ 1061553Srgrimes -DCONFIG_DRIVER_BSD \ 1071553Srgrimes -DCONFIG_DRIVER_RADIUS_ACL \ 1081553Srgrimes -DCONFIG_HS20 \ 1091553Srgrimes -DCONFIG_MBO \ 1101553Srgrimes -DCONFIG_IEEE80211N \ 1111553Srgrimes -DCONFIG_IEEE80211W \ 1121553Srgrimes -DCONFIG_IEEE80211AC \ 11365882Sache -DCONFIG_IEEE80211AX \ 11465882Sache -DCONFIG_INTERWORKING \ 11565882Sache -DCONFIG_PEERKEY \ 11665882Sache -DCONFIG_RSN_PREAUTH \ 1172860Srgrimes -DCONFIG_WPS \ 1182860Srgrimes -DCONFIG_WPS2 \ 1192860Srgrimes -DCONFIG_WPS_UPNP \ 12066357Sache -DHOSTAPD 12166357Sache.if ${MK_INET6} != "no" 12266357SacheCFLAGS+= -DCONFIG_IPV6 12366357Sache.endif 1241553Srgrimes#CFLAGS+= -g 1251553SrgrimesLIBADD+= pcap util 1261553Srgrimes 12763853Simp# User customizations for wpa_supplicant/hostapd build environment 12863853SimpCFLAGS+=${HOSTAPD_CFLAGS} 12963853Simp#DPADD+=${HOSTAPD_DPADD} 1301553SrgrimesLDADD+=${HOSTAPD_LDADD} 1311553Srgrimes#LDFLAGS+=${HOSTAPD_LDFLAGS} 1321553Srgrimes 1331553SrgrimesCFLAGS+=-DDPKCS12_FUNCS \ 1341553Srgrimes -DEAP_SERVER \ 135112214Srobert -DEAP_SERVER_GTC \ 1361553Srgrimes -DEAP_SERVER_IDENTITY \ 13730027Scharnier -DEAP_SERVER_MD5 \ 138112403Stobez -DEAP_SERVER_MSCHAPV2 \ 1393468Srgrimes -DEAP_SERVER_PEAP \ 1403468Srgrimes -DEAP_SERVER_TLS \ 1413468Srgrimes -DEAP_SERVER_TTLS \ 1423468Srgrimes -DEAP_SERVER_WSC \ 1431553Srgrimes -DEAP_TLS_FUNCS 1441553Srgrimes 1451553SrgrimesSRCS+= eap_server_gtc.c \ 146124389Sphk eap_common.c \ 147124389Sphk eap_peap_common.c \ 148124389Sphk eap_register.c \ 1491553Srgrimes eap_server.c \ 1501553Srgrimes eap_server_identity.c \ 1511553Srgrimes eap_server_md5.c \ 15260418Swollman eap_server_methods.c \ 15360418Swollman eap_server_mschapv2.c \ 15460418Swollman eap_server_peap.c \ 1551553Srgrimes eap_server_tls.c \ 1561553Srgrimes eap_server_tls_common.c \ 1571553Srgrimes eap_server_ttls.c \ 1581553Srgrimes eap_server_wsc.c \ 1591553Srgrimes eap_user_db.c \ 1601553Srgrimes eap_wsc_common.c \ 1611553Srgrimes eapol_auth_dump.c \ 1621553Srgrimes eapol_auth_sm.c 1631553SrgrimesTLS_FUNCS=y 1641553Srgrimes 1651553Srgrimes.if !empty(CFLAGS:M*-DCONFIG_WPS) 16630027ScharnierNEED_SIM_COMMON=y 1671553Srgrimes.endif 168173282Skeramida 16930027Scharnier.if !empty(CFLAGS:M*-DEAP_SERVER_AKA) 1701553SrgrimesSRCS+= eap_server_aka.c 1711553SrgrimesNEED_SIM_COMMON=y 1721553Srgrimes.endif 1731553Srgrimes 1741553Srgrimes.if !empty(CFLAGS:M*-DEAP_SERVER_SIM) 175122141SphkSRCS+= eap_server_sim.c 176122141SphkNEED_SIM_COMMON=y 177122141Sphk.endif 178122141Sphk 1793468Srgrimes.if defined(NEED_SIM_COMMON) 1803468SrgrimesSRCS+= eap_sim_common.c \ 1813468Srgrimes eap_sim_db.c 1821553SrgrimesNEED_FIPS186_2_PRF=y 1831553Srgrimes.endif 1841553Srgrimes 185121299Sphk.if !empty(CFLAGS:M*-DEAP_SERVER_GPSK) 1861553SrgrimesCFLAGS+=-DEAP_GPSK_SHA256 1871553SrgrimesSRCS+= eap_server_gpsk.c \ 188130094Sru eap_gpsk_common.c 18960418SwollmanNEED_AES_OMAC1=y 1901553Srgrimes.endif 1911553Srgrimes 192.if !empty(CFLAGS:M*-DEAP_SERVER_PAX) 193SRCS+= eap_server_pax.c \ 194 eap_pax_common.c 195.endif 196 197.if !empty(CFLAGS:M*-DEAP_SERVER_SAKE) 198SRCS+= eap_server_sake.c \ 199 eap_sake_common.c 200.endif 201 202.include "../Makefile.crypto" 203 204.include <bsd.prog.mk> 205