]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/wpa/wpa_supplicant/Makefile
camdd(8): Fix the man page date
[FreeBSD/FreeBSD.git] / usr.sbin / wpa / wpa_supplicant / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.mk>
4
5 .include "../Makefile.inc"
6
7 .PATH.c:${WPA_SUPPLICANT_DISTDIR} \
8         ${WPA_DISTDIR}/src/eap_peer \
9         ${WPA_DISTDIR}/src/drivers
10
11 PACKAGE=        wpa
12 PROG=   wpa_supplicant
13
14 SRCS=   base64.c bitfield.c blacklist.c bss.c cli.c common.c \
15         config.c config_file.c \
16         ctrl_iface.c ctrl_iface_common.c ctrl_iface_unix.c \
17         dh_groups.c driver_bsd.c driver_common.c \
18         driver_ndis.c driver_wired.c driver_wired_common.c drivers.c \
19         eap_register.c eloop.c \
20         events.c gas.c gas_query.c \
21         http_client.c http_server.c \
22         httpread.c hw_features_common.c \
23         ieee802_11_common.c l2_packet_freebsd.c main.c \
24         notify.c offchannel.c op_classes.c os_unix.c pmksa_cache.c preauth.c \
25         rrm.c scan.c upnp_xml.c \
26         wmm_ac.c wpa.c wpa_common.c wpa_ctrl.c \
27         wpa_debug.c wpa_ft.c wpa_ie.c wpa_supplicant.c wpabuf.c wpas_glue.c \
28         Packet32.c
29
30 MAN=    wpa_supplicant.8 wpa_supplicant.conf.5
31
32 .if ${MK_EXAMPLES} != "no"
33 FILESDIR= ${SHAREDIR}/examples/etc
34 .PATH:  ${WPA_SUPPLICANT_DISTDIR}
35 FILES=  wpa_supplicant.conf
36 .endif
37
38 CFLAGS+=-DCONFIG_BACKEND_FILE \
39         -DCONFIG_DEBUG_SYSLOG \
40         -DCONFIG_DRIVER_BSD \
41         -DCONFIG_DRIVER_NDIS \
42         -DCONFIG_DRIVER_WIRED \
43         -DCONFIG_GAS \
44         -DCONFIG_IEEE80211R \
45         -DCONFIG_IEEE80211N \
46         -DCONFIG_IEEE80211W \
47         -DCONFIG_IEEE80211AC \
48         -DCONFIG_IEEE80211AX \
49         -DCONFIG_PEERKEY \
50         -DCONFIG_PRIVSEP \
51         -DCONFIG_SMARTCARD \
52         -DCONFIG_TERMINATE_ONLASTIF \
53         -DCONFIG_TLS=openssl \
54         -DCONFIG_WPS2 \
55         -DCONFIG_WPS_UPNP \
56         -DPKCS12_FUNCS \
57         -DCONFIG_MATCH_IFACE
58 #CFLAGS+= -g
59 LIBADD= pcap util
60
61 # User customizations to the wpa_supplicant build environment
62 CFLAGS+=${WPA_SUPPLICANT_CFLAGS}
63 #DPADD+=${WPA_SUPPLICANT_DPADD}
64 LDADD+=${WPA_SUPPLICANT_LDADD}
65 #LDFLAGS+=${WPA_SUPPLICANT_LDFLAGS}
66
67 .if ${MK_WPA_SUPPLICANT_EAPOL} != "no"
68 CFLAGS+=-DCONFIG_WPS \
69         -DCONFIG_HS20 \
70         -DCONFIG_INTERWORKING \
71         -DEAP_GTC \
72         -DEAP_LEAP \
73         -DEAP_MD5 \
74         -DEAP_MSCHAPv2 \
75         -DEAP_OTP \
76         -DEAP_PEAP \
77         -DEAP_PSK \
78         -DEAP_TLS \
79         -DEAP_TTLS \
80         -DEAP_WSC \
81         -DIEEE8021X_EAPOL
82 SRCS+=  chap.c \
83         eap.c \
84         eap_common.c \
85         eap_gtc.c \
86         eap_leap.c \
87         eap_md5.c \
88         eap_methods.c \
89         eap_mschapv2.c \
90         eap_otp.c \
91         eap_peap.c \
92         eap_peap_common.c \
93         eap_psk.c \
94         eap_psk_common.c \
95         eap_tls.c \
96         eap_tls_common.c \
97         eap_ttls.c \
98         eap_wsc.c \
99         eapol_supp_sm.c \
100         eap_wsc_common.c \
101         hs20_supplicant.c \
102         interworking.c \
103         ms_funcs.c \
104         mschapv2.c \
105         uuid.c \
106         wps.c wps_attr_build.c wps_attr_parse.c wps_attr_process.c \
107         wps_common.c wps_dev_attr.c wps_enrollee.c wps_registrar.c \
108         wps_supplicant.c wps_upnp.c wps_upnp_ap.c wps_upnp_event.c \
109         wps_upnp_ssdp.c wps_upnp_web.c
110 NEED_AES_EAX=y
111 NEED_AES_ENCBLOCK=y
112 NEED_AES_OMAC1=y
113 .endif
114 TLS_FUNCS=y
115
116 .if !empty(CFLAGS:M*-DEAP_AKA)
117 SRCS+=  eap_aka.c
118 NEED_SIM_COMMON=y
119 NEED_AES_CBC=y
120 .endif
121
122 .if !empty(CFLAGS:M*-DEAP_SIM)
123 SRCS+=  eap_sim.c
124 NEED_SIM_COMMON=y
125 NEED_AES_CBC=y
126 .endif
127
128 .if defined(NEED_SIM_COMMON)
129 SRCS+=  eap_sim_common.c
130 NEED_FIPS186_2_PRF=y
131 .endif
132
133 # PC/SC interface for smartcards (USIM, GSM SIM)
134 # GSM/UMTS authentication algorithm (for EAP-SIM/EAP-AKA)
135 # NB: requires devel/pcsc-lite
136 #
137 # WPA_SUPPLICANT_CFLAGS=-DEAP_AKA -DPCSC_FUNCS -I/usr/local/include/PCSC
138 # WPA_SUPPLICANT_LDADD=-L/usr/local/lib
139 #
140 .if !empty(CFLAGS:M*-DPCSC_FUNCS)
141 SRCS+=  pcsc_funcs.c
142 LIBADD+=        pcslite pthread
143 .endif
144
145 .if !empty(CFLAGS:M*-DEAP_GPSK)
146 CFLAGS+=-DEAP_GPSK_SHA256
147 SRCS+=  eap_gpsk.c \
148         eap_gpsk_common.c
149 NEED_AES_OMAC1=y
150 .endif
151
152 .if !empty(CFLAGS:M*-DEAP_PAX)
153 SRCS+=  eap_pax.c \
154         eap_pax_common.c
155 .endif
156
157 .if !empty(CFLAGS:M*-DEAP_SAKE)
158 SRCS+=  eap_sake.c \
159         eap_sake_common.c
160 .endif
161
162 .include "../Makefile.crypto"
163
164 .include <bsd.prog.mk>