Pull ../Makefile.inc and override PATH.c.

Adapt to WPA supplicant 0.4.8.
Change the logic behind ENABLE_WPA_SUPPLICANT_EAPOL: it's now enabled by
default (EAP code has been reviewed by FreeBSD folks according to Sam Leffer).
This commit is contained in:
rpaulo 2006-04-12 15:35:34 +00:00
parent 6d70fc8f1b
commit 927a27fefc
1 changed files with 12 additions and 9 deletions

View File

@ -1,14 +1,16 @@
# $NetBSD: Makefile,v 1.4 2006/03/02 04:49:25 dyoung Exp $ # $NetBSD: Makefile,v 1.5 2006/04/12 15:35:34 rpaulo Exp $
.include "${.CURDIR}/../Makefile.inc"
PROG= wpa_supplicant PROG= wpa_supplicant
SRCS= config.c eloop.c common.c md5.c rc4.c sha1.c aes_wrap.c \ SRCS= aes_wrap.c base64.c common.c config.c config_file.c \
wpa_supplicant.c wpa.c \ ctrl_iface.c driver_netbsd.c drivers.c eloop.c events.c \
ctrl_iface.c l2_packet.c drivers.c driver_netbsd.c l2_packet.c main.c md5.c preauth.c rc4.c sha1.c wpa.c \
wpa_supplicant.c
MAN= wpa_supplicant.8 wpa_supplicant.conf.5 MAN= wpa_supplicant.8 wpa_supplicant.conf.5
# XXX for l2_packet.c .PATH.c: ${.CURDIR}/.. ${WPA_SUPPLICANT_DISTDIR}
.PATH.c: ${.CURDIR}/..
CPPFLAGS+= -I${.CURDIR} -I${WPA_SUPPLICANT_DISTDIR} CPPFLAGS+= -I${.CURDIR} -I${WPA_SUPPLICANT_DISTDIR}
CPPFLAGS+= -DCONFIG_DRIVER_BSD CPPFLAGS+= -DCONFIG_DRIVER_BSD
@ -17,15 +19,16 @@ CFLAGS+= -g
DPADD+= ${LIBPCAP} DPADD+= ${LIBPCAP}
LDADD+= -lpcap LDADD+= -lpcap
.if defined(ENABLE_WPA_SUPPLICANT_EAPOL) .if !defined(NO_ENABLE_WPA_SUPPLICANT_EAPOL)
SRCS+= eapol_sm.c eap.c SRCS+= eapol_sm.c eap.c
CPPFLAGS+= -DIEEE8021X_EAPOL CPPFLAGS+= -DIEEE8021X_EAPOL
.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH) .if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH)
CPPFLAGS+=-DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK \ CFLAGS+=-DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK \
-DEAP_TLV -DEAP_TLS_FUNCS -DEAP_TLV -DEAP_TLS_FUNCS
SRCS+= eap_tls.c eap_peap.c eap_mschapv2.c eap_leap.c eap_psk.c \ SRCS+= eap_tls.c eap_peap.c eap_mschapv2.c eap_leap.c eap_psk.c \
eap_tlv.c eap_tls_common.c tls_openssl.c ms_funcs.c crypto.c eap_psk_common.c eap_tlv.c eap_tls_common.c tls_openssl.c \
ms_funcs.c crypto.c
CPPFLAGS+=-DEAP_TTLS -DEAP_MD5 CPPFLAGS+=-DEAP_TTLS -DEAP_MD5
SRCS+= eap_ttls.c eap_md5.c SRCS+= eap_ttls.c eap_md5.c