Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 1 | BINALL=wpa_supplicant wpa_cli |
| 2 | |
| 3 | ifndef CONFIG_NO_WPA_PASSPHRASE |
| 4 | BINALL += wpa_passphrase |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 5 | endif |
| 6 | |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 7 | ALL = $(BINALL) |
| 8 | ALL += systemd/wpa_supplicant.service |
| 9 | ALL += systemd/wpa_supplicant@.service |
| 10 | ALL += systemd/wpa_supplicant-nl80211@.service |
| 11 | ALL += systemd/wpa_supplicant-wired@.service |
| 12 | ALL += dbus/fi.w1.wpa_supplicant1.service |
| 13 | ifdef CONFIG_BUILD_WPA_CLIENT_SO |
| 14 | ALL += libwpa_client.so |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 15 | endif |
| 16 | |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 17 | EXTRA_TARGETS=dynamic_eap_methods |
| 18 | |
| 19 | CONFIG_FILE=.config |
| 20 | include ../src/build.rules |
| 21 | |
Dmitry Shmidt | 014a3ff | 2015-12-28 13:27:49 -0800 | [diff] [blame] | 22 | ifdef LIBS |
| 23 | # If LIBS is set with some global build system defaults, clone those for |
| 24 | # LIBS_c and LIBS_p to cover wpa_passphrase and wpa_cli as well. |
| 25 | ifndef LIBS_c |
| 26 | LIBS_c := $(LIBS) |
| 27 | endif |
| 28 | ifndef LIBS_p |
| 29 | LIBS_p := $(LIBS) |
| 30 | endif |
| 31 | endif |
| 32 | |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 33 | export LIBDIR ?= /usr/local/lib |
| 34 | export INCDIR ?= /usr/local/include |
| 35 | export BINDIR ?= /usr/local/sbin |
Dmitry Shmidt | c55524a | 2011-07-07 11:18:38 -0700 | [diff] [blame] | 36 | PKG_CONFIG ?= pkg-config |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 37 | |
Dmitry Shmidt | 216983b | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 38 | CFLAGS += $(EXTRA_CFLAGS) |
Dmitry Shmidt | fb79edc | 2014-01-10 10:45:54 -0800 | [diff] [blame] | 39 | CFLAGS += -I$(abspath ../src) |
| 40 | CFLAGS += -I$(abspath ../src/utils) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 41 | |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 42 | ifndef CONFIG_NO_GITVER |
| 43 | # Add VERSION_STR postfix for builds from a git repository |
| 44 | ifeq ($(wildcard ../.git),../.git) |
| 45 | GITVER := $(shell git describe --dirty=+) |
| 46 | ifneq ($(GITVER),) |
| 47 | CFLAGS += -DGIT_VERSION_STR_POSTFIX=\"-$(GITVER)\" |
| 48 | endif |
| 49 | endif |
| 50 | endif |
| 51 | |
Dmitry Shmidt | fb79edc | 2014-01-10 10:45:54 -0800 | [diff] [blame] | 52 | ifdef CONFIG_TESTING_OPTIONS |
| 53 | CFLAGS += -DCONFIG_TESTING_OPTIONS |
| 54 | CONFIG_WPS_TESTING=y |
| 55 | CONFIG_TDLS_TESTING=y |
| 56 | endif |
| 57 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 58 | mkconfig: |
| 59 | @if [ -f .config ]; then \ |
| 60 | echo '.config exists - did not replace it'; \ |
| 61 | exit 1; \ |
| 62 | fi |
| 63 | echo CONFIG_DRIVER_HOSTAP=y >> .config |
| 64 | echo CONFIG_DRIVER_WEXT=y >> .config |
| 65 | |
Dmitry Shmidt | c5ec7f5 | 2012-03-06 16:33:24 -0800 | [diff] [blame] | 66 | $(DESTDIR)$(BINDIR)/%: % |
| 67 | install -D $(<) $(@) |
| 68 | |
| 69 | install: $(addprefix $(DESTDIR)$(BINDIR)/,$(BINALL)) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 70 | $(MAKE) -C ../src install |
Dmitry Shmidt | b1e5210 | 2015-05-29 12:36:29 -0700 | [diff] [blame] | 71 | ifdef CONFIG_BUILD_WPA_CLIENT_SO |
| 72 | install -m 0644 -D libwpa_client.so $(DESTDIR)/$(LIBDIR)/libwpa_client.so |
| 73 | install -m 0644 -D ../src/common/wpa_ctrl.h $(DESTDIR)/$(INCDIR)/wpa_ctrl.h |
| 74 | endif |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 75 | if ls eap_*.so >/dev/null 2>&1; then \ |
| 76 | install -d $(DESTDIR)$(LIBDIR)/wpa_supplicant && \ |
| 77 | cp *.so $(DESTDIR)$(LIBDIR)/wpa_supplicant \ |
| 78 | ; fi |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 79 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 80 | ifdef CONFIG_FIPS |
| 81 | CONFIG_NO_RANDOM_POOL= |
| 82 | CONFIG_OPENSSL_CMAC=y |
| 83 | endif |
| 84 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 85 | OBJS = config.o |
| 86 | OBJS += notify.o |
| 87 | OBJS += bss.o |
| 88 | OBJS += eap_register.o |
| 89 | OBJS += ../src/utils/common.o |
Hai Shalom | 6084025 | 2021-02-19 19:02:11 -0800 | [diff] [blame] | 90 | OBJS += ../src/utils/config.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 91 | OBJS += ../src/utils/wpa_debug.o |
| 92 | OBJS += ../src/utils/wpabuf.o |
Dmitry Shmidt | 2933359 | 2017-01-09 12:27:11 -0800 | [diff] [blame] | 93 | OBJS += ../src/utils/bitfield.o |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 94 | OBJS += ../src/utils/ip_addr.o |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 95 | OBJS += ../src/utils/crc32.o |
Dmitry Shmidt | 2933359 | 2017-01-09 12:27:11 -0800 | [diff] [blame] | 96 | OBJS += op_classes.o |
| 97 | OBJS += rrm.o |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 98 | OBJS += twt.o |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 99 | OBJS += robust_av.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 100 | OBJS_p = wpa_passphrase.o |
| 101 | OBJS_p += ../src/utils/common.o |
| 102 | OBJS_p += ../src/utils/wpa_debug.o |
| 103 | OBJS_p += ../src/utils/wpabuf.o |
| 104 | OBJS_c = wpa_cli.o ../src/common/wpa_ctrl.o |
| 105 | OBJS_c += ../src/utils/wpa_debug.o |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 106 | OBJS_c += ../src/utils/common.o |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 107 | OBJS_c += ../src/common/cli.o |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 108 | OBJS += wmm_ac.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 109 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 110 | ifndef CONFIG_OS |
| 111 | ifdef CONFIG_NATIVE_WINDOWS |
| 112 | CONFIG_OS=win32 |
| 113 | else |
| 114 | CONFIG_OS=unix |
| 115 | endif |
| 116 | endif |
| 117 | |
| 118 | ifeq ($(CONFIG_OS), internal) |
| 119 | CFLAGS += -DOS_NO_C_LIB_DEFINES |
| 120 | endif |
| 121 | |
| 122 | OBJS += ../src/utils/os_$(CONFIG_OS).o |
| 123 | OBJS_p += ../src/utils/os_$(CONFIG_OS).o |
| 124 | OBJS_c += ../src/utils/os_$(CONFIG_OS).o |
| 125 | |
| 126 | ifdef CONFIG_WPA_TRACE |
| 127 | CFLAGS += -DWPA_TRACE |
| 128 | OBJS += ../src/utils/trace.o |
| 129 | OBJS_p += ../src/utils/trace.o |
| 130 | OBJS_c += ../src/utils/trace.o |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 131 | OBJS_priv += ../src/utils/trace.o |
Dmitry Shmidt | 7f65602 | 2015-02-25 14:36:37 -0800 | [diff] [blame] | 132 | LIBCTRL += ../src/utils/trace.o |
Dmitry Shmidt | b1e5210 | 2015-05-29 12:36:29 -0700 | [diff] [blame] | 133 | LIBCTRLSO += ../src/utils/trace.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 134 | LDFLAGS += -rdynamic |
| 135 | CFLAGS += -funwind-tables |
| 136 | ifdef CONFIG_WPA_TRACE_BFD |
Dmitry Shmidt | ec58b16 | 2014-02-19 12:44:18 -0800 | [diff] [blame] | 137 | CFLAGS += -DPACKAGE="wpa_supplicant" -DWPA_TRACE_BFD |
Dmitry Shmidt | 13ca8d8 | 2014-02-20 10:18:40 -0800 | [diff] [blame] | 138 | LIBS += -lbfd -ldl -liberty -lz |
| 139 | LIBS_p += -lbfd -ldl -liberty -lz |
| 140 | LIBS_c += -lbfd -ldl -liberty -lz |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 141 | endif |
| 142 | endif |
| 143 | |
| 144 | ifndef CONFIG_ELOOP |
| 145 | CONFIG_ELOOP=eloop |
| 146 | endif |
| 147 | OBJS += ../src/utils/$(CONFIG_ELOOP).o |
| 148 | OBJS_c += ../src/utils/$(CONFIG_ELOOP).o |
| 149 | |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 150 | ifndef CONFIG_OSX |
Dmitry Shmidt | fa3fc4a | 2013-11-21 13:34:38 -0800 | [diff] [blame] | 151 | ifeq ($(CONFIG_ELOOP), eloop) |
| 152 | # Using glibc < 2.17 requires -lrt for clock_gettime() |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 153 | # OS X has an alternate implementation |
Dmitry Shmidt | fa3fc4a | 2013-11-21 13:34:38 -0800 | [diff] [blame] | 154 | LIBS += -lrt |
| 155 | LIBS_c += -lrt |
| 156 | LIBS_p += -lrt |
| 157 | endif |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 158 | endif |
Dmitry Shmidt | fa3fc4a | 2013-11-21 13:34:38 -0800 | [diff] [blame] | 159 | |
Dmitry Shmidt | c5ec7f5 | 2012-03-06 16:33:24 -0800 | [diff] [blame] | 160 | ifdef CONFIG_ELOOP_POLL |
| 161 | CFLAGS += -DCONFIG_ELOOP_POLL |
| 162 | endif |
| 163 | |
Dmitry Shmidt | 50b691d | 2014-05-21 14:01:45 -0700 | [diff] [blame] | 164 | ifdef CONFIG_ELOOP_EPOLL |
| 165 | CFLAGS += -DCONFIG_ELOOP_EPOLL |
| 166 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 167 | |
Dmitry Shmidt | b97e428 | 2016-02-08 10:16:07 -0800 | [diff] [blame] | 168 | ifdef CONFIG_ELOOP_KQUEUE |
| 169 | CFLAGS += -DCONFIG_ELOOP_KQUEUE |
| 170 | endif |
| 171 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 172 | ifdef CONFIG_EAPOL_TEST |
| 173 | CFLAGS += -Werror -DEAPOL_TEST |
| 174 | endif |
| 175 | |
Dmitry Shmidt | 01904cf | 2013-12-05 11:08:35 -0800 | [diff] [blame] | 176 | ifdef CONFIG_CODE_COVERAGE |
| 177 | CFLAGS += -O0 -fprofile-arcs -ftest-coverage |
| 178 | LIBS += -lgcov |
| 179 | LIBS_c += -lgcov |
| 180 | LIBS_p += -lgcov |
| 181 | endif |
| 182 | |
Dmitry Shmidt | c5ec7f5 | 2012-03-06 16:33:24 -0800 | [diff] [blame] | 183 | ifdef CONFIG_HT_OVERRIDES |
| 184 | CFLAGS += -DCONFIG_HT_OVERRIDES |
| 185 | endif |
| 186 | |
Dmitry Shmidt | 2f02319 | 2013-03-12 12:44:17 -0700 | [diff] [blame] | 187 | ifdef CONFIG_VHT_OVERRIDES |
| 188 | CFLAGS += -DCONFIG_VHT_OVERRIDES |
| 189 | endif |
| 190 | |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 191 | ifdef CONFIG_HE_OVERRIDES |
| 192 | CFLAGS += -DCONFIG_HE_OVERRIDES |
| 193 | endif |
| 194 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 195 | ifndef CONFIG_BACKEND |
| 196 | CONFIG_BACKEND=file |
| 197 | endif |
| 198 | |
| 199 | ifeq ($(CONFIG_BACKEND), file) |
| 200 | OBJS += config_file.o |
| 201 | ifndef CONFIG_NO_CONFIG_BLOBS |
| 202 | NEED_BASE64=y |
| 203 | endif |
| 204 | CFLAGS += -DCONFIG_BACKEND_FILE |
| 205 | endif |
| 206 | |
| 207 | ifeq ($(CONFIG_BACKEND), winreg) |
| 208 | OBJS += config_winreg.o |
| 209 | endif |
| 210 | |
| 211 | ifeq ($(CONFIG_BACKEND), none) |
| 212 | OBJS += config_none.o |
| 213 | endif |
| 214 | |
| 215 | ifdef CONFIG_NO_CONFIG_WRITE |
| 216 | CFLAGS += -DCONFIG_NO_CONFIG_WRITE |
| 217 | endif |
| 218 | |
| 219 | ifdef CONFIG_NO_CONFIG_BLOBS |
| 220 | CFLAGS += -DCONFIG_NO_CONFIG_BLOBS |
| 221 | endif |
| 222 | |
| 223 | ifdef CONFIG_NO_SCAN_PROCESSING |
| 224 | CFLAGS += -DCONFIG_NO_SCAN_PROCESSING |
| 225 | endif |
| 226 | |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 227 | ifdef CONFIG_SUITEB |
| 228 | CFLAGS += -DCONFIG_SUITEB |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 229 | endif |
| 230 | |
Dmitry Shmidt | 807291d | 2015-01-27 13:40:23 -0800 | [diff] [blame] | 231 | ifdef CONFIG_SUITEB192 |
| 232 | CFLAGS += -DCONFIG_SUITEB192 |
| 233 | NEED_SHA384=y |
| 234 | endif |
| 235 | |
Hai Shalom | 74f70d4 | 2019-02-11 14:42:39 -0800 | [diff] [blame] | 236 | ifdef CONFIG_OCV |
| 237 | CFLAGS += -DCONFIG_OCV |
| 238 | OBJS += ../src/common/ocv.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 239 | endif |
| 240 | |
| 241 | ifdef CONFIG_IEEE80211R |
| 242 | CFLAGS += -DCONFIG_IEEE80211R |
| 243 | OBJS += ../src/rsn_supp/wpa_ft.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 244 | endif |
| 245 | |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 246 | ifdef CONFIG_MESH |
| 247 | NEED_80211_COMMON=y |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 248 | NEED_AES_SIV=y |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 249 | CONFIG_SAE=y |
| 250 | CONFIG_AP=y |
| 251 | CFLAGS += -DCONFIG_MESH |
| 252 | OBJS += mesh.o |
| 253 | OBJS += mesh_mpm.o |
| 254 | OBJS += mesh_rsn.o |
| 255 | endif |
| 256 | |
Dmitry Shmidt | d5e4923 | 2012-12-03 15:08:10 -0800 | [diff] [blame] | 257 | ifdef CONFIG_SAE |
| 258 | CFLAGS += -DCONFIG_SAE |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 259 | OBJS += ../src/common/sae.o |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 260 | ifdef CONFIG_SAE_PK |
| 261 | CFLAGS += -DCONFIG_SAE_PK |
| 262 | OBJS += ../src/common/sae_pk.o |
| 263 | endif |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 264 | NEED_ECC=y |
| 265 | NEED_DH_GROUPS=y |
Hai Shalom | b755a2a | 2020-04-23 21:49:02 -0700 | [diff] [blame] | 266 | NEED_HMAC_SHA256_KDF=y |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 267 | NEED_DRAGONFLY=y |
Ahmed ElArabawy | 0ff61c5 | 2019-12-26 12:38:39 -0800 | [diff] [blame] | 268 | ifdef CONFIG_TESTING_OPTIONS |
| 269 | NEED_DH_GROUPS_ALL=y |
| 270 | endif |
Dmitry Shmidt | d5e4923 | 2012-12-03 15:08:10 -0800 | [diff] [blame] | 271 | endif |
| 272 | |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 273 | ifdef CONFIG_DPP |
| 274 | CFLAGS += -DCONFIG_DPP |
| 275 | OBJS += ../src/common/dpp.o |
Hai Shalom | 4fbc08f | 2020-05-18 12:37:00 -0700 | [diff] [blame] | 276 | OBJS += ../src/common/dpp_auth.o |
| 277 | OBJS += ../src/common/dpp_backup.o |
| 278 | OBJS += ../src/common/dpp_crypto.o |
| 279 | OBJS += ../src/common/dpp_pkex.o |
| 280 | OBJS += ../src/common/dpp_reconfig.o |
| 281 | OBJS += ../src/common/dpp_tcp.o |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 282 | OBJS += dpp_supplicant.o |
| 283 | NEED_AES_SIV=y |
| 284 | NEED_HMAC_SHA256_KDF=y |
| 285 | NEED_HMAC_SHA384_KDF=y |
| 286 | NEED_HMAC_SHA512_KDF=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 287 | NEED_SHA384=y |
| 288 | NEED_SHA512=y |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 289 | NEED_ECC=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 290 | NEED_JSON=y |
| 291 | NEED_GAS_SERVER=y |
| 292 | NEED_BASE64=y |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 293 | NEED_ASN1=y |
Hai Shalom | 021b0b5 | 2019-04-10 11:17:58 -0700 | [diff] [blame] | 294 | ifdef CONFIG_DPP2 |
| 295 | CFLAGS += -DCONFIG_DPP2 |
| 296 | endif |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 297 | ifdef CONFIG_DPP3 |
| 298 | CFLAGS += -DCONFIG_DPP3 |
| 299 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 300 | endif |
| 301 | |
| 302 | ifdef CONFIG_OWE |
| 303 | CFLAGS += -DCONFIG_OWE |
| 304 | NEED_ECC=y |
| 305 | NEED_HMAC_SHA256_KDF=y |
| 306 | NEED_HMAC_SHA384_KDF=y |
| 307 | NEED_HMAC_SHA512_KDF=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 308 | NEED_SHA384=y |
| 309 | NEED_SHA512=y |
| 310 | endif |
| 311 | |
Jimmy Chen | caaac07 | 2019-09-16 16:36:06 +0800 | [diff] [blame] | 312 | ifdef CONFIG_WAPI_INTERFACE |
| 313 | L_CFLAGS += -DCONFIG_WAPI_INTERFACE |
| 314 | endif |
| 315 | |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame] | 316 | ifdef CONFIG_FILS |
| 317 | CFLAGS += -DCONFIG_FILS |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame] | 318 | NEED_SHA384=y |
| 319 | NEED_AES_SIV=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 320 | ifdef CONFIG_FILS_SK_PFS |
| 321 | CFLAGS += -DCONFIG_FILS_SK_PFS |
| 322 | NEED_ECC=y |
| 323 | endif |
| 324 | endif |
| 325 | |
| 326 | ifdef CONFIG_MBO |
| 327 | CONFIG_WNM=y |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame] | 328 | endif |
| 329 | |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 330 | ifdef CONFIG_WNM |
| 331 | CFLAGS += -DCONFIG_WNM |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 332 | OBJS += wnm_sta.o |
| 333 | endif |
| 334 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 335 | ifdef CONFIG_TDLS |
| 336 | CFLAGS += -DCONFIG_TDLS |
| 337 | OBJS += ../src/rsn_supp/tdls.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 338 | endif |
| 339 | |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 340 | ifdef CONFIG_TDLS_TESTING |
| 341 | CFLAGS += -DCONFIG_TDLS_TESTING |
| 342 | endif |
| 343 | |
Dmitry Shmidt | 2933359 | 2017-01-09 12:27:11 -0800 | [diff] [blame] | 344 | ifdef CONFIG_PMKSA_CACHE_EXTERNAL |
| 345 | CFLAGS += -DCONFIG_PMKSA_CACHE_EXTERNAL |
| 346 | endif |
| 347 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 348 | ifndef CONFIG_NO_WPA |
| 349 | OBJS += ../src/rsn_supp/wpa.o |
| 350 | OBJS += ../src/rsn_supp/preauth.o |
| 351 | OBJS += ../src/rsn_supp/pmksa_cache.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 352 | OBJS += ../src/rsn_supp/wpa_ie.o |
| 353 | OBJS += ../src/common/wpa_common.o |
| 354 | NEED_AES=y |
| 355 | NEED_SHA1=y |
| 356 | NEED_MD5=y |
| 357 | NEED_RC4=y |
| 358 | else |
Dmitry Shmidt | 34af306 | 2013-07-11 10:46:32 -0700 | [diff] [blame] | 359 | CFLAGS += -DCONFIG_NO_WPA |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 360 | ifeq ($(CONFIG_TLS), internal) |
| 361 | NEED_SHA1=y |
| 362 | NEED_MD5=y |
| 363 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 364 | endif |
| 365 | |
| 366 | ifdef CONFIG_IBSS_RSN |
| 367 | NEED_RSN_AUTHENTICATOR=y |
| 368 | CFLAGS += -DCONFIG_IBSS_RSN |
Dmitry Shmidt | e466304 | 2016-04-04 10:07:49 -0700 | [diff] [blame] | 369 | CFLAGS += -DCONFIG_NO_VLAN |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 370 | OBJS += ibss_rsn.o |
| 371 | endif |
| 372 | |
Dmitry Shmidt | e466304 | 2016-04-04 10:07:49 -0700 | [diff] [blame] | 373 | ifdef CONFIG_MATCH_IFACE |
| 374 | CFLAGS += -DCONFIG_MATCH_IFACE |
| 375 | endif |
| 376 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 377 | ifdef CONFIG_P2P |
| 378 | OBJS += p2p_supplicant.o |
Dmitry Shmidt | f73259c | 2015-03-17 11:00:54 -0700 | [diff] [blame] | 379 | OBJS += p2p_supplicant_sd.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 380 | OBJS += ../src/p2p/p2p.o |
| 381 | OBJS += ../src/p2p/p2p_utils.o |
| 382 | OBJS += ../src/p2p/p2p_parse.o |
| 383 | OBJS += ../src/p2p/p2p_build.o |
| 384 | OBJS += ../src/p2p/p2p_go_neg.o |
| 385 | OBJS += ../src/p2p/p2p_sd.o |
| 386 | OBJS += ../src/p2p/p2p_pd.o |
| 387 | OBJS += ../src/p2p/p2p_invitation.o |
| 388 | OBJS += ../src/p2p/p2p_dev_disc.o |
| 389 | OBJS += ../src/p2p/p2p_group.o |
| 390 | OBJS += ../src/ap/p2p_hostapd.o |
| 391 | CFLAGS += -DCONFIG_P2P |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 392 | NEED_GAS=y |
| 393 | NEED_OFFCHANNEL=y |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 394 | CONFIG_WPS=y |
| 395 | CONFIG_AP=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 396 | ifdef CONFIG_P2P_STRICT |
| 397 | CFLAGS += -DCONFIG_P2P_STRICT |
| 398 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 399 | ifdef CONFIG_WIFI_DISPLAY |
| 400 | CFLAGS += -DCONFIG_WIFI_DISPLAY |
| 401 | OBJS += wifi_display.o |
| 402 | endif |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 403 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 404 | |
Hai Shalom | 6084025 | 2021-02-19 19:02:11 -0800 | [diff] [blame] | 405 | ifdef CONFIG_PASN |
| 406 | CFLAGS += -DCONFIG_PASN |
| 407 | CFLAGS += -DCONFIG_PTKSA_CACHE |
| 408 | NEED_HMAC_SHA256_KDF=y |
| 409 | NEED_HMAC_SHA384_KDF=y |
| 410 | NEED_SHA256=y |
| 411 | NEED_SHA384=y |
| 412 | OBJS += ../src/common/ptksa_cache.o |
| 413 | OBJS += pasn_supplicant.o |
| 414 | endif |
| 415 | |
Dmitry Shmidt | 0494959 | 2012-07-19 12:16:46 -0700 | [diff] [blame] | 416 | ifdef CONFIG_HS20 |
| 417 | OBJS += hs20_supplicant.o |
| 418 | CFLAGS += -DCONFIG_HS20 |
| 419 | CONFIG_INTERWORKING=y |
| 420 | endif |
| 421 | |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 422 | ifdef CONFIG_INTERWORKING |
| 423 | OBJS += interworking.o |
| 424 | CFLAGS += -DCONFIG_INTERWORKING |
| 425 | NEED_GAS=y |
| 426 | endif |
| 427 | |
Dmitry Shmidt | 912c6ec | 2015-03-30 13:16:51 -0700 | [diff] [blame] | 428 | ifdef CONFIG_NO_ROAMING |
| 429 | CFLAGS += -DCONFIG_NO_ROAMING |
| 430 | endif |
| 431 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 432 | include ../src/drivers/drivers.mak |
| 433 | ifdef CONFIG_AP |
| 434 | OBJS_d += $(DRV_BOTH_OBJS) |
| 435 | CFLAGS += $(DRV_BOTH_CFLAGS) |
| 436 | LDFLAGS += $(DRV_BOTH_LDFLAGS) |
| 437 | LIBS += $(DRV_BOTH_LIBS) |
| 438 | else |
| 439 | NEED_AP_MLME= |
| 440 | OBJS_d += $(DRV_WPA_OBJS) |
| 441 | CFLAGS += $(DRV_WPA_CFLAGS) |
| 442 | LDFLAGS += $(DRV_WPA_LDFLAGS) |
| 443 | LIBS += $(DRV_WPA_LIBS) |
| 444 | endif |
| 445 | |
| 446 | ifndef CONFIG_L2_PACKET |
| 447 | CONFIG_L2_PACKET=linux |
| 448 | endif |
| 449 | |
| 450 | OBJS_l2 += ../src/l2_packet/l2_packet_$(CONFIG_L2_PACKET).o |
| 451 | |
| 452 | ifeq ($(CONFIG_L2_PACKET), pcap) |
| 453 | ifdef CONFIG_WINPCAP |
| 454 | CFLAGS += -DCONFIG_WINPCAP |
| 455 | LIBS += -lwpcap -lpacket |
| 456 | LIBS_w += -lwpcap |
| 457 | else |
| 458 | LIBS += -ldnet -lpcap |
| 459 | endif |
| 460 | endif |
| 461 | |
| 462 | ifeq ($(CONFIG_L2_PACKET), winpcap) |
| 463 | LIBS += -lwpcap -lpacket |
| 464 | LIBS_w += -lwpcap |
| 465 | endif |
| 466 | |
| 467 | ifeq ($(CONFIG_L2_PACKET), freebsd) |
| 468 | LIBS += -lpcap |
| 469 | endif |
| 470 | |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 471 | ifdef CONFIG_ERP |
| 472 | CFLAGS += -DCONFIG_ERP |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 473 | NEED_HMAC_SHA256_KDF=y |
| 474 | endif |
| 475 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 476 | ifdef CONFIG_EAP_TLS |
| 477 | # EAP-TLS |
| 478 | ifeq ($(CONFIG_EAP_TLS), dyn) |
| 479 | CFLAGS += -DEAP_TLS_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 480 | EAPDYN += eap_tls.so |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 481 | else |
| 482 | CFLAGS += -DEAP_TLS |
| 483 | OBJS += ../src/eap_peer/eap_tls.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 484 | endif |
| 485 | TLS_FUNCS=y |
| 486 | CONFIG_IEEE8021X_EAPOL=y |
| 487 | endif |
| 488 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 489 | ifdef CONFIG_EAP_UNAUTH_TLS |
| 490 | # EAP-UNAUTH-TLS |
| 491 | CFLAGS += -DEAP_UNAUTH_TLS |
Dmitry Shmidt | dda10c2 | 2015-03-24 16:05:01 -0700 | [diff] [blame] | 492 | ifndef CONFIG_EAP_TLS |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 493 | OBJS += ../src/eap_peer/eap_tls.o |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 494 | TLS_FUNCS=y |
| 495 | endif |
| 496 | CONFIG_IEEE8021X_EAPOL=y |
| 497 | endif |
| 498 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 499 | ifdef CONFIG_EAP_PEAP |
| 500 | # EAP-PEAP |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 501 | SRC_EAP_PEAP = ../src/eap_peer/eap_peap.c ../src/eap_common/eap_peap_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 502 | ifeq ($(CONFIG_EAP_PEAP), dyn) |
| 503 | CFLAGS += -DEAP_PEAP_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 504 | EAPDYN += eap_peap.so |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 505 | else |
| 506 | CFLAGS += -DEAP_PEAP |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 507 | OBJS += $(patsubst %.c, %.o, $(SRC_EAP_PEAP)) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 508 | endif |
| 509 | TLS_FUNCS=y |
| 510 | CONFIG_IEEE8021X_EAPOL=y |
| 511 | endif |
| 512 | |
| 513 | ifdef CONFIG_EAP_TTLS |
| 514 | # EAP-TTLS |
| 515 | ifeq ($(CONFIG_EAP_TTLS), dyn) |
| 516 | CFLAGS += -DEAP_TTLS_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 517 | EAPDYN += eap_ttls.so |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 518 | else |
| 519 | CFLAGS += -DEAP_TTLS |
| 520 | OBJS += ../src/eap_peer/eap_ttls.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 521 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 522 | TLS_FUNCS=y |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 523 | ifndef CONFIG_FIPS |
| 524 | MS_FUNCS=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 525 | CHAP=y |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 526 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 527 | CONFIG_IEEE8021X_EAPOL=y |
| 528 | endif |
| 529 | |
| 530 | ifdef CONFIG_EAP_MD5 |
| 531 | # EAP-MD5 |
| 532 | ifeq ($(CONFIG_EAP_MD5), dyn) |
| 533 | CFLAGS += -DEAP_MD5_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 534 | EAPDYN += eap_md5.so |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 535 | else |
| 536 | CFLAGS += -DEAP_MD5 |
| 537 | OBJS += ../src/eap_peer/eap_md5.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 538 | endif |
| 539 | CHAP=y |
| 540 | CONFIG_IEEE8021X_EAPOL=y |
| 541 | endif |
| 542 | |
| 543 | # backwards compatibility for old spelling |
| 544 | ifdef CONFIG_MSCHAPV2 |
| 545 | ifndef CONFIG_EAP_MSCHAPV2 |
| 546 | CONFIG_EAP_MSCHAPV2=y |
| 547 | endif |
| 548 | endif |
| 549 | |
| 550 | ifdef CONFIG_EAP_MSCHAPV2 |
| 551 | # EAP-MSCHAPv2 |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 552 | SRC_EAP_MSCHAPV2 = ../src/eap_peer/eap_mschapv2.c ../src/eap_peer/mschapv2.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 553 | ifeq ($(CONFIG_EAP_MSCHAPV2), dyn) |
| 554 | CFLAGS += -DEAP_MSCHAPv2_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 555 | EAPDYN += eap_mschapv2.so |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 556 | else |
| 557 | CFLAGS += -DEAP_MSCHAPv2 |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 558 | OBJS += $(patsubst %.c, %.o, $(SRC_EAP_MSCHAPV2)) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 559 | endif |
| 560 | MS_FUNCS=y |
| 561 | CONFIG_IEEE8021X_EAPOL=y |
| 562 | endif |
| 563 | |
| 564 | ifdef CONFIG_EAP_GTC |
| 565 | # EAP-GTC |
| 566 | ifeq ($(CONFIG_EAP_GTC), dyn) |
| 567 | CFLAGS += -DEAP_GTC_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 568 | EAPDYN += eap_gtc.so |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 569 | else |
| 570 | CFLAGS += -DEAP_GTC |
| 571 | OBJS += ../src/eap_peer/eap_gtc.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 572 | endif |
| 573 | CONFIG_IEEE8021X_EAPOL=y |
| 574 | endif |
| 575 | |
| 576 | ifdef CONFIG_EAP_OTP |
| 577 | # EAP-OTP |
| 578 | ifeq ($(CONFIG_EAP_OTP), dyn) |
| 579 | CFLAGS += -DEAP_OTP_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 580 | EAPDYN += eap_otp.so |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 581 | else |
| 582 | CFLAGS += -DEAP_OTP |
| 583 | OBJS += ../src/eap_peer/eap_otp.o |
| 584 | endif |
| 585 | CONFIG_IEEE8021X_EAPOL=y |
| 586 | endif |
| 587 | |
| 588 | ifdef CONFIG_EAP_SIM |
| 589 | # EAP-SIM |
| 590 | ifeq ($(CONFIG_EAP_SIM), dyn) |
| 591 | CFLAGS += -DEAP_SIM_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 592 | EAPDYN += eap_sim.so |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 593 | else |
| 594 | CFLAGS += -DEAP_SIM |
| 595 | OBJS += ../src/eap_peer/eap_sim.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 596 | endif |
| 597 | CONFIG_IEEE8021X_EAPOL=y |
| 598 | CONFIG_EAP_SIM_COMMON=y |
| 599 | NEED_AES_CBC=y |
| 600 | endif |
| 601 | |
| 602 | ifdef CONFIG_EAP_LEAP |
| 603 | # EAP-LEAP |
| 604 | ifeq ($(CONFIG_EAP_LEAP), dyn) |
| 605 | CFLAGS += -DEAP_LEAP_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 606 | EAPDYN += eap_leap.so |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 607 | else |
| 608 | CFLAGS += -DEAP_LEAP |
| 609 | OBJS += ../src/eap_peer/eap_leap.o |
| 610 | endif |
| 611 | MS_FUNCS=y |
| 612 | CONFIG_IEEE8021X_EAPOL=y |
| 613 | endif |
| 614 | |
| 615 | ifdef CONFIG_EAP_PSK |
| 616 | # EAP-PSK |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 617 | SRC_EAP_PSK = ../src/eap_peer/eap_psk.c ../src/eap_common/eap_psk_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 618 | ifeq ($(CONFIG_EAP_PSK), dyn) |
| 619 | CFLAGS += -DEAP_PSK_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 620 | EAPDYN += eap_psk.so |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 621 | else |
| 622 | CFLAGS += -DEAP_PSK |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 623 | OBJS += $(patsubst %.c, %.o, $(SRC_EAP_PSK)) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 624 | endif |
| 625 | CONFIG_IEEE8021X_EAPOL=y |
| 626 | NEED_AES=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 627 | NEED_AES_ENCBLOCK=y |
| 628 | NEED_AES_EAX=y |
| 629 | endif |
| 630 | |
| 631 | ifdef CONFIG_EAP_AKA |
| 632 | # EAP-AKA |
| 633 | ifeq ($(CONFIG_EAP_AKA), dyn) |
| 634 | CFLAGS += -DEAP_AKA_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 635 | EAPDYN += eap_aka.so |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 636 | else |
| 637 | CFLAGS += -DEAP_AKA |
| 638 | OBJS += ../src/eap_peer/eap_aka.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 639 | endif |
| 640 | CONFIG_IEEE8021X_EAPOL=y |
| 641 | CONFIG_EAP_SIM_COMMON=y |
| 642 | NEED_AES_CBC=y |
| 643 | endif |
| 644 | |
Dmitry Shmidt | f862328 | 2013-02-20 14:34:59 -0800 | [diff] [blame] | 645 | ifdef CONFIG_EAP_PROXY |
| 646 | CFLAGS += -DCONFIG_EAP_PROXY |
| 647 | OBJS += ../src/eap_peer/eap_proxy_$(CONFIG_EAP_PROXY).o |
Dmitry Shmidt | 61593f0 | 2014-04-21 16:27:35 -0700 | [diff] [blame] | 648 | include eap_proxy_$(CONFIG_EAP_PROXY).mak |
Dmitry Shmidt | f862328 | 2013-02-20 14:34:59 -0800 | [diff] [blame] | 649 | CONFIG_IEEE8021X_EAPOL=y |
| 650 | endif |
| 651 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 652 | ifdef CONFIG_EAP_AKA_PRIME |
| 653 | # EAP-AKA' |
| 654 | ifeq ($(CONFIG_EAP_AKA_PRIME), dyn) |
| 655 | CFLAGS += -DEAP_AKA_PRIME_DYNAMIC |
| 656 | else |
| 657 | CFLAGS += -DEAP_AKA_PRIME |
| 658 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 659 | endif |
| 660 | |
| 661 | ifdef CONFIG_EAP_SIM_COMMON |
| 662 | OBJS += ../src/eap_common/eap_sim_common.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 663 | NEED_AES=y |
| 664 | NEED_FIPS186_2_PRF=y |
| 665 | endif |
| 666 | |
| 667 | ifdef CONFIG_EAP_FAST |
| 668 | # EAP-FAST |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 669 | SRC_EAP_FAST = ../src/eap_peer/eap_fast.c ../src/eap_peer/eap_fast_pac.c |
| 670 | SRC_EAP_FAST += ../src/eap_common/eap_fast_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 671 | ifeq ($(CONFIG_EAP_FAST), dyn) |
| 672 | CFLAGS += -DEAP_FAST_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 673 | EAPDYN += eap_fast.so |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 674 | else |
| 675 | CFLAGS += -DEAP_FAST |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 676 | OBJS += $(patsubst %.c, %.o, $(SRC_EAP_FAST)) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 677 | endif |
| 678 | TLS_FUNCS=y |
| 679 | CONFIG_IEEE8021X_EAPOL=y |
| 680 | NEED_T_PRF=y |
| 681 | endif |
| 682 | |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 683 | ifdef CONFIG_EAP_TEAP |
| 684 | # EAP-TEAP |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 685 | SRC_EAP_TEAP = ../src/eap_peer/eap_teap.c ../src/eap_peer/eap_teap_pac.c |
| 686 | SRC_EAP_TEAP += ../src/eap_common/eap_teap_common.c |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 687 | ifeq ($(CONFIG_EAP_TEAP), dyn) |
| 688 | CFLAGS += -DEAP_TEAP_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 689 | EAPDYN += eap_teap.so |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 690 | else |
| 691 | CFLAGS += -DEAP_TEAP |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 692 | OBJS += $(patsubst %.c, %.o, $(SRC_EAP_TEAP)) |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 693 | endif |
| 694 | TLS_FUNCS=y |
| 695 | CONFIG_IEEE8021X_EAPOL=y |
| 696 | NEED_T_PRF=y |
| 697 | NEED_SHA384=y |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 698 | NEED_TLS_PRF_SHA256=y |
| 699 | NEED_TLS_PRF_SHA384=y |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 700 | endif |
| 701 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 702 | ifdef CONFIG_EAP_PAX |
| 703 | # EAP-PAX |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 704 | SRC_EAP_PAX = ../src/eap_peer/eap_pax.c ../src/eap_common/eap_pax_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 705 | ifeq ($(CONFIG_EAP_PAX), dyn) |
| 706 | CFLAGS += -DEAP_PAX_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 707 | EAPDYN += eap_pax.so |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 708 | else |
| 709 | CFLAGS += -DEAP_PAX |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 710 | OBJS += $(patsubst %.c, %.o, $(SRC_EAP_PAX)) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 711 | endif |
| 712 | CONFIG_IEEE8021X_EAPOL=y |
| 713 | endif |
| 714 | |
| 715 | ifdef CONFIG_EAP_SAKE |
| 716 | # EAP-SAKE |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 717 | SRC_EAP_SAKE = ../src/eap_peer/eap_sake.c ../src/eap_common/eap_sake_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 718 | ifeq ($(CONFIG_EAP_SAKE), dyn) |
| 719 | CFLAGS += -DEAP_SAKE_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 720 | EAPDYN += eap_sake.so |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 721 | else |
| 722 | CFLAGS += -DEAP_SAKE |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 723 | OBJS += $(patsubst %.c, %.o, $(SRC_EAP_SAKE)) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 724 | endif |
| 725 | CONFIG_IEEE8021X_EAPOL=y |
| 726 | endif |
| 727 | |
| 728 | ifdef CONFIG_EAP_GPSK |
| 729 | # EAP-GPSK |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 730 | SRC_EAP_GPSK = ../src/eap_peer/eap_gpsk.c ../src/eap_common/eap_gpsk_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 731 | ifeq ($(CONFIG_EAP_GPSK), dyn) |
| 732 | CFLAGS += -DEAP_GPSK_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 733 | EAPDYN += eap_gpsk.so |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 734 | else |
| 735 | CFLAGS += -DEAP_GPSK |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 736 | OBJS += $(patsubst %.c, %.o, $(SRC_EAP_GPSK)) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 737 | endif |
| 738 | CONFIG_IEEE8021X_EAPOL=y |
| 739 | ifdef CONFIG_EAP_GPSK_SHA256 |
| 740 | CFLAGS += -DEAP_GPSK_SHA256 |
| 741 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 742 | endif |
| 743 | |
| 744 | ifdef CONFIG_EAP_PWD |
| 745 | CFLAGS += -DEAP_PWD |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 746 | ifeq ($(CONFIG_TLS), wolfssl) |
| 747 | CFLAGS += -DCONFIG_ECC |
| 748 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 749 | OBJS += ../src/eap_peer/eap_pwd.o ../src/eap_common/eap_pwd_common.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 750 | CONFIG_IEEE8021X_EAPOL=y |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 751 | NEED_ECC=y |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 752 | NEED_DRAGONFLY=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 753 | endif |
| 754 | |
Dmitry Shmidt | 34af306 | 2013-07-11 10:46:32 -0700 | [diff] [blame] | 755 | ifdef CONFIG_EAP_EKE |
| 756 | # EAP-EKE |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 757 | SRC_EAP_EKE = ../src/eap_peer/eap_eke.c ../src/eap_common/eap_eke_common.c |
Dmitry Shmidt | 34af306 | 2013-07-11 10:46:32 -0700 | [diff] [blame] | 758 | ifeq ($(CONFIG_EAP_EKE), dyn) |
| 759 | CFLAGS += -DEAP_EKE_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 760 | EAPDYN += eap_eke.so |
Dmitry Shmidt | 34af306 | 2013-07-11 10:46:32 -0700 | [diff] [blame] | 761 | else |
| 762 | CFLAGS += -DEAP_EKE |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 763 | OBJS += $(patsubst %.c, %.o, $(SRC_EAP_EKE)) |
Dmitry Shmidt | 34af306 | 2013-07-11 10:46:32 -0700 | [diff] [blame] | 764 | endif |
| 765 | CONFIG_IEEE8021X_EAPOL=y |
| 766 | NEED_DH_GROUPS=y |
| 767 | NEED_DH_GROUPS_ALL=y |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 768 | NEED_AES_CBC=y |
Dmitry Shmidt | 34af306 | 2013-07-11 10:46:32 -0700 | [diff] [blame] | 769 | endif |
| 770 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 771 | ifdef CONFIG_WPS |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 772 | # EAP-WSC |
| 773 | CFLAGS += -DCONFIG_WPS -DEAP_WSC |
| 774 | OBJS += wps_supplicant.o |
| 775 | OBJS += ../src/utils/uuid.o |
| 776 | OBJS += ../src/eap_peer/eap_wsc.o ../src/eap_common/eap_wsc_common.o |
| 777 | OBJS += ../src/wps/wps.o |
| 778 | OBJS += ../src/wps/wps_common.o |
| 779 | OBJS += ../src/wps/wps_attr_parse.o |
| 780 | OBJS += ../src/wps/wps_attr_build.o |
| 781 | OBJS += ../src/wps/wps_attr_process.o |
| 782 | OBJS += ../src/wps/wps_dev_attr.o |
| 783 | OBJS += ../src/wps/wps_enrollee.o |
| 784 | OBJS += ../src/wps/wps_registrar.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 785 | CONFIG_IEEE8021X_EAPOL=y |
| 786 | NEED_DH_GROUPS=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 787 | NEED_BASE64=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 788 | NEED_AES_CBC=y |
| 789 | NEED_MODEXP=y |
| 790 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 791 | ifdef CONFIG_WPS_NFC |
| 792 | CFLAGS += -DCONFIG_WPS_NFC |
| 793 | OBJS += ../src/wps/ndef.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 794 | NEED_WPS_OOB=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 795 | endif |
| 796 | |
| 797 | ifdef NEED_WPS_OOB |
| 798 | CFLAGS += -DCONFIG_WPS_OOB |
| 799 | endif |
| 800 | |
| 801 | ifdef CONFIG_WPS_ER |
| 802 | CONFIG_WPS_UPNP=y |
| 803 | CFLAGS += -DCONFIG_WPS_ER |
| 804 | OBJS += ../src/wps/wps_er.o |
| 805 | OBJS += ../src/wps/wps_er_ssdp.o |
| 806 | endif |
| 807 | |
| 808 | ifdef CONFIG_WPS_UPNP |
| 809 | CFLAGS += -DCONFIG_WPS_UPNP |
| 810 | OBJS += ../src/wps/wps_upnp.o |
| 811 | OBJS += ../src/wps/wps_upnp_ssdp.o |
| 812 | OBJS += ../src/wps/wps_upnp_web.o |
| 813 | OBJS += ../src/wps/wps_upnp_event.o |
| 814 | OBJS += ../src/wps/wps_upnp_ap.o |
| 815 | OBJS += ../src/wps/upnp_xml.o |
| 816 | OBJS += ../src/wps/httpread.o |
| 817 | OBJS += ../src/wps/http_client.o |
| 818 | OBJS += ../src/wps/http_server.o |
| 819 | endif |
| 820 | |
| 821 | ifdef CONFIG_WPS_STRICT |
| 822 | CFLAGS += -DCONFIG_WPS_STRICT |
| 823 | OBJS += ../src/wps/wps_validate.o |
| 824 | endif |
| 825 | |
| 826 | ifdef CONFIG_WPS_TESTING |
| 827 | CFLAGS += -DCONFIG_WPS_TESTING |
| 828 | endif |
| 829 | |
| 830 | ifdef CONFIG_WPS_REG_DISABLE_OPEN |
| 831 | CFLAGS += -DCONFIG_WPS_REG_DISABLE_OPEN |
| 832 | endif |
| 833 | |
| 834 | endif |
| 835 | |
| 836 | ifdef CONFIG_EAP_IKEV2 |
| 837 | # EAP-IKEv2 |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 838 | SRC_EAP_IKEV2 = ../src/eap_peer/eap_ikev2.c |
| 839 | SRC_EAP_IKEV2 += ../src/eap_peer/ikev2.c |
| 840 | SRC_EAP_IKEV2 += ../src/eap_common/eap_ikev2_common.c |
| 841 | SRC_EAP_IKEV2 += ../src/eap_common/ikev2_common.c |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 842 | ifeq ($(CONFIG_EAP_IKEV2), dyn) |
| 843 | CFLAGS += -DEAP_IKEV2_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 844 | EAPDYN += eap_ikev2.so |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 845 | else |
| 846 | CFLAGS += -DEAP_IKEV2 |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 847 | OBJS += $(patsubst %.c, %.o, $(SRC_EAP_IKEV2)) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 848 | endif |
| 849 | CONFIG_IEEE8021X_EAPOL=y |
| 850 | NEED_DH_GROUPS=y |
| 851 | NEED_DH_GROUPS_ALL=y |
| 852 | NEED_MODEXP=y |
| 853 | NEED_CIPHER=y |
| 854 | endif |
| 855 | |
| 856 | ifdef CONFIG_EAP_VENDOR_TEST |
| 857 | ifeq ($(CONFIG_EAP_VENDOR_TEST), dyn) |
| 858 | CFLAGS += -DEAP_VENDOR_TEST_DYNAMIC |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 859 | EAPDYN += eap_vendor_test.so |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 860 | else |
| 861 | CFLAGS += -DEAP_VENDOR_TEST |
| 862 | OBJS += ../src/eap_peer/eap_vendor_test.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 863 | endif |
| 864 | CONFIG_IEEE8021X_EAPOL=y |
| 865 | endif |
| 866 | |
| 867 | ifdef CONFIG_EAP_TNC |
| 868 | # EAP-TNC |
| 869 | CFLAGS += -DEAP_TNC |
| 870 | OBJS += ../src/eap_peer/eap_tnc.o |
| 871 | OBJS += ../src/eap_peer/tncc.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 872 | NEED_BASE64=y |
| 873 | ifndef CONFIG_NATIVE_WINDOWS |
| 874 | ifndef CONFIG_DRIVER_BSD |
| 875 | LIBS += -ldl |
| 876 | endif |
| 877 | endif |
| 878 | endif |
| 879 | |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 880 | ifdef CONFIG_MACSEC |
| 881 | CFLAGS += -DCONFIG_MACSEC |
| 882 | CONFIG_IEEE8021X_EAPOL=y |
| 883 | NEED_AES_ENCBLOCK=y |
| 884 | NEED_AES_UNWRAP=y |
| 885 | NEED_AES_WRAP=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 886 | OBJS += wpas_kay.o |
| 887 | OBJS += ../src/pae/ieee802_1x_cp.o |
| 888 | OBJS += ../src/pae/ieee802_1x_kay.o |
| 889 | OBJS += ../src/pae/ieee802_1x_key.o |
| 890 | OBJS += ../src/pae/ieee802_1x_secy_ops.o |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 891 | ifdef CONFIG_AP |
| 892 | OBJS += ../src/ap/wpa_auth_kay.o |
| 893 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 894 | endif |
| 895 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 896 | ifdef CONFIG_IEEE8021X_EAPOL |
| 897 | # IEEE 802.1X/EAPOL state machines (e.g., for RADIUS authentication) |
| 898 | CFLAGS += -DIEEE8021X_EAPOL |
| 899 | OBJS += ../src/eapol_supp/eapol_supp_sm.o |
| 900 | OBJS += ../src/eap_peer/eap.o ../src/eap_peer/eap_methods.o |
| 901 | NEED_EAP_COMMON=y |
| 902 | ifdef CONFIG_DYNAMIC_EAP_METHODS |
| 903 | CFLAGS += -DCONFIG_DYNAMIC_EAP_METHODS |
| 904 | LIBS += -ldl -rdynamic |
| 905 | endif |
| 906 | endif |
| 907 | |
| 908 | ifdef CONFIG_AP |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 909 | NEED_EAP_COMMON=y |
| 910 | NEED_RSN_AUTHENTICATOR=y |
| 911 | CFLAGS += -DCONFIG_AP |
| 912 | OBJS += ap.o |
| 913 | CFLAGS += -DCONFIG_NO_RADIUS |
| 914 | CFLAGS += -DCONFIG_NO_ACCOUNTING |
| 915 | CFLAGS += -DCONFIG_NO_VLAN |
| 916 | OBJS += ../src/ap/hostapd.o |
| 917 | OBJS += ../src/ap/wpa_auth_glue.o |
| 918 | OBJS += ../src/ap/utils.o |
| 919 | OBJS += ../src/ap/authsrv.o |
| 920 | OBJS += ../src/ap/ap_config.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 921 | OBJS += ../src/ap/sta_info.o |
| 922 | OBJS += ../src/ap/tkip_countermeasures.o |
| 923 | OBJS += ../src/ap/ap_mlme.o |
| 924 | OBJS += ../src/ap/ieee802_1x.o |
| 925 | OBJS += ../src/eapol_auth/eapol_auth_sm.o |
| 926 | OBJS += ../src/ap/ieee802_11_auth.o |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 927 | OBJS += ../src/ap/ieee802_11_shared.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 928 | OBJS += ../src/ap/drv_callbacks.o |
| 929 | OBJS += ../src/ap/ap_drv_ops.o |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 930 | OBJS += ../src/ap/beacon.o |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 931 | OBJS += ../src/ap/bss_load.o |
Dmitry Shmidt | d5e4923 | 2012-12-03 15:08:10 -0800 | [diff] [blame] | 932 | OBJS += ../src/ap/eap_user_db.o |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 933 | OBJS += ../src/ap/neighbor_db.o |
| 934 | OBJS += ../src/ap/rrm.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 935 | OBJS += ../src/ap/ieee802_11_ht.o |
Dmitry Shmidt | 68d0e3e | 2013-10-28 17:59:21 -0700 | [diff] [blame] | 936 | ifdef CONFIG_IEEE80211AC |
| 937 | OBJS += ../src/ap/ieee802_11_vht.o |
| 938 | endif |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 939 | ifdef CONFIG_IEEE80211AX |
| 940 | OBJS += ../src/ap/ieee802_11_he.o |
| 941 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 942 | ifdef CONFIG_WNM_AP |
| 943 | CFLAGS += -DCONFIG_WNM_AP |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 944 | OBJS += ../src/ap/wnm_ap.o |
| 945 | endif |
Dmitry Shmidt | 57c2d39 | 2016-02-23 13:40:19 -0800 | [diff] [blame] | 946 | ifdef CONFIG_MBO |
| 947 | OBJS += ../src/ap/mbo_ap.o |
| 948 | endif |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 949 | ifdef CONFIG_FILS |
| 950 | OBJS += ../src/ap/fils_hlp.o |
| 951 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 952 | ifdef CONFIG_CTRL_IFACE |
| 953 | OBJS += ../src/ap/ctrl_iface_ap.o |
| 954 | endif |
| 955 | |
| 956 | CFLAGS += -DEAP_SERVER -DEAP_SERVER_IDENTITY |
| 957 | OBJS += ../src/eap_server/eap_server.o |
| 958 | OBJS += ../src/eap_server/eap_server_identity.o |
| 959 | OBJS += ../src/eap_server/eap_server_methods.o |
| 960 | |
Dmitry Shmidt | 68d0e3e | 2013-10-28 17:59:21 -0700 | [diff] [blame] | 961 | ifdef CONFIG_IEEE80211AC |
| 962 | CFLAGS += -DCONFIG_IEEE80211AC |
| 963 | endif |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 964 | ifdef CONFIG_IEEE80211AX |
| 965 | CFLAGS += -DCONFIG_IEEE80211AX |
| 966 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 967 | |
| 968 | ifdef NEED_AP_MLME |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 969 | OBJS += ../src/ap/wmm.o |
| 970 | OBJS += ../src/ap/ap_list.o |
| 971 | OBJS += ../src/ap/ieee802_11.o |
| 972 | OBJS += ../src/ap/hw_features.o |
Dmitry Shmidt | 051af73 | 2013-10-22 13:52:46 -0700 | [diff] [blame] | 973 | OBJS += ../src/ap/dfs.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 974 | CFLAGS += -DNEED_AP_MLME |
| 975 | endif |
| 976 | ifdef CONFIG_WPS |
| 977 | CFLAGS += -DEAP_SERVER_WSC |
| 978 | OBJS += ../src/ap/wps_hostapd.o |
| 979 | OBJS += ../src/eap_server/eap_server_wsc.o |
| 980 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 981 | ifdef CONFIG_DPP |
| 982 | OBJS += ../src/ap/dpp_hostapd.o |
| 983 | OBJS += ../src/ap/gas_query_ap.o |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 984 | NEED_AP_GAS_SERV=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 985 | endif |
Dmitry Shmidt | 0494959 | 2012-07-19 12:16:46 -0700 | [diff] [blame] | 986 | ifdef CONFIG_INTERWORKING |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 987 | NEED_AP_GAS_SERV=y |
| 988 | endif |
| 989 | ifdef NEED_AP_GAS_SERV |
Dmitry Shmidt | 0494959 | 2012-07-19 12:16:46 -0700 | [diff] [blame] | 990 | OBJS += ../src/ap/gas_serv.o |
| 991 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 992 | ifdef CONFIG_HS20 |
| 993 | OBJS += ../src/ap/hs20.o |
| 994 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 995 | endif |
| 996 | |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame] | 997 | ifdef CONFIG_MBO |
| 998 | OBJS += mbo.o |
| 999 | CFLAGS += -DCONFIG_MBO |
| 1000 | endif |
| 1001 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1002 | ifdef NEED_RSN_AUTHENTICATOR |
| 1003 | CFLAGS += -DCONFIG_NO_RADIUS |
| 1004 | NEED_AES_WRAP=y |
| 1005 | OBJS += ../src/ap/wpa_auth.o |
| 1006 | OBJS += ../src/ap/wpa_auth_ie.o |
| 1007 | OBJS += ../src/ap/pmksa_cache_auth.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1008 | endif |
| 1009 | |
Dmitry Shmidt | 014a3ff | 2015-12-28 13:27:49 -0800 | [diff] [blame] | 1010 | ifdef CONFIG_ACS |
| 1011 | CFLAGS += -DCONFIG_ACS |
| 1012 | OBJS += ../src/ap/acs.o |
| 1013 | LIBS += -lm |
| 1014 | endif |
| 1015 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1016 | ifdef CONFIG_PCSC |
| 1017 | # PC/SC interface for smartcards (USIM, GSM SIM) |
| 1018 | CFLAGS += -DPCSC_FUNCS -I/usr/include/PCSC |
| 1019 | OBJS += ../src/utils/pcsc_funcs.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1020 | ifdef CONFIG_NATIVE_WINDOWS |
| 1021 | #Once MinGW gets support for WinScard, -lwinscard could be used instead of the |
| 1022 | #dynamic symbol loading that is now used in pcsc_funcs.c |
| 1023 | #LIBS += -lwinscard |
| 1024 | else |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 1025 | ifdef CONFIG_OSX |
| 1026 | LIBS += -framework PCSC |
| 1027 | else |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 1028 | LIBS += $(shell $(PKG_CONFIG) --libs libpcsclite) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1029 | endif |
| 1030 | endif |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 1031 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1032 | |
| 1033 | ifdef CONFIG_SIM_SIMULATOR |
| 1034 | CFLAGS += -DCONFIG_SIM_SIMULATOR |
| 1035 | NEED_MILENAGE=y |
| 1036 | endif |
| 1037 | |
| 1038 | ifdef CONFIG_USIM_SIMULATOR |
| 1039 | CFLAGS += -DCONFIG_USIM_SIMULATOR |
| 1040 | NEED_MILENAGE=y |
| 1041 | endif |
| 1042 | |
| 1043 | ifdef NEED_MILENAGE |
| 1044 | OBJS += ../src/crypto/milenage.o |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1045 | NEED_AES_ENCBLOCK=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1046 | endif |
| 1047 | |
| 1048 | ifdef CONFIG_PKCS12 |
| 1049 | CFLAGS += -DPKCS12_FUNCS |
| 1050 | endif |
| 1051 | |
| 1052 | ifdef CONFIG_SMARTCARD |
| 1053 | CFLAGS += -DCONFIG_SMARTCARD |
| 1054 | endif |
| 1055 | |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 1056 | ifdef NEED_DRAGONFLY |
| 1057 | OBJS += ../src/common/dragonfly.o |
| 1058 | endif |
| 1059 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1060 | ifdef MS_FUNCS |
| 1061 | OBJS += ../src/crypto/ms_funcs.o |
| 1062 | NEED_DES=y |
| 1063 | NEED_MD4=y |
| 1064 | endif |
| 1065 | |
| 1066 | ifdef CHAP |
| 1067 | OBJS += ../src/eap_common/chap.o |
| 1068 | endif |
| 1069 | |
| 1070 | ifdef TLS_FUNCS |
| 1071 | NEED_DES=y |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 1072 | # Shared TLS functions (needed for EAP_TLS, EAP_PEAP, EAP_TTLS, EAP_FAST, and |
| 1073 | # EAP_TEAP) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1074 | OBJS += ../src/eap_peer/eap_tls_common.o |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1075 | ifndef CONFIG_FIPS |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1076 | NEED_TLS_PRF=y |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 1077 | NEED_SHA1=y |
| 1078 | NEED_MD5=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1079 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1080 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1081 | |
| 1082 | ifndef CONFIG_TLS |
| 1083 | CONFIG_TLS=openssl |
| 1084 | endif |
| 1085 | |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1086 | ifdef CONFIG_TLSV11 |
| 1087 | CFLAGS += -DCONFIG_TLSV11 |
| 1088 | endif |
| 1089 | |
| 1090 | ifdef CONFIG_TLSV12 |
| 1091 | CFLAGS += -DCONFIG_TLSV12 |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1092 | endif |
| 1093 | |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1094 | ifeq ($(CONFIG_TLS), wolfssl) |
| 1095 | ifdef TLS_FUNCS |
Hai Shalom | 4fbc08f | 2020-05-18 12:37:00 -0700 | [diff] [blame] | 1096 | CFLAGS += -DWOLFSSL_DER_LOAD |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1097 | OBJS += ../src/crypto/tls_wolfssl.o |
| 1098 | endif |
| 1099 | OBJS += ../src/crypto/crypto_wolfssl.o |
| 1100 | OBJS_p += ../src/crypto/crypto_wolfssl.o |
| 1101 | ifdef NEED_FIPS186_2_PRF |
| 1102 | OBJS += ../src/crypto/fips_prf_wolfssl.o |
| 1103 | endif |
| 1104 | NEED_TLS_PRF_SHA256=y |
| 1105 | LIBS += -lwolfssl -lm |
| 1106 | LIBS_p += -lwolfssl -lm |
| 1107 | endif |
| 1108 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1109 | ifeq ($(CONFIG_TLS), openssl) |
| 1110 | ifdef TLS_FUNCS |
| 1111 | CFLAGS += -DEAP_TLS_OPENSSL |
| 1112 | OBJS += ../src/crypto/tls_openssl.o |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 1113 | OBJS += ../src/crypto/tls_openssl_ocsp.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1114 | LIBS += -lssl |
| 1115 | endif |
| 1116 | OBJS += ../src/crypto/crypto_openssl.o |
| 1117 | OBJS_p += ../src/crypto/crypto_openssl.o |
Dmitry Shmidt | 1d755d0 | 2015-04-28 10:34:29 -0700 | [diff] [blame] | 1118 | OBJS_priv += ../src/crypto/crypto_openssl.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1119 | ifdef NEED_FIPS186_2_PRF |
| 1120 | OBJS += ../src/crypto/fips_prf_openssl.o |
| 1121 | endif |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1122 | NEED_TLS_PRF_SHA256=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1123 | LIBS += -lcrypto |
| 1124 | LIBS_p += -lcrypto |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1125 | ifdef CONFIG_TLS_ADD_DL |
| 1126 | LIBS += -ldl |
| 1127 | LIBS_p += -ldl |
| 1128 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1129 | ifndef CONFIG_TLS_DEFAULT_CIPHERS |
| 1130 | CONFIG_TLS_DEFAULT_CIPHERS = "DEFAULT:!EXP:!LOW" |
| 1131 | endif |
| 1132 | CFLAGS += -DTLS_DEFAULT_CIPHERS=\"$(CONFIG_TLS_DEFAULT_CIPHERS)\" |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1133 | endif |
| 1134 | |
| 1135 | ifeq ($(CONFIG_TLS), gnutls) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1136 | ifndef CONFIG_CRYPTO |
| 1137 | # default to libgcrypt |
| 1138 | CONFIG_CRYPTO=gnutls |
| 1139 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1140 | ifdef TLS_FUNCS |
| 1141 | OBJS += ../src/crypto/tls_gnutls.o |
| 1142 | LIBS += -lgnutls -lgpg-error |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1143 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1144 | OBJS += ../src/crypto/crypto_$(CONFIG_CRYPTO).o |
| 1145 | OBJS_p += ../src/crypto/crypto_$(CONFIG_CRYPTO).o |
| 1146 | OBJS_priv += ../src/crypto/crypto_$(CONFIG_CRYPTO).o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1147 | ifdef NEED_FIPS186_2_PRF |
Dmitry Shmidt | 9866086 | 2014-03-11 17:26:21 -0700 | [diff] [blame] | 1148 | OBJS += ../src/crypto/fips_prf_internal.o |
| 1149 | SHA1OBJS += ../src/crypto/sha1-internal.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1150 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1151 | ifeq ($(CONFIG_CRYPTO), gnutls) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1152 | LIBS += -lgcrypt |
| 1153 | LIBS_p += -lgcrypt |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1154 | CONFIG_INTERNAL_RC4=y |
| 1155 | CONFIG_INTERNAL_DH_GROUP5=y |
| 1156 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1157 | ifeq ($(CONFIG_CRYPTO), nettle) |
| 1158 | LIBS += -lnettle -lgmp |
| 1159 | LIBS_p += -lnettle -lgmp |
| 1160 | CONFIG_INTERNAL_RC4=y |
| 1161 | CONFIG_INTERNAL_DH_GROUP5=y |
| 1162 | endif |
| 1163 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1164 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1165 | ifeq ($(CONFIG_TLS), internal) |
| 1166 | ifndef CONFIG_CRYPTO |
| 1167 | CONFIG_CRYPTO=internal |
| 1168 | endif |
| 1169 | ifdef TLS_FUNCS |
| 1170 | OBJS += ../src/crypto/crypto_internal-rsa.o |
| 1171 | OBJS += ../src/crypto/tls_internal.o |
| 1172 | OBJS += ../src/tls/tlsv1_common.o |
| 1173 | OBJS += ../src/tls/tlsv1_record.o |
| 1174 | OBJS += ../src/tls/tlsv1_cred.o |
| 1175 | OBJS += ../src/tls/tlsv1_client.o |
| 1176 | OBJS += ../src/tls/tlsv1_client_write.o |
| 1177 | OBJS += ../src/tls/tlsv1_client_read.o |
Dmitry Shmidt | 55840ad | 2015-12-14 12:45:46 -0800 | [diff] [blame] | 1178 | OBJS += ../src/tls/tlsv1_client_ocsp.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1179 | OBJS += ../src/tls/rsa.o |
| 1180 | OBJS += ../src/tls/x509v3.o |
| 1181 | OBJS += ../src/tls/pkcs1.o |
| 1182 | OBJS += ../src/tls/pkcs5.o |
| 1183 | OBJS += ../src/tls/pkcs8.o |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 1184 | NEED_ASN1=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1185 | NEED_BASE64=y |
| 1186 | NEED_TLS_PRF=y |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1187 | ifdef CONFIG_TLSV12 |
| 1188 | NEED_TLS_PRF_SHA256=y |
| 1189 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1190 | NEED_MODEXP=y |
| 1191 | NEED_CIPHER=y |
| 1192 | CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT |
| 1193 | endif |
| 1194 | ifdef NEED_CIPHER |
| 1195 | NEED_DES=y |
| 1196 | OBJS += ../src/crypto/crypto_internal-cipher.o |
| 1197 | endif |
| 1198 | ifdef NEED_MODEXP |
| 1199 | OBJS += ../src/crypto/crypto_internal-modexp.o |
| 1200 | OBJS += ../src/tls/bignum.o |
| 1201 | endif |
| 1202 | ifeq ($(CONFIG_CRYPTO), libtomcrypt) |
| 1203 | OBJS += ../src/crypto/crypto_libtomcrypt.o |
| 1204 | OBJS_p += ../src/crypto/crypto_libtomcrypt.o |
| 1205 | LIBS += -ltomcrypt -ltfm |
| 1206 | LIBS_p += -ltomcrypt -ltfm |
| 1207 | CONFIG_INTERNAL_SHA256=y |
| 1208 | CONFIG_INTERNAL_RC4=y |
| 1209 | CONFIG_INTERNAL_DH_GROUP5=y |
| 1210 | endif |
| 1211 | ifeq ($(CONFIG_CRYPTO), internal) |
| 1212 | OBJS += ../src/crypto/crypto_internal.o |
| 1213 | OBJS_p += ../src/crypto/crypto_internal.o |
| 1214 | NEED_AES_ENC=y |
| 1215 | CFLAGS += -DCONFIG_CRYPTO_INTERNAL |
| 1216 | ifdef CONFIG_INTERNAL_LIBTOMMATH |
| 1217 | CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH |
| 1218 | ifdef CONFIG_INTERNAL_LIBTOMMATH_FAST |
| 1219 | CFLAGS += -DLTM_FAST |
| 1220 | endif |
| 1221 | else |
| 1222 | LIBS += -ltommath |
| 1223 | LIBS_p += -ltommath |
| 1224 | endif |
| 1225 | CONFIG_INTERNAL_AES=y |
| 1226 | CONFIG_INTERNAL_DES=y |
| 1227 | CONFIG_INTERNAL_SHA1=y |
| 1228 | CONFIG_INTERNAL_MD4=y |
| 1229 | CONFIG_INTERNAL_MD5=y |
| 1230 | CONFIG_INTERNAL_SHA256=y |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 1231 | CONFIG_INTERNAL_SHA384=y |
| 1232 | CONFIG_INTERNAL_SHA512=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1233 | CONFIG_INTERNAL_RC4=y |
| 1234 | CONFIG_INTERNAL_DH_GROUP5=y |
| 1235 | endif |
| 1236 | ifeq ($(CONFIG_CRYPTO), cryptoapi) |
| 1237 | OBJS += ../src/crypto/crypto_cryptoapi.o |
| 1238 | OBJS_p += ../src/crypto/crypto_cryptoapi.o |
| 1239 | CFLAGS += -DCONFIG_CRYPTO_CRYPTOAPI |
| 1240 | CONFIG_INTERNAL_SHA256=y |
| 1241 | CONFIG_INTERNAL_RC4=y |
| 1242 | endif |
| 1243 | endif |
| 1244 | |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1245 | ifeq ($(CONFIG_TLS), linux) |
| 1246 | OBJS += ../src/crypto/crypto_linux.o |
| 1247 | OBJS_p += ../src/crypto/crypto_linux.o |
| 1248 | ifdef TLS_FUNCS |
| 1249 | OBJS += ../src/crypto/crypto_internal-rsa.o |
| 1250 | OBJS += ../src/crypto/tls_internal.o |
| 1251 | OBJS += ../src/tls/tlsv1_common.o |
| 1252 | OBJS += ../src/tls/tlsv1_record.o |
| 1253 | OBJS += ../src/tls/tlsv1_cred.o |
| 1254 | OBJS += ../src/tls/tlsv1_client.o |
| 1255 | OBJS += ../src/tls/tlsv1_client_write.o |
| 1256 | OBJS += ../src/tls/tlsv1_client_read.o |
| 1257 | OBJS += ../src/tls/tlsv1_client_ocsp.o |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1258 | OBJS += ../src/tls/rsa.o |
| 1259 | OBJS += ../src/tls/x509v3.o |
| 1260 | OBJS += ../src/tls/pkcs1.o |
| 1261 | OBJS += ../src/tls/pkcs5.o |
| 1262 | OBJS += ../src/tls/pkcs8.o |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 1263 | NEED_ASN1=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1264 | NEED_BASE64=y |
| 1265 | NEED_TLS_PRF=y |
| 1266 | ifdef CONFIG_TLSV12 |
| 1267 | NEED_TLS_PRF_SHA256=y |
| 1268 | endif |
| 1269 | NEED_MODEXP=y |
| 1270 | NEED_CIPHER=y |
| 1271 | CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT |
| 1272 | endif |
| 1273 | ifdef NEED_MODEXP |
| 1274 | OBJS += ../src/crypto/crypto_internal-modexp.o |
| 1275 | OBJS += ../src/tls/bignum.o |
| 1276 | CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH |
| 1277 | CFLAGS += -DLTM_FAST |
| 1278 | endif |
| 1279 | CONFIG_INTERNAL_DH_GROUP5=y |
| 1280 | ifdef NEED_FIPS186_2_PRF |
| 1281 | OBJS += ../src/crypto/fips_prf_internal.o |
| 1282 | OBJS += ../src/crypto/sha1-internal.o |
| 1283 | endif |
| 1284 | endif |
| 1285 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1286 | ifeq ($(CONFIG_TLS), none) |
| 1287 | ifdef TLS_FUNCS |
| 1288 | OBJS += ../src/crypto/tls_none.o |
| 1289 | CFLAGS += -DEAP_TLS_NONE |
| 1290 | CONFIG_INTERNAL_AES=y |
| 1291 | CONFIG_INTERNAL_SHA1=y |
| 1292 | CONFIG_INTERNAL_MD5=y |
| 1293 | endif |
| 1294 | OBJS += ../src/crypto/crypto_none.o |
| 1295 | OBJS_p += ../src/crypto/crypto_none.o |
| 1296 | CONFIG_INTERNAL_SHA256=y |
| 1297 | CONFIG_INTERNAL_RC4=y |
| 1298 | endif |
| 1299 | |
| 1300 | ifdef TLS_FUNCS |
| 1301 | ifdef CONFIG_SMARTCARD |
| 1302 | ifndef CONFIG_NATIVE_WINDOWS |
| 1303 | ifneq ($(CONFIG_L2_PACKET), freebsd) |
| 1304 | LIBS += -ldl |
| 1305 | endif |
| 1306 | endif |
| 1307 | endif |
| 1308 | endif |
| 1309 | |
| 1310 | ifndef TLS_FUNCS |
| 1311 | OBJS += ../src/crypto/tls_none.o |
| 1312 | ifeq ($(CONFIG_TLS), internal) |
| 1313 | CONFIG_INTERNAL_AES=y |
| 1314 | CONFIG_INTERNAL_SHA1=y |
| 1315 | CONFIG_INTERNAL_MD5=y |
| 1316 | CONFIG_INTERNAL_RC4=y |
| 1317 | endif |
| 1318 | endif |
| 1319 | |
| 1320 | AESOBJS = # none so far (see below) |
| 1321 | ifdef CONFIG_INTERNAL_AES |
| 1322 | AESOBJS += ../src/crypto/aes-internal.o ../src/crypto/aes-internal-dec.o |
| 1323 | endif |
| 1324 | |
Dmitry Shmidt | 216983b | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 1325 | ifneq ($(CONFIG_TLS), openssl) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1326 | ifneq ($(CONFIG_TLS), wolfssl) |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1327 | NEED_INTERNAL_AES_WRAP=y |
| 1328 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1329 | endif |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1330 | ifdef CONFIG_OPENSSL_INTERNAL_AES_WRAP |
| 1331 | # Seems to be needed at least with BoringSSL |
| 1332 | NEED_INTERNAL_AES_WRAP=y |
| 1333 | CFLAGS += -DCONFIG_OPENSSL_INTERNAL_AES_WRAP |
| 1334 | endif |
| 1335 | ifdef CONFIG_FIPS |
| 1336 | # Have to use internal AES key wrap routines to use OpenSSL EVP since the |
| 1337 | # OpenSSL AES_wrap_key()/AES_unwrap_key() API is not available in FIPS mode. |
| 1338 | NEED_INTERNAL_AES_WRAP=y |
| 1339 | endif |
| 1340 | |
| 1341 | ifdef NEED_INTERNAL_AES_WRAP |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1342 | ifneq ($(CONFIG_TLS), linux) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1343 | AESOBJS += ../src/crypto/aes-unwrap.o |
Dmitry Shmidt | 216983b | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 1344 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1345 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1346 | ifdef NEED_AES_EAX |
| 1347 | AESOBJS += ../src/crypto/aes-eax.o |
| 1348 | NEED_AES_CTR=y |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1349 | endif |
| 1350 | ifdef NEED_AES_SIV |
| 1351 | AESOBJS += ../src/crypto/aes-siv.o |
| 1352 | NEED_AES_CTR=y |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1353 | endif |
| 1354 | ifdef NEED_AES_CTR |
| 1355 | AESOBJS += ../src/crypto/aes-ctr.o |
| 1356 | endif |
| 1357 | ifdef NEED_AES_ENCBLOCK |
| 1358 | AESOBJS += ../src/crypto/aes-encblock.o |
| 1359 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1360 | NEED_AES_ENC=y |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1361 | ifdef CONFIG_OPENSSL_CMAC |
| 1362 | CFLAGS += -DCONFIG_OPENSSL_CMAC |
| 1363 | else |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1364 | ifneq ($(CONFIG_TLS), linux) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1365 | ifneq ($(CONFIG_TLS), wolfssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1366 | AESOBJS += ../src/crypto/aes-omac1.o |
| 1367 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1368 | endif |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 1369 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1370 | ifdef NEED_AES_WRAP |
| 1371 | NEED_AES_ENC=y |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1372 | ifdef NEED_INTERNAL_AES_WRAP |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1373 | AESOBJS += ../src/crypto/aes-wrap.o |
| 1374 | endif |
Dmitry Shmidt | 216983b | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 1375 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1376 | ifdef NEED_AES_CBC |
| 1377 | NEED_AES_ENC=y |
Dmitry Shmidt | 912c6ec | 2015-03-30 13:16:51 -0700 | [diff] [blame] | 1378 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1379 | ifneq ($(CONFIG_TLS), linux) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1380 | ifneq ($(CONFIG_TLS), wolfssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1381 | AESOBJS += ../src/crypto/aes-cbc.o |
| 1382 | endif |
Dmitry Shmidt | 912c6ec | 2015-03-30 13:16:51 -0700 | [diff] [blame] | 1383 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1384 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1385 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1386 | ifdef NEED_AES_ENC |
| 1387 | ifdef CONFIG_INTERNAL_AES |
| 1388 | AESOBJS += ../src/crypto/aes-internal-enc.o |
| 1389 | endif |
| 1390 | endif |
| 1391 | ifdef NEED_AES |
| 1392 | OBJS += $(AESOBJS) |
| 1393 | endif |
| 1394 | |
| 1395 | ifdef NEED_SHA1 |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1396 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1397 | ifneq ($(CONFIG_TLS), linux) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1398 | ifneq ($(CONFIG_TLS), gnutls) |
| 1399 | ifneq ($(CONFIG_TLS), wolfssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1400 | SHA1OBJS += ../src/crypto/sha1.o |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1401 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1402 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1403 | endif |
| 1404 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1405 | SHA1OBJS += ../src/crypto/sha1-prf.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1406 | ifdef CONFIG_INTERNAL_SHA1 |
| 1407 | SHA1OBJS += ../src/crypto/sha1-internal.o |
| 1408 | ifdef NEED_FIPS186_2_PRF |
| 1409 | SHA1OBJS += ../src/crypto/fips_prf_internal.o |
| 1410 | endif |
| 1411 | endif |
Jouni Malinen | 75ecf52 | 2011-06-27 15:19:46 -0700 | [diff] [blame] | 1412 | ifdef CONFIG_NO_WPA_PASSPHRASE |
| 1413 | CFLAGS += -DCONFIG_NO_PBKDF2 |
| 1414 | else |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1415 | ifneq ($(CONFIG_TLS), openssl) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1416 | ifneq ($(CONFIG_TLS), wolfssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1417 | SHA1OBJS += ../src/crypto/sha1-pbkdf2.o |
| 1418 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1419 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1420 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1421 | ifdef NEED_T_PRF |
| 1422 | SHA1OBJS += ../src/crypto/sha1-tprf.o |
| 1423 | endif |
| 1424 | ifdef NEED_TLS_PRF |
| 1425 | SHA1OBJS += ../src/crypto/sha1-tlsprf.o |
| 1426 | endif |
| 1427 | endif |
| 1428 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1429 | ifndef CONFIG_FIPS |
Dmitry Shmidt | 216983b | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 1430 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1431 | ifneq ($(CONFIG_TLS), linux) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1432 | ifneq ($(CONFIG_TLS), gnutls) |
| 1433 | ifneq ($(CONFIG_TLS), wolfssl) |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1434 | MD5OBJS += ../src/crypto/md5.o |
| 1435 | endif |
Dmitry Shmidt | 216983b | 2015-02-06 10:50:36 -0800 | [diff] [blame] | 1436 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1437 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1438 | endif |
| 1439 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1440 | ifdef NEED_MD5 |
| 1441 | ifdef CONFIG_INTERNAL_MD5 |
| 1442 | MD5OBJS += ../src/crypto/md5-internal.o |
| 1443 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1444 | OBJS += $(MD5OBJS) |
| 1445 | OBJS_p += $(MD5OBJS) |
Dmitry Shmidt | 1d755d0 | 2015-04-28 10:34:29 -0700 | [diff] [blame] | 1446 | OBJS_priv += $(MD5OBJS) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1447 | endif |
| 1448 | |
| 1449 | ifdef NEED_MD4 |
| 1450 | ifdef CONFIG_INTERNAL_MD4 |
| 1451 | OBJS += ../src/crypto/md4-internal.o |
| 1452 | endif |
| 1453 | endif |
| 1454 | |
| 1455 | DESOBJS = # none needed when not internal |
| 1456 | ifdef NEED_DES |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1457 | ifndef CONFIG_FIPS |
| 1458 | CFLAGS += -DCONFIG_DES |
| 1459 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1460 | ifdef CONFIG_INTERNAL_DES |
| 1461 | DESOBJS += ../src/crypto/des-internal.o |
| 1462 | endif |
| 1463 | endif |
| 1464 | |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1465 | ifdef CONFIG_NO_RC4 |
| 1466 | CFLAGS += -DCONFIG_NO_RC4 |
| 1467 | endif |
| 1468 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1469 | ifdef NEED_RC4 |
| 1470 | ifdef CONFIG_INTERNAL_RC4 |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1471 | ifndef CONFIG_NO_RC4 |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1472 | OBJS += ../src/crypto/rc4.o |
| 1473 | endif |
| 1474 | endif |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1475 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1476 | |
| 1477 | SHA256OBJS = # none by default |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1478 | CFLAGS += -DCONFIG_SHA256 |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1479 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1480 | ifneq ($(CONFIG_TLS), linux) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1481 | ifneq ($(CONFIG_TLS), gnutls) |
| 1482 | ifneq ($(CONFIG_TLS), wolfssl) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1483 | SHA256OBJS += ../src/crypto/sha256.o |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1484 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1485 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1486 | endif |
| 1487 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1488 | SHA256OBJS += ../src/crypto/sha256-prf.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1489 | ifdef CONFIG_INTERNAL_SHA256 |
| 1490 | SHA256OBJS += ../src/crypto/sha256-internal.o |
| 1491 | endif |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 1492 | ifdef CONFIG_INTERNAL_SHA384 |
| 1493 | CFLAGS += -DCONFIG_INTERNAL_SHA384 |
| 1494 | SHA256OBJS += ../src/crypto/sha384-internal.o |
| 1495 | endif |
| 1496 | ifdef CONFIG_INTERNAL_SHA512 |
| 1497 | CFLAGS += -DCONFIG_INTERNAL_SHA512 |
| 1498 | SHA256OBJS += ../src/crypto/sha512-internal.o |
| 1499 | endif |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1500 | ifdef NEED_TLS_PRF_SHA256 |
| 1501 | SHA256OBJS += ../src/crypto/sha256-tlsprf.o |
| 1502 | endif |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 1503 | ifdef NEED_TLS_PRF_SHA384 |
| 1504 | SHA256OBJS += ../src/crypto/sha384-tlsprf.o |
| 1505 | endif |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 1506 | ifdef NEED_HMAC_SHA256_KDF |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1507 | CFLAGS += -DCONFIG_HMAC_SHA256_KDF |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 1508 | OBJS += ../src/crypto/sha256-kdf.o |
| 1509 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1510 | ifdef NEED_HMAC_SHA384_KDF |
| 1511 | CFLAGS += -DCONFIG_HMAC_SHA384_KDF |
| 1512 | OBJS += ../src/crypto/sha384-kdf.o |
| 1513 | endif |
| 1514 | ifdef NEED_HMAC_SHA512_KDF |
| 1515 | CFLAGS += -DCONFIG_HMAC_SHA512_KDF |
| 1516 | OBJS += ../src/crypto/sha512-kdf.o |
| 1517 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1518 | OBJS += $(SHA256OBJS) |
Dmitry Shmidt | 807291d | 2015-01-27 13:40:23 -0800 | [diff] [blame] | 1519 | ifdef NEED_SHA384 |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 1520 | ifneq ($(CONFIG_TLS), openssl) |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1521 | ifneq ($(CONFIG_TLS), linux) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1522 | ifneq ($(CONFIG_TLS), gnutls) |
| 1523 | ifneq ($(CONFIG_TLS), wolfssl) |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 1524 | OBJS += ../src/crypto/sha384.o |
| 1525 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1526 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1527 | endif |
| 1528 | endif |
Dmitry Shmidt | 807291d | 2015-01-27 13:40:23 -0800 | [diff] [blame] | 1529 | CFLAGS += -DCONFIG_SHA384 |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1530 | OBJS += ../src/crypto/sha384-prf.o |
Dmitry Shmidt | 807291d | 2015-01-27 13:40:23 -0800 | [diff] [blame] | 1531 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1532 | ifdef NEED_SHA512 |
| 1533 | ifneq ($(CONFIG_TLS), openssl) |
| 1534 | ifneq ($(CONFIG_TLS), linux) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1535 | ifneq ($(CONFIG_TLS), gnutls) |
| 1536 | ifneq ($(CONFIG_TLS), wolfssl) |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1537 | OBJS += ../src/crypto/sha512.o |
| 1538 | endif |
| 1539 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1540 | endif |
| 1541 | endif |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1542 | CFLAGS += -DCONFIG_SHA512 |
| 1543 | OBJS += ../src/crypto/sha512-prf.o |
| 1544 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1545 | |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 1546 | ifdef NEED_ASN1 |
| 1547 | OBJS += ../src/tls/asn1.o |
| 1548 | endif |
| 1549 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1550 | ifdef NEED_DH_GROUPS |
| 1551 | OBJS += ../src/crypto/dh_groups.o |
| 1552 | endif |
| 1553 | ifdef NEED_DH_GROUPS_ALL |
| 1554 | CFLAGS += -DALL_DH_GROUPS |
| 1555 | endif |
| 1556 | ifdef CONFIG_INTERNAL_DH_GROUP5 |
| 1557 | ifdef NEED_DH_GROUPS |
| 1558 | OBJS += ../src/crypto/dh_group5.o |
| 1559 | endif |
| 1560 | endif |
| 1561 | |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 1562 | ifdef NEED_ECC |
| 1563 | CFLAGS += -DCONFIG_ECC |
| 1564 | endif |
| 1565 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1566 | ifdef CONFIG_NO_RANDOM_POOL |
| 1567 | CFLAGS += -DCONFIG_NO_RANDOM_POOL |
| 1568 | else |
Hai Shalom | 74f70d4 | 2019-02-11 14:42:39 -0800 | [diff] [blame] | 1569 | ifdef CONFIG_GETRANDOM |
| 1570 | CFLAGS += -DCONFIG_GETRANDOM |
| 1571 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1572 | OBJS += ../src/crypto/random.o |
| 1573 | endif |
| 1574 | |
| 1575 | ifdef CONFIG_CTRL_IFACE |
| 1576 | ifeq ($(CONFIG_CTRL_IFACE), y) |
| 1577 | ifdef CONFIG_NATIVE_WINDOWS |
| 1578 | CONFIG_CTRL_IFACE=named_pipe |
| 1579 | else |
| 1580 | CONFIG_CTRL_IFACE=unix |
| 1581 | endif |
| 1582 | endif |
| 1583 | CFLAGS += -DCONFIG_CTRL_IFACE |
| 1584 | ifeq ($(CONFIG_CTRL_IFACE), unix) |
| 1585 | CFLAGS += -DCONFIG_CTRL_IFACE_UNIX |
Dmitry Shmidt | 31a29cc | 2016-03-09 15:58:17 -0800 | [diff] [blame] | 1586 | OBJS += ../src/common/ctrl_iface_common.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1587 | endif |
| 1588 | ifeq ($(CONFIG_CTRL_IFACE), udp) |
| 1589 | CFLAGS += -DCONFIG_CTRL_IFACE_UDP |
| 1590 | endif |
Dmitry Shmidt | f21452a | 2014-02-26 10:55:25 -0800 | [diff] [blame] | 1591 | ifeq ($(CONFIG_CTRL_IFACE), udp6) |
| 1592 | CONFIG_CTRL_IFACE=udp |
| 1593 | CFLAGS += -DCONFIG_CTRL_IFACE_UDP |
| 1594 | CFLAGS += -DCONFIG_CTRL_IFACE_UDP_IPV6 |
| 1595 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1596 | ifeq ($(CONFIG_CTRL_IFACE), named_pipe) |
| 1597 | CFLAGS += -DCONFIG_CTRL_IFACE_NAMED_PIPE |
| 1598 | endif |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1599 | ifeq ($(CONFIG_CTRL_IFACE), udp-remote) |
| 1600 | CONFIG_CTRL_IFACE=udp |
| 1601 | CFLAGS += -DCONFIG_CTRL_IFACE_UDP |
| 1602 | CFLAGS += -DCONFIG_CTRL_IFACE_UDP_REMOTE |
| 1603 | endif |
Dmitry Shmidt | f21452a | 2014-02-26 10:55:25 -0800 | [diff] [blame] | 1604 | ifeq ($(CONFIG_CTRL_IFACE), udp6-remote) |
| 1605 | CONFIG_CTRL_IFACE=udp |
| 1606 | CFLAGS += -DCONFIG_CTRL_IFACE_UDP |
| 1607 | CFLAGS += -DCONFIG_CTRL_IFACE_UDP_REMOTE |
| 1608 | CFLAGS += -DCONFIG_CTRL_IFACE_UDP_IPV6 |
| 1609 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1610 | OBJS += ctrl_iface.o ctrl_iface_$(CONFIG_CTRL_IFACE).o |
| 1611 | endif |
| 1612 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1613 | ifdef CONFIG_CTRL_IFACE_DBUS_NEW |
Hai Shalom | 021b0b5 | 2019-04-10 11:17:58 -0700 | [diff] [blame] | 1614 | CFLAGS += -DCONFIG_CTRL_IFACE_DBUS_NEW |
| 1615 | OBJS += dbus/dbus_dict_helpers.o |
| 1616 | OBJS += dbus/dbus_new_helpers.o |
| 1617 | OBJS += dbus/dbus_new.o dbus/dbus_new_handlers.o |
| 1618 | OBJS += dbus/dbus_common.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1619 | ifdef CONFIG_WPS |
Hai Shalom | 021b0b5 | 2019-04-10 11:17:58 -0700 | [diff] [blame] | 1620 | OBJS += dbus/dbus_new_handlers_wps.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1621 | endif |
Jouni Malinen | 75ecf52 | 2011-06-27 15:19:46 -0700 | [diff] [blame] | 1622 | ifdef CONFIG_P2P |
Hai Shalom | 021b0b5 | 2019-04-10 11:17:58 -0700 | [diff] [blame] | 1623 | OBJS += dbus/dbus_new_handlers_p2p.o |
Jouni Malinen | 75ecf52 | 2011-06-27 15:19:46 -0700 | [diff] [blame] | 1624 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1625 | ifndef DBUS_LIBS |
Dmitry Shmidt | c55524a | 2011-07-07 11:18:38 -0700 | [diff] [blame] | 1626 | DBUS_LIBS := $(shell $(PKG_CONFIG) --libs dbus-1) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1627 | endif |
| 1628 | ifndef DBUS_INCLUDE |
Dmitry Shmidt | c55524a | 2011-07-07 11:18:38 -0700 | [diff] [blame] | 1629 | DBUS_INCLUDE := $(shell $(PKG_CONFIG) --cflags dbus-1) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1630 | endif |
| 1631 | ifdef CONFIG_CTRL_IFACE_DBUS_INTRO |
Hai Shalom | 021b0b5 | 2019-04-10 11:17:58 -0700 | [diff] [blame] | 1632 | OBJS += dbus/dbus_new_introspect.o |
| 1633 | CFLAGS += -DCONFIG_CTRL_IFACE_DBUS_INTRO |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1634 | endif |
Hai Shalom | 021b0b5 | 2019-04-10 11:17:58 -0700 | [diff] [blame] | 1635 | CFLAGS += $(DBUS_INCLUDE) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1636 | LIBS += $(DBUS_LIBS) |
Hai Shalom | 021b0b5 | 2019-04-10 11:17:58 -0700 | [diff] [blame] | 1637 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1638 | |
| 1639 | ifdef CONFIG_READLINE |
| 1640 | OBJS_c += ../src/utils/edit_readline.o |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1641 | LIBS_c += -lreadline -lncurses |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1642 | else |
| 1643 | ifdef CONFIG_WPA_CLI_EDIT |
| 1644 | OBJS_c += ../src/utils/edit.o |
| 1645 | else |
| 1646 | OBJS_c += ../src/utils/edit_simple.o |
| 1647 | endif |
| 1648 | endif |
| 1649 | |
| 1650 | ifdef CONFIG_NATIVE_WINDOWS |
| 1651 | CFLAGS += -DCONFIG_NATIVE_WINDOWS |
| 1652 | LIBS += -lws2_32 -lgdi32 -lcrypt32 |
| 1653 | LIBS_c += -lws2_32 |
| 1654 | LIBS_p += -lws2_32 -lgdi32 |
| 1655 | ifeq ($(CONFIG_CRYPTO), cryptoapi) |
| 1656 | LIBS_p += -lcrypt32 |
| 1657 | endif |
| 1658 | endif |
| 1659 | |
| 1660 | ifdef CONFIG_NO_STDOUT_DEBUG |
| 1661 | CFLAGS += -DCONFIG_NO_STDOUT_DEBUG |
| 1662 | ifndef CONFIG_CTRL_IFACE |
| 1663 | CFLAGS += -DCONFIG_NO_WPA_MSG |
| 1664 | endif |
| 1665 | endif |
| 1666 | |
| 1667 | ifdef CONFIG_IPV6 |
| 1668 | # for eapol_test only |
| 1669 | CFLAGS += -DCONFIG_IPV6 |
| 1670 | endif |
| 1671 | |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1672 | ifdef CONFIG_NO_LINUX_PACKET_SOCKET_WAR |
| 1673 | CFLAGS += -DCONFIG_NO_LINUX_PACKET_SOCKET_WAR |
| 1674 | endif |
| 1675 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1676 | ifdef NEED_BASE64 |
| 1677 | OBJS += ../src/utils/base64.o |
| 1678 | endif |
| 1679 | |
| 1680 | ifdef NEED_SME |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1681 | OBJS += sme.o |
| 1682 | CFLAGS += -DCONFIG_SME |
| 1683 | endif |
| 1684 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1685 | OBJS += ../src/common/ieee802_11_common.o |
Dmitry Shmidt | ff787d5 | 2015-01-12 13:01:47 -0800 | [diff] [blame] | 1686 | OBJS += ../src/common/hw_features_common.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1687 | |
| 1688 | ifdef NEED_EAP_COMMON |
| 1689 | OBJS += ../src/eap_common/eap_common.o |
| 1690 | endif |
| 1691 | |
| 1692 | ifndef CONFIG_MAIN |
| 1693 | CONFIG_MAIN=main |
| 1694 | endif |
| 1695 | |
| 1696 | ifdef CONFIG_DEBUG_SYSLOG |
| 1697 | CFLAGS += -DCONFIG_DEBUG_SYSLOG |
| 1698 | ifdef CONFIG_DEBUG_SYSLOG_FACILITY |
| 1699 | CFLAGS += -DLOG_HOSTAPD="$(CONFIG_DEBUG_SYSLOG_FACILITY)" |
| 1700 | endif |
| 1701 | endif |
| 1702 | |
Dmitry Shmidt | 0494959 | 2012-07-19 12:16:46 -0700 | [diff] [blame] | 1703 | ifdef CONFIG_DEBUG_LINUX_TRACING |
| 1704 | CFLAGS += -DCONFIG_DEBUG_LINUX_TRACING |
| 1705 | endif |
| 1706 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1707 | ifdef CONFIG_DEBUG_FILE |
| 1708 | CFLAGS += -DCONFIG_DEBUG_FILE |
| 1709 | endif |
| 1710 | |
| 1711 | ifdef CONFIG_DELAYED_MIC_ERROR_REPORT |
| 1712 | CFLAGS += -DCONFIG_DELAYED_MIC_ERROR_REPORT |
| 1713 | endif |
| 1714 | |
| 1715 | ifdef CONFIG_FIPS |
| 1716 | CFLAGS += -DCONFIG_FIPS |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1717 | ifneq ($(CONFIG_TLS), openssl) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1718 | ifneq ($(CONFIG_TLS), wolfssl) |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1719 | $(error CONFIG_FIPS=y requires CONFIG_TLS=openssl) |
| 1720 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1721 | endif |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1722 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1723 | |
| 1724 | OBJS += $(SHA1OBJS) $(DESOBJS) |
| 1725 | |
| 1726 | OBJS_p += $(SHA1OBJS) |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1727 | OBJS_p += $(SHA256OBJS) |
Dmitry Shmidt | 1d755d0 | 2015-04-28 10:34:29 -0700 | [diff] [blame] | 1728 | OBJS_priv += $(SHA1OBJS) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1729 | |
| 1730 | ifdef CONFIG_BGSCAN_SIMPLE |
| 1731 | CFLAGS += -DCONFIG_BGSCAN_SIMPLE |
| 1732 | OBJS += bgscan_simple.o |
| 1733 | NEED_BGSCAN=y |
| 1734 | endif |
| 1735 | |
| 1736 | ifdef CONFIG_BGSCAN_LEARN |
| 1737 | CFLAGS += -DCONFIG_BGSCAN_LEARN |
| 1738 | OBJS += bgscan_learn.o |
| 1739 | NEED_BGSCAN=y |
| 1740 | endif |
| 1741 | |
| 1742 | ifdef NEED_BGSCAN |
| 1743 | CFLAGS += -DCONFIG_BGSCAN |
| 1744 | OBJS += bgscan.o |
| 1745 | endif |
| 1746 | |
Dmitry Shmidt | 0494959 | 2012-07-19 12:16:46 -0700 | [diff] [blame] | 1747 | ifdef CONFIG_AUTOSCAN_EXPONENTIAL |
| 1748 | CFLAGS += -DCONFIG_AUTOSCAN_EXPONENTIAL |
| 1749 | OBJS += autoscan_exponential.o |
| 1750 | NEED_AUTOSCAN=y |
| 1751 | endif |
| 1752 | |
| 1753 | ifdef CONFIG_AUTOSCAN_PERIODIC |
| 1754 | CFLAGS += -DCONFIG_AUTOSCAN_PERIODIC |
| 1755 | OBJS += autoscan_periodic.o |
| 1756 | NEED_AUTOSCAN=y |
| 1757 | endif |
| 1758 | |
| 1759 | ifdef NEED_AUTOSCAN |
| 1760 | CFLAGS += -DCONFIG_AUTOSCAN |
| 1761 | OBJS += autoscan.o |
| 1762 | endif |
| 1763 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1764 | ifdef CONFIG_EXT_PASSWORD_TEST |
| 1765 | OBJS += ../src/utils/ext_password_test.o |
| 1766 | CFLAGS += -DCONFIG_EXT_PASSWORD_TEST |
| 1767 | NEED_EXT_PASSWORD=y |
| 1768 | endif |
| 1769 | |
Hai Shalom | 6084025 | 2021-02-19 19:02:11 -0800 | [diff] [blame] | 1770 | ifdef CONFIG_EXT_PASSWORD_FILE |
| 1771 | OBJS += ../src/utils/ext_password_file.o |
| 1772 | CFLAGS += -DCONFIG_EXT_PASSWORD_FILE |
| 1773 | NEED_EXT_PASSWORD=y |
| 1774 | endif |
| 1775 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 1776 | ifdef NEED_EXT_PASSWORD |
| 1777 | OBJS += ../src/utils/ext_password.o |
| 1778 | CFLAGS += -DCONFIG_EXT_PASSWORD |
| 1779 | endif |
| 1780 | |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1781 | ifdef NEED_GAS_SERVER |
| 1782 | OBJS += ../src/common/gas_server.o |
| 1783 | CFLAGS += -DCONFIG_GAS_SERVER |
| 1784 | NEED_GAS=y |
| 1785 | endif |
| 1786 | |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1787 | ifdef NEED_GAS |
| 1788 | OBJS += ../src/common/gas.o |
| 1789 | OBJS += gas_query.o |
| 1790 | CFLAGS += -DCONFIG_GAS |
| 1791 | NEED_OFFCHANNEL=y |
| 1792 | endif |
| 1793 | |
| 1794 | ifdef NEED_OFFCHANNEL |
| 1795 | OBJS += offchannel.o |
| 1796 | CFLAGS += -DCONFIG_OFFCHANNEL |
| 1797 | endif |
| 1798 | |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 1799 | ifdef NEED_JSON |
| 1800 | OBJS += ../src/utils/json.o |
| 1801 | CFLAGS += -DCONFIG_JSON |
| 1802 | endif |
| 1803 | |
Dmitry Shmidt | 7175743 | 2014-06-02 13:50:35 -0700 | [diff] [blame] | 1804 | ifdef CONFIG_MODULE_TESTS |
| 1805 | CFLAGS += -DCONFIG_MODULE_TESTS |
| 1806 | OBJS += wpas_module_tests.o |
| 1807 | OBJS += ../src/utils/utils_module_tests.o |
| 1808 | OBJS += ../src/common/common_module_tests.o |
Dmitry Shmidt | ff787d5 | 2015-01-12 13:01:47 -0800 | [diff] [blame] | 1809 | OBJS += ../src/crypto/crypto_module_tests.o |
Dmitry Shmidt | 7175743 | 2014-06-02 13:50:35 -0700 | [diff] [blame] | 1810 | ifdef CONFIG_WPS |
| 1811 | OBJS += ../src/wps/wps_module_tests.o |
| 1812 | endif |
| 1813 | endif |
| 1814 | |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1815 | OBJS += ../src/drivers/driver_common.o |
Dmitry Shmidt | a54fa5f | 2013-01-15 13:53:35 -0800 | [diff] [blame] | 1816 | OBJS_priv += ../src/drivers/driver_common.o |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1817 | |
Hai Shalom | 6084025 | 2021-02-19 19:02:11 -0800 | [diff] [blame] | 1818 | OBJS += wpa_supplicant.o events.o bssid_ignore.o wpas_glue.o scan.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1819 | OBJS_t := $(OBJS) $(OBJS_l2) eapol_test.o |
| 1820 | OBJS_t += ../src/radius/radius_client.o |
| 1821 | OBJS_t += ../src/radius/radius.o |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1822 | OBJS_t2 := $(OBJS) $(OBJS_l2) preauth_test.o |
Dmitry Shmidt | 0494959 | 2012-07-19 12:16:46 -0700 | [diff] [blame] | 1823 | |
| 1824 | OBJS_nfc := $(OBJS) $(OBJS_l2) nfc_pw_token.o |
| 1825 | OBJS_nfc += $(OBJS_d) ../src/drivers/drivers.o |
| 1826 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1827 | OBJS += $(CONFIG_MAIN).o |
| 1828 | |
| 1829 | ifdef CONFIG_PRIVSEP |
| 1830 | OBJS_priv += $(OBJS_d) ../src/drivers/drivers.o |
| 1831 | OBJS_priv += $(OBJS_l2) |
| 1832 | OBJS_priv += ../src/utils/os_$(CONFIG_OS).o |
| 1833 | OBJS_priv += ../src/utils/$(CONFIG_ELOOP).o |
| 1834 | OBJS_priv += ../src/utils/common.o |
| 1835 | OBJS_priv += ../src/utils/wpa_debug.o |
| 1836 | OBJS_priv += ../src/utils/wpabuf.o |
| 1837 | OBJS_priv += wpa_priv.o |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1838 | ifdef CONFIG_DRIVER_NL80211 |
| 1839 | OBJS_priv += ../src/common/ieee802_11_common.o |
| 1840 | endif |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1841 | OBJS += ../src/l2_packet/l2_packet_privsep.o |
| 1842 | OBJS += ../src/drivers/driver_privsep.o |
| 1843 | EXTRA_progs += wpa_priv |
| 1844 | else |
| 1845 | OBJS += $(OBJS_d) ../src/drivers/drivers.o |
| 1846 | OBJS += $(OBJS_l2) |
| 1847 | endif |
| 1848 | |
| 1849 | ifdef CONFIG_NDIS_EVENTS_INTEGRATED |
| 1850 | CFLAGS += -DCONFIG_NDIS_EVENTS_INTEGRATED |
| 1851 | OBJS += ../src/drivers/ndis_events.o |
| 1852 | EXTRALIBS += -loleaut32 -lole32 -luuid |
| 1853 | ifdef PLATFORMSDKLIB |
| 1854 | EXTRALIBS += $(PLATFORMSDKLIB)/WbemUuid.Lib |
| 1855 | else |
| 1856 | EXTRALIBS += WbemUuid.Lib |
| 1857 | endif |
| 1858 | endif |
| 1859 | |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1860 | ifdef CONFIG_FST |
| 1861 | CFLAGS += -DCONFIG_FST |
| 1862 | ifdef CONFIG_FST_TEST |
| 1863 | CFLAGS += -DCONFIG_FST_TEST |
| 1864 | endif |
| 1865 | FST_OBJS += ../src/fst/fst.o |
| 1866 | FST_OBJS += ../src/fst/fst_session.o |
| 1867 | FST_OBJS += ../src/fst/fst_iface.o |
| 1868 | FST_OBJS += ../src/fst/fst_group.o |
| 1869 | FST_OBJS += ../src/fst/fst_ctrl_aux.o |
| 1870 | ifdef CONFIG_CTRL_IFACE |
| 1871 | FST_OBJS += ../src/fst/fst_ctrl_iface.o |
| 1872 | endif |
| 1873 | OBJS += $(FST_OBJS) |
| 1874 | OBJS_t += $(FST_OBJS) |
| 1875 | OBJS_t2 += $(FST_OBJS) |
Dmitry Shmidt | e466304 | 2016-04-04 10:07:49 -0700 | [diff] [blame] | 1876 | OBJS_nfc += $(FST_OBJS) |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1877 | endif |
| 1878 | |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 1879 | ifdef CONFIG_WEP |
| 1880 | CFLAGS += -DCONFIG_WEP |
| 1881 | endif |
| 1882 | |
Hai Shalom | b755a2a | 2020-04-23 21:49:02 -0700 | [diff] [blame] | 1883 | ifdef CONFIG_NO_TKIP |
| 1884 | CFLAGS += -DCONFIG_NO_TKIP |
| 1885 | endif |
| 1886 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1887 | dynamic_eap_methods: $(EAPDYN) |
| 1888 | |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 1889 | _OBJS_VAR := OBJS_priv |
| 1890 | include ../src/objs.mk |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1891 | wpa_priv: $(BCHECK) $(OBJS_priv) |
| 1892 | $(Q)$(LDO) $(LDFLAGS) -o wpa_priv $(OBJS_priv) $(LIBS) |
| 1893 | @$(E) " LD " $@ |
| 1894 | |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 1895 | _OBJS_VAR := OBJS |
| 1896 | include ../src/objs.mk |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1897 | wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1898 | $(Q)$(LDO) $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS) $(EXTRALIBS) |
| 1899 | @$(E) " LD " $@ |
| 1900 | |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 1901 | _OBJS_VAR := OBJS_t |
| 1902 | include ../src/objs.mk |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1903 | eapol_test: $(OBJS_t) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1904 | $(Q)$(LDO) $(LDFLAGS) -o eapol_test $(OBJS_t) $(LIBS) |
| 1905 | @$(E) " LD " $@ |
| 1906 | |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 1907 | _OBJS_VAR := OBJS_t2 |
| 1908 | include ../src/objs.mk |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1909 | preauth_test: $(OBJS_t2) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1910 | $(Q)$(LDO) $(LDFLAGS) -o preauth_test $(OBJS_t2) $(LIBS) |
| 1911 | @$(E) " LD " $@ |
| 1912 | |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 1913 | _OBJS_VAR := OBJS_p |
| 1914 | include ../src/objs.mk |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1915 | wpa_passphrase: $(OBJS_p) |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 1916 | $(Q)$(LDO) $(LDFLAGS) -o wpa_passphrase $(OBJS_p) $(LIBS_p) $(LIBS) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1917 | @$(E) " LD " $@ |
| 1918 | |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 1919 | _OBJS_VAR := OBJS_c |
| 1920 | include ../src/objs.mk |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1921 | wpa_cli: $(OBJS_c) |
| 1922 | $(Q)$(LDO) $(LDFLAGS) -o wpa_cli $(OBJS_c) $(LIBS_c) |
| 1923 | @$(E) " LD " $@ |
| 1924 | |
Dmitry Shmidt | 7f65602 | 2015-02-25 14:36:37 -0800 | [diff] [blame] | 1925 | LIBCTRL += ../src/common/wpa_ctrl.o |
| 1926 | LIBCTRL += ../src/utils/os_$(CONFIG_OS).o |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1927 | LIBCTRL += ../src/utils/common.o |
Dmitry Shmidt | 7f65602 | 2015-02-25 14:36:37 -0800 | [diff] [blame] | 1928 | LIBCTRL += ../src/utils/wpa_debug.o |
Dmitry Shmidt | b1e5210 | 2015-05-29 12:36:29 -0700 | [diff] [blame] | 1929 | LIBCTRLSO += ../src/common/wpa_ctrl.c |
| 1930 | LIBCTRLSO += ../src/utils/os_$(CONFIG_OS).c |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1931 | LIBCTRLSO += ../src/utils/common.c |
Dmitry Shmidt | b1e5210 | 2015-05-29 12:36:29 -0700 | [diff] [blame] | 1932 | LIBCTRLSO += ../src/utils/wpa_debug.c |
Dmitry Shmidt | 7f65602 | 2015-02-25 14:36:37 -0800 | [diff] [blame] | 1933 | |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 1934 | _OBJS_VAR := LIBCTRL |
| 1935 | include ../src/objs.mk |
Dmitry Shmidt | b1e5210 | 2015-05-29 12:36:29 -0700 | [diff] [blame] | 1936 | libwpa_client.a: $(LIBCTRL) |
Dmitry Shmidt | 7f65602 | 2015-02-25 14:36:37 -0800 | [diff] [blame] | 1937 | $(Q)rm -f $@ |
| 1938 | $(Q)$(AR) crs $@ $? |
| 1939 | @$(E) " AR " $@ |
| 1940 | |
Dmitry Shmidt | b1e5210 | 2015-05-29 12:36:29 -0700 | [diff] [blame] | 1941 | libwpa_client.so: $(LIBCTRLSO) |
| 1942 | @$(E) " CC $@ ($^)" |
| 1943 | $(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -fPIC $^ |
| 1944 | |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 1945 | OBJS_wpatest := libwpa_test.o |
| 1946 | _OBJS_VAR := OBJS_wpatest |
| 1947 | include ../src/objs.mk |
| 1948 | libwpa_test1: $(OBJS_wpatest) libwpa_client.a |
| 1949 | $(Q)$(LDO) $(LDFLAGS) -o libwpa_test1 $(OBJS_wpatest) libwpa_client.a $(LIBS_c) |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 1950 | @$(E) " LD " $@ |
| 1951 | |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 1952 | libwpa_test2: $(OBJS_wpatest) libwpa_client.so |
| 1953 | $(Q)$(LDO) $(LDFLAGS) -o libwpa_test2 $(OBJS_wpatest) -L. -lwpa_client $(LIBS_c) |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1954 | @$(E) " LD " $@ |
| 1955 | |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 1956 | _OBJS_VAR := OBJS_nfc |
| 1957 | include ../src/objs.mk |
Dmitry Shmidt | 0494959 | 2012-07-19 12:16:46 -0700 | [diff] [blame] | 1958 | nfc_pw_token: $(OBJS_nfc) |
| 1959 | $(Q)$(LDO) $(LDFLAGS) -o nfc_pw_token $(OBJS_nfc) $(LIBS) |
| 1960 | @$(E) " LD " $@ |
| 1961 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1962 | win_if_list: win_if_list.c |
| 1963 | $(Q)$(LDO) $(LDFLAGS) -o $@ win_if_list.c $(CFLAGS) $(LIBS_w) |
| 1964 | @$(E) " LD " $@ |
| 1965 | |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 1966 | eap_psk.so: $(SRC_EAP_PSK) |
| 1967 | $(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \ |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1968 | -Deap_peer_psk_register=eap_peer_method_dynamic_init |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 1969 | @$(E) " CC/LD " $@ |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1970 | |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 1971 | eap_pax.so: $(SRC_EAP_PAX) |
| 1972 | $(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \ |
| 1973 | -D$(@F:eap_%.so=eap_peer_%)_register=eap_peer_method_dynamic_init |
| 1974 | @$(E) " CC/LD " $@ |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1975 | |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 1976 | eap_peap.so: $(SRC_EAP_PEAP) |
| 1977 | $(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \ |
| 1978 | -D$(@F:eap_%.so=eap_peer_%)_register=eap_peer_method_dynamic_init |
| 1979 | @$(E) " CC/LD " $@ |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1980 | |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 1981 | eap_sake.so: $(SRC_EAP_SAKE) |
| 1982 | $(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \ |
| 1983 | -D$(@F:eap_%.so=eap_peer_%)_register=eap_peer_method_dynamic_init |
| 1984 | @$(E) " CC/LD " $@ |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1985 | |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 1986 | eap_ikev2.so: $(SRC_EAP_IKEV2) |
| 1987 | $(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \ |
| 1988 | -D$(@F:eap_%.so=eap_peer_%)_register=eap_peer_method_dynamic_init |
| 1989 | @$(E) " CC/LD " $@ |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1990 | |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 1991 | eap_eke.so: $(SRC_EAP_EKE) |
| 1992 | $(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \ |
| 1993 | -D$(@F:eap_%.so=eap_peer_%)_register=eap_peer_method_dynamic_init |
| 1994 | @$(E) " CC/LD " $@ |
Dmitry Shmidt | 34af306 | 2013-07-11 10:46:32 -0700 | [diff] [blame] | 1995 | |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 1996 | eap_mschapv2.so: $(SRC_EAP_MSCHAPV2) |
| 1997 | $(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \ |
| 1998 | -D$(@F:eap_%.so=eap_peer_%)_register=eap_peer_method_dynamic_init |
| 1999 | @$(E) " CC/LD " $@ |
| 2000 | |
| 2001 | eap_fast.so: $(SRC_EAP_FAST) |
| 2002 | $(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \ |
| 2003 | -D$(@F:eap_%.so=eap_peer_%)_register=eap_peer_method_dynamic_init |
| 2004 | @$(E) " CC/LD " $@ |
| 2005 | |
| 2006 | eap_teap.so: $(SRC_EAP_TEAP) |
| 2007 | $(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \ |
| 2008 | -D$(@F:eap_%.so=eap_peer_%)_register=eap_peer_method_dynamic_init |
| 2009 | @$(E) " CC/LD " $@ |
| 2010 | |
| 2011 | eap_gpsk.so: $(SRC_EAP_GPSK) |
| 2012 | $(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \ |
| 2013 | -D$(@F:eap_%.so=eap_peer_%)_register=eap_peer_method_dynamic_init |
| 2014 | @$(E) " CC/LD " $@ |
| 2015 | |
| 2016 | %.so: ../src/eap_peer/%.c |
| 2017 | $(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $< \ |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 2018 | -D$(*F:eap_%=eap_peer_%)_register=eap_peer_method_dynamic_init |
Hai Shalom | a20dcd7 | 2022-02-04 13:43:00 -0800 | [diff] [blame^] | 2019 | @$(E) " CC/LD " $@ |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 2020 | |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 2021 | %.service: %.service.in |
Hai Shalom | 021b0b5 | 2019-04-10 11:17:58 -0700 | [diff] [blame] | 2022 | $(Q)sed -e 's|\@BINDIR\@|$(BINDIR)|g' $< >$@ |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 2023 | @$(E) " sed" $< |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 2024 | |
Dmitry Shmidt | c5ec7f5 | 2012-03-06 16:33:24 -0800 | [diff] [blame] | 2025 | %@.service: %.service.arg.in |
Hai Shalom | 021b0b5 | 2019-04-10 11:17:58 -0700 | [diff] [blame] | 2026 | $(Q)sed -e 's|\@BINDIR\@|$(BINDIR)|g' $< >$@ |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 2027 | @$(E) " sed" $< |
Dmitry Shmidt | c5ec7f5 | 2012-03-06 16:33:24 -0800 | [diff] [blame] | 2028 | |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 2029 | wpa_supplicant.exe: wpa_supplicant |
| 2030 | mv -f $< $@ |
| 2031 | wpa_cli.exe: wpa_cli |
| 2032 | mv -f $< $@ |
| 2033 | wpa_passphrase.exe: wpa_passphrase |
| 2034 | mv -f $< $@ |
| 2035 | win_if_list.exe: win_if_list |
| 2036 | mv -f $< $@ |
| 2037 | eapol_test.exe: eapol_test |
| 2038 | mv -f $< $@ |
| 2039 | |
| 2040 | WINALL=wpa_supplicant.exe wpa_cli.exe wpa_passphrase.exe win_if_list.exe |
| 2041 | |
| 2042 | windows-bin: $(WINALL) |
| 2043 | $(STRIP) $(WINALL) |
| 2044 | |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 2045 | wpa_gui: |
| 2046 | @echo "wpa_gui has been removed - see wpa_gui-qt4 for replacement" |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 2047 | |
| 2048 | wpa_gui-qt4/Makefile: |
Dmitry Shmidt | 1d755d0 | 2015-04-28 10:34:29 -0700 | [diff] [blame] | 2049 | qmake -o wpa_gui-qt4/Makefile wpa_gui-qt4/wpa_gui.pro |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 2050 | |
| 2051 | wpa_gui-qt4/lang/wpa_gui_de.qm: wpa_gui-qt4/lang/wpa_gui_de.ts |
| 2052 | lrelease wpa_gui-qt4/wpa_gui.pro |
| 2053 | |
| 2054 | wpa_gui-qt4: wpa_gui-qt4/Makefile wpa_gui-qt4/lang/wpa_gui_de.qm |
| 2055 | $(MAKE) -C wpa_gui-qt4 |
| 2056 | |
Dmitry Shmidt | 61d9df3 | 2012-08-29 16:22:06 -0700 | [diff] [blame] | 2057 | FIPSDIR=/usr/local/ssl/fips-2.0 |
| 2058 | FIPSLD=$(FIPSDIR)/bin/fipsld |
| 2059 | fips: |
| 2060 | $(MAKE) CC=$(FIPSLD) FIPSLD_CC="$(CC)" |
| 2061 | |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 2062 | .PHONY: lcov-html |
| 2063 | lcov-html: $(call BUILDOBJ,wpa_supplicant.gcda) |
| 2064 | lcov -c -d $(BUILDDIR) > lcov.info |
Dmitry Shmidt | fb79edc | 2014-01-10 10:45:54 -0800 | [diff] [blame] | 2065 | genhtml lcov.info --output-directory lcov-html |
| 2066 | |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 2067 | clean: common-clean |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 2068 | $(MAKE) -C ../src clean |
| 2069 | $(MAKE) -C dbus clean |
Dmitry Shmidt | 01904cf | 2013-12-05 11:08:35 -0800 | [diff] [blame] | 2070 | rm -f core *~ *.o *.d *.gcno *.gcda *.gcov |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 2071 | rm -f eap_*.so $(WINALL) eapol_test preauth_test |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 2072 | rm -f wpa_priv |
Dmitry Shmidt | 0494959 | 2012-07-19 12:16:46 -0700 | [diff] [blame] | 2073 | rm -f nfc_pw_token |
Dmitry Shmidt | fb79edc | 2014-01-10 10:45:54 -0800 | [diff] [blame] | 2074 | rm -f lcov.info |
| 2075 | rm -rf lcov-html |
Dmitry Shmidt | b1e5210 | 2015-05-29 12:36:29 -0700 | [diff] [blame] | 2076 | rm -f libwpa_client.a |
| 2077 | rm -f libwpa_client.so |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 2078 | rm -f libwpa_test1 libwpa_test2 |