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