1 # $NetBSD: Makefile,v 1.10 2008/10/18 14:40:48 scw Exp $
3 .
include "${.CURDIR}/../Makefile.inc"
6 SRCS
= aes.c aes_wrap.c base64.c blacklist.c common.c config.c config_file.c \
7 ctrl_iface.c ctrl_iface_unix.c driver_bsd.c drivers.c eap_common.c \
8 eap_methods.c eapol_supp_sm.c eloop.c events.c l2_packet_freebsd.c \
9 main.c md5.c os_unix.c pmksa_cache.c preauth.c rc4.c scan.c \
10 scan_helpers.c sha1.c wpa.c wpa_common.c wpa_debug.c wpa_ie.c \
11 wpa_supplicant.c wpabuf.c wpas_glue.c
13 MAN
= wpa_supplicant
.8 wpa_supplicant.conf
.5
16 ${WPA_SUPPLICANT_DISTDIR} \
17 ${WPA_DISTDIR}/src
/drivers \
18 ${WPA_DISTDIR}/src
/eap_peer \
19 ${WPA_DISTDIR}/src
/rsn_supp
22 -I
${WPA_SUPPLICANT_DISTDIR} \
23 -I
${WPA_DISTDIR}/src
/drivers \
24 -I
${WPA_DISTDIR}/src
/rsn_supp
26 CPPFLAGS
+= -DCONFIG_DRIVER_BSD
27 CPPFLAGS
+= -DCONFIG_CTRL_IFACE
31 .if
!defined
(NO_ENABLE_WPA_SUPPLICANT_EAPOL
)
33 CPPFLAGS
+= -DIEEE8021X_EAPOL
35 .if
!defined
(NO_CRYPT
) && !defined
(NO_OPENSSL
) && !defined
(RELEASE_CRUNCH
)
36 CPPFLAGS
+=-DEAP_TLS
-DEAP_PEAP
-DEAP_MSCHAPv2
-DEAP_LEAP
-DEAP_PSK \
37 -DEAP_TLV
-DEAP_TLS_FUNCS
38 SRCS
+= chap.c crypto_openssl.c eap_leap.c eap_mschapv2.c \
39 eap_peap.c eap_psk.c eap_psk_common.c eap_tls.c eap_tls_common.c \
40 mschapv2.c ms_funcs.c tls_openssl.c eap_peap_common.c
42 CPPFLAGS
+=-DEAP_TTLS
-DEAP_MD5
43 SRCS
+= eap_ttls.c eap_md5.c
45 # NB: requires patch to openssl
46 #CPPFLAGS+= -DEAP_FAST
49 DPADD
+= ${LIBSSL} ${LIBCRYPTO} ${LIBDES}
50 LDADD
+= -lssl
-lcrypto
-ldes
52 CPPFLAGS
+= -DINTERNAL_AES
-DINTERNAL_MD5
-DINTERNAL_SHA1
58 .
include <bsd.prog.mk
>