summaryrefslogtreecommitdiffstats
path: root/usr.sbin/wpa/hostapd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/wpa/hostapd/Makefile')
-rw-r--r--usr.sbin/wpa/hostapd/Makefile82
1 files changed, 30 insertions, 52 deletions
diff --git a/usr.sbin/wpa/hostapd/Makefile b/usr.sbin/wpa/hostapd/Makefile
index 273c127..530cf02 100644
--- a/usr.sbin/wpa/hostapd/Makefile
+++ b/usr.sbin/wpa/hostapd/Makefile
@@ -6,55 +6,22 @@
${WPA_DISTDIR}/src/drivers
PROG= hostapd
-SRCS= accounting.c \
- aes-wrap.c \
- ap_config.c \
- ap_drv_ops.c \
- ap_mlme.c \
- authsrv.c \
- base64.c \
- chap.c \
- common.c \
- config_file.c \
- ctrl_iface.c \
- ctrl_iface_ap.c \
- drivers.c \
- drv_callbacks.c \
- eap_common.c \
- eap_peap_common.c \
- eap_register.c \
- eapol_auth_dump.c \
- eapol_auth_sm.c \
- eap_server.c \
- eap_server_methods.c \
- eloop.c \
- hostapd.c \
- ieee802_11_auth.c \
- ieee802_11_common.c \
- ieee802_1x.c \
- ip_addr.c \
- main.c \
- md5.c \
- ms_funcs.c \
- os_unix.c \
- peerkey_auth.c \
- pmksa_cache_auth.c \
- preauth_auth.c \
- radius.c \
- radius_client.c \
- sha1-pbkdf2.c \
- sha1.c \
- sta_info.c \
- tkip_countermeasures.c \
- utils.c \
- vlan_init.c \
- wpa_auth.c \
- wpa_auth_glue.c \
- wpa_auth_ie.c \
- wpa_common.c \
- wpa_debug.c \
- wpabuf.c
-SRCS+= l2_packet_freebsd.c driver_freebsd.c
+SRCS= accounting.c aes-wrap.c ap_config.c ap_drv_ops.c ap_mlme.c authsrv.c \
+ base64.c beacon.c chap.c common.c config_file.c ctrl_iface.c \
+ ctrl_iface_ap.c driver_common.c l2_packet_freebsd.c driver_bsd.c \
+ drivers.c drv_callbacks.c eap_common.c eap_peap_common.c \
+ eap_register.c eap_server.c eap_server_methods.c eap_user_db.c \
+ eapol_auth_dump.c eapol_auth_sm.c eloop.c gas.c gas_serv.c hostapd.c \
+ hs20.c http_client.c http_server.c httpread.c ieee802_11_auth.c \
+ ieee802_11_common.c ieee802_11_shared.c ieee802_1x.c ip_addr.c \
+ main.c md5.c ms_funcs.c os_unix.c peerkey_auth.c pmksa_cache_auth.c \
+ preauth_auth.c radius.c radius_client.c radius_das.c sta_info.c \
+ tkip_countermeasures.c upnp_xml.c utils.c uuid.c vlan_init.c \
+ wpa_auth.c wpa_auth_glue.c wpa_auth_ie.c wpa_common.c wpa_debug.c \
+ wpabuf.c wps.c wps_attr_build.c wps_attr_parse.c wps_attr_process.c \
+ wps_common.c wps_dev_attr.c wps_enrollee.c wps_hostapd.c \
+ wps_registrar.c wps_upnp.c wps_upnp_ap.c wps_upnp_event.c \
+ wps_upnp_ssdp.c wps_upnp_web.c
MAN= hostapd.8 hostapd.conf.5
@@ -68,7 +35,12 @@ CFLAGS+=-DCONFIG_DRIVER_BSD \
-DHOSTAPD \
-DCONFIG_DRIVER_RADIUS_ACL \
-DCONFIG_RSN_PREAUTH \
- -DCONFIG_PEERKEY
+ -DCONFIG_PEERKEY \
+ -DCONFIG_WPS \
+ -DCONFIG_WPS2 \
+ -DCONFIG_WPS_UPNP \
+ -DCONFIG_INTERWORKING \
+ -DCONFIG_HS20
.if ${MK_INET6} != "no"
CFLAGS+= -DCONFIG_IPV6
.endif
@@ -92,6 +64,7 @@ CFLAGS+=-DDPKCS12_FUNCS \
-DEAP_SERVER_TLS \
-DEAP_SERVER_TTLS \
-DEAP_TLS_FUNCS \
+ -DEAP_SERVER_WSC \
-DCONFIG_NO_DUMP_STATE
SRCS+= dump_state.c \
eap_server_gtc.c \
@@ -101,9 +74,14 @@ SRCS+= dump_state.c \
eap_server_peap.c \
eap_server_tls.c \
eap_server_tls_common.c \
- eap_server_ttls.c
+ eap_server_ttls.c \
+ eap_server_wsc.c \
+ eap_wsc_common.c
TLS_FUNCS=y
-NEED_SHA256=y
+
+.if !empty(CFLAGS:M*-DCONFIG_WPS)
+NEED_SIM_COMMON=y
+.endif
.if !empty(CFLAGS:M*-DEAP_SERVER_AKA)
SRCS+= eap_server_aka.c
OpenPOWER on IntegriCloud