wpa_supplicant/hostapd: Added some missing patches.
[dragonfly.git] / usr.sbin / 802_11 / wpa_supplicant / Makefile
CommitLineData
a69e7202
SZ
1# $FreeBSD: src/usr.sbin/wpa/wpa_supplicant/Makefile,v 1.9 2007/07/11 16:04:08 sam Exp $
2# $DragonFly: src/usr.sbin/802_11/wpa_supplicant/Makefile,v 1.2 2007/08/07 11:25:36 sephe Exp $
da211034 3
8a529442
JL
4.include "${.CURDIR}/../Makefile.inc"
5
6.PATH.c: ${WPA_DISTDIR}/wpa_supplicant \
7 ${WPA_DISTDIR}/src/drivers \
8 ${WPA_DISTDIR}/src/eap_peer \
9 ${WPA_DISTDIR}/src/rsn_supp
da211034
SZ
10
11PROG= wpa_supplicant
8a529442
JL
12SRCS= aes.c aes_wrap.c blacklist.c common.c config.c ctrl_iface.c \
13 ctrl_iface_unix.c drivers.c eloop.c events.c l2_packet.c main.c \
14 md5.c preauth.c pmksa_cache.c rc4.c scan.c scan_helpers.c sha1.c \
15 wpa.c wpa_common.c wpa_debug.c wpa_ie.c wpa_supplicant.c \
16 wpabuf.c wpas_glue.c \
17 driver_ndis.c Packet32.c \
18 driver_wired.c \
19 driver_dragonfly.c os_unix.c
da211034
SZ
20
21MAN= wpa_supplicant.8 wpa_supplicant.conf.5
22
8a529442
JL
23CFLAGS+= -I${.CURDIR} -I${WPA_DISTDIR}
24CFLAGS+= -I${WPA_DISTDIR}/src/drivers
25CFLAGS+= -I${WPA_DISTDIR}/src/rsn_supp
da211034
SZ
26CFLAGS+= -DCONFIG_DRIVER_BSD
27CFLAGS+= -DCONFIG_DRIVER_NDIS
a69e7202 28CFLAGS+= -DCONFIG_DRIVER_WIRED
a69e7202 29CFLAGS+= -DCONFIG_TERMINATE_ONLASTIF
8a529442 30CFLAGS+= -g
da211034
SZ
31DPADD+= ${LIBPCAP}
32LDADD+= -lpcap
33
34# NB: we only support wpa_supplicant.conf file
35SRCS+= config_file.c base64.c
36CFLAGS+=-DCONFIG_BACKEND_FILE
37
38.if !defined(NO_WPA_SUPPLICANT_EAPOL)
8a529442
JL
39.PATH: ${.CURDIR}/.. ${WPA_DISTDIR}/src/eapol_supp
40.PATH: ${.CURDIR}/.. ${WPA_DISTDIR}/src/eap_peer
41SRCS+= eapol_supp_sm.c eap.c eap_common.c eap_methods.c
da211034
SZ
42CFLAGS+= -DIEEE8021X_EAPOL
43
97c14704 44.if !defined(NO_CRYPT) && !defined(NO_OPENSSL)
8a529442
JL
45.PATH: ${.CURDIR}/.. ${WPA_DISTDIR}/src/eap_common
46.PATH: ${.CURDIR}/.. ${WPA_DISTDIR}/eap_peer/
da211034
SZ
47CFLAGS+=-DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_LEAP -DEAP_PSK \
48 -DEAP_TLV -DEAP_TLS_FUNCS
8a529442
JL
49SRCS+= chap.c crypto_openssl.c \
50 eap_leap.c \
51 eap_mschapv2.c \
52 eap_peap.c eap_peap_common.c \
da211034 53 eap_psk.c eap_psk_common.c \
8a529442
JL
54 eap_tls.c eap_tls_common.c \
55 mschapv2.c ms_funcs.c tls_openssl.c
da211034
SZ
56
57CFLAGS+=-DEAP_TTLS -DEAP_MD5
58SRCS+= eap_ttls.c eap_md5.c
59
8a529442
JL
60.if !empty(CFLAGS:M*-DEAP_GTC)
61SRCS+= eap_gtc.c
62.endif
63
da211034
SZ
64# NB: requires patch to openssl
65#CFLAGS+= -DEAP_FAST
66#SRCS+= eap_fast.c
67
a69e7202 68DPADD+= ${LIBSSL} ${LIBCRYPTO}
da211034
SZ
69LDADD+= -lssl -lcrypto
70.else
71SRCS+= tls_none.c
72.endif
73
74.endif
75
76.include <bsd.prog.mk>