1 # $NetBSD: Makefile,v 1.2 2008/01/26 21:50:21 christos Exp $
3 .
include "${.CURDIR}/../Makefile.inc"
7 SRCS
= accounting.c aes.c aes_wrap.c ap_list.c beacon.c common.c \
8 config.c ctrl_iface.c driver_bsd.c drivers.c eap.c eap_common.c \
9 eap_identity.c eap_methods.c eapol_sm.c eloop.c hostapd.c \
10 hw_features.c ieee802_11.c ieee802_11_auth.c ieee802_11h.c \
11 ieee802_1x.c ip_addr.c l2_packet_freebsd.c md5.c mlme.c os_unix.c \
12 pmksa_cache.c radius.c radius_client.c rc4.c sha1.c sta_info.c \
13 vlan_init.c wme.c wpa.c wpa_auth_ie.c wpa_common.c wpa_debug.c \
18 ${WPA_DISTDIR}/src
/eap_server \
19 ${WPA_DISTDIR}/src
/radius \
20 ${.CURDIR
}/..
/wpa_supplicant
22 MAN
= hostapd
.8 hostapd.conf
.5
24 CPPFLAGS
+= -I
${.CURDIR
} -I
${HOSTAPD_DISTDIR}
25 CPPFLAGS
+= -DCONFIG_DRIVER_BSD
29 .if
!defined
(NO_CRYPT
) && !defined
(NO_OPENSSL
) && !defined
(RELEASE_CRUNCH
)
30 CPPFLAGS
+= -DEAP_TLS
-DEAP_PEAP
-DEAP_MSCHAPv2
-DEAP_PSK \
31 -DEAP_TLS_FUNCS
-DEAP_TLS_OPENSSL
32 SRCS
+= crypto_openssl.c
33 SRCS
+= eap_tls.c eap_peap.c eap_peap_common.c eap_mschapv2.c \
34 eap_psk.c eap_psk_common.c eap_tls_common.c tls_openssl.c \
37 CPPFLAGS
+= -DEAP_TTLS
-DEAP_MD5
38 SRCS
+= eap_ttls.c eap_md5.c
43 CPPFLAGS
+= -DEAP_AKA
-DEAP_SIM
44 SRCS
+= eap_aka.c eap_sim.c eap_sim_common.c eap_sim_db.c
46 CPPFLAGS
+= -DEAP_GPSK
-DEAP_GPSK_SHA256
-DINTERNAL_SHA256
47 SRCS
+= eap_gpsk.c eap_gpsk_common.c sha256.c
50 SRCS
+= eap_pax.c eap_pax_common.c
53 SRCS
+= eap_sake.c eap_sake_common.c
55 DPADD
+= ${LIBSSL} ${LIBCRYPTO} ${LIBDES}
56 LDADD
+= -lssl
-lcrypto
-ldes
58 CPPFLAGS
+= -DINTERNAL_AES
-DINTERNAL_SHA1
-DINTERNAL_MD5
62 .
include <bsd.prog.mk
>