2020-09-18 11:49:48 +02:00
|
|
|
BINALL=wpa_supplicant wpa_cli
|
|
|
|
|
|
|
|
ALL = $(BINALL)
|
|
|
|
ALL += systemd/wpa_supplicant.service
|
|
|
|
ALL += systemd/wpa_supplicant@.service
|
|
|
|
ALL += systemd/wpa_supplicant-nl80211@.service
|
|
|
|
ALL += systemd/wpa_supplicant-wired@.service
|
|
|
|
ALL += dbus/fi.w1.wpa_supplicant1.service
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2020-09-18 11:49:48 +02:00
|
|
|
EXTRA_TARGETS=dynamic_eap_methods
|
|
|
|
|
2020-09-18 11:49:52 +02:00
|
|
|
CONFIG_FILE=.config
|
2020-09-18 11:49:48 +02:00
|
|
|
include ../src/build.rules
|
|
|
|
|
2022-02-22 09:52:19 +01:00
|
|
|
ifdef CONFIG_BUILD_WPA_CLIENT_SO
|
|
|
|
# add the dependency this way to allow CONFIG_BUILD_WPA_CLIENT_SO
|
|
|
|
# being set in the config which is read by build.rules
|
|
|
|
_all: libwpa_client.so
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef CONFIG_NO_WPA_PASSPHRASE
|
|
|
|
# add the dependency this way to allow CONFIG_NO_WPA_PASSPHRASE
|
|
|
|
# being set in the config which is read by build.rules
|
|
|
|
_all: wpa_passphrase
|
|
|
|
endif
|
|
|
|
|
2015-12-28 12:06:43 +01:00
|
|
|
ifdef LIBS
|
|
|
|
# If LIBS is set with some global build system defaults, clone those for
|
|
|
|
# LIBS_c and LIBS_p to cover wpa_passphrase and wpa_cli as well.
|
|
|
|
ifndef LIBS_c
|
|
|
|
LIBS_c := $(LIBS)
|
|
|
|
endif
|
|
|
|
ifndef LIBS_p
|
|
|
|
LIBS_p := $(LIBS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2021-10-21 12:00:03 +02:00
|
|
|
export LIBDIR ?= /usr/local/lib
|
|
|
|
export INCDIR ?= /usr/local/include
|
|
|
|
export BINDIR ?= /usr/local/sbin
|
2011-07-04 19:35:38 +02:00
|
|
|
PKG_CONFIG ?= pkg-config
|
2009-02-15 13:22:50 +01:00
|
|
|
|
2014-02-25 20:06:08 +01:00
|
|
|
CFLAGS += $(EXTRA_CFLAGS)
|
2013-12-25 12:44:38 +01:00
|
|
|
CFLAGS += -I$(abspath ../src)
|
|
|
|
CFLAGS += -I$(abspath ../src/utils)
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2015-10-16 21:20:55 +02:00
|
|
|
ifndef CONFIG_NO_GITVER
|
|
|
|
# Add VERSION_STR postfix for builds from a git repository
|
|
|
|
ifeq ($(wildcard ../.git),../.git)
|
|
|
|
GITVER := $(shell git describe --dirty=+)
|
|
|
|
ifneq ($(GITVER),)
|
|
|
|
CFLAGS += -DGIT_VERSION_STR_POSTFIX=\"-$(GITVER)\"
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2013-11-28 14:34:24 +01:00
|
|
|
ifdef CONFIG_TESTING_OPTIONS
|
|
|
|
CFLAGS += -DCONFIG_TESTING_OPTIONS
|
|
|
|
CONFIG_WPS_TESTING=y
|
|
|
|
CONFIG_TDLS_TESTING=y
|
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
mkconfig:
|
2010-04-17 16:15:23 +02:00
|
|
|
@if [ -f .config ]; then \
|
2008-02-28 02:34:43 +01:00
|
|
|
echo '.config exists - did not replace it'; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
echo CONFIG_DRIVER_HOSTAP=y >> .config
|
|
|
|
echo CONFIG_DRIVER_WEXT=y >> .config
|
|
|
|
|
2012-01-29 13:18:22 +01:00
|
|
|
$(DESTDIR)$(BINDIR)/%: %
|
|
|
|
install -D $(<) $(@)
|
|
|
|
|
2012-01-29 13:20:41 +01:00
|
|
|
install: $(addprefix $(DESTDIR)$(BINDIR)/,$(BINALL))
|
2009-02-15 13:22:50 +01:00
|
|
|
$(MAKE) -C ../src install
|
2022-04-21 16:38:42 +02:00
|
|
|
ifndef CONFIG_NO_WPA_PASSPHRASE
|
|
|
|
install -D wpa_passphrase $(DESTDIR)/$(BINDIR)/wpa_passphrase
|
|
|
|
endif
|
2015-05-09 00:32:36 +02:00
|
|
|
ifdef CONFIG_BUILD_WPA_CLIENT_SO
|
|
|
|
install -m 0644 -D libwpa_client.so $(DESTDIR)/$(LIBDIR)/libwpa_client.so
|
|
|
|
install -m 0644 -D ../src/common/wpa_ctrl.h $(DESTDIR)/$(INCDIR)/wpa_ctrl.h
|
|
|
|
endif
|
2021-02-27 22:42:21 +01:00
|
|
|
if ls eap_*.so >/dev/null 2>&1; then \
|
|
|
|
install -d $(DESTDIR)$(LIBDIR)/wpa_supplicant && \
|
|
|
|
cp *.so $(DESTDIR)$(LIBDIR)/wpa_supplicant \
|
|
|
|
; fi
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2012-08-16 20:49:41 +02:00
|
|
|
ifdef CONFIG_FIPS
|
|
|
|
CONFIG_NO_RANDOM_POOL=
|
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
OBJS = config.o
|
2009-09-13 19:53:32 +02:00
|
|
|
OBJS += notify.o
|
2009-12-28 00:14:56 +01:00
|
|
|
OBJS += bss.o
|
2009-12-06 10:28:41 +01:00
|
|
|
OBJS += eap_register.o
|
2008-02-28 02:34:43 +01:00
|
|
|
OBJS += ../src/utils/common.o
|
2021-02-14 12:16:28 +01:00
|
|
|
OBJS += ../src/utils/config.o
|
2008-02-28 02:34:43 +01:00
|
|
|
OBJS += ../src/utils/wpa_debug.o
|
|
|
|
OBJS += ../src/utils/wpabuf.o
|
2016-12-28 14:06:47 +01:00
|
|
|
OBJS += ../src/utils/bitfield.o
|
2019-09-08 16:38:53 +02:00
|
|
|
OBJS += ../src/utils/ip_addr.o
|
2019-06-19 14:49:15 +02:00
|
|
|
OBJS += ../src/utils/crc32.o
|
2016-12-02 09:54:39 +01:00
|
|
|
OBJS += op_classes.o
|
2016-12-28 14:06:34 +01:00
|
|
|
OBJS += rrm.o
|
2021-03-06 17:18:38 +01:00
|
|
|
OBJS += twt.o
|
2020-08-04 16:42:24 +02:00
|
|
|
OBJS += robust_av.o
|
2008-02-28 02:34:43 +01:00
|
|
|
OBJS_p = wpa_passphrase.o
|
|
|
|
OBJS_p += ../src/utils/common.o
|
|
|
|
OBJS_p += ../src/utils/wpa_debug.o
|
2009-10-11 18:17:22 +02:00
|
|
|
OBJS_p += ../src/utils/wpabuf.o
|
2008-02-28 02:34:43 +01:00
|
|
|
OBJS_c = wpa_cli.o ../src/common/wpa_ctrl.o
|
2010-11-14 18:15:23 +01:00
|
|
|
OBJS_c += ../src/utils/wpa_debug.o
|
2011-10-28 22:37:34 +02:00
|
|
|
OBJS_c += ../src/utils/common.o
|
2016-07-07 14:04:34 +02:00
|
|
|
OBJS_c += ../src/common/cli.o
|
2014-10-22 14:03:54 +02:00
|
|
|
OBJS += wmm_ac.o
|
2008-02-28 02:34:43 +01:00
|
|
|
|
|
|
|
ifndef CONFIG_OS
|
|
|
|
ifdef CONFIG_NATIVE_WINDOWS
|
|
|
|
CONFIG_OS=win32
|
|
|
|
else
|
|
|
|
CONFIG_OS=unix
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_OS), internal)
|
|
|
|
CFLAGS += -DOS_NO_C_LIB_DEFINES
|
|
|
|
endif
|
|
|
|
|
|
|
|
OBJS += ../src/utils/os_$(CONFIG_OS).o
|
|
|
|
OBJS_p += ../src/utils/os_$(CONFIG_OS).o
|
|
|
|
OBJS_c += ../src/utils/os_$(CONFIG_OS).o
|
|
|
|
|
2009-12-19 17:40:54 +01:00
|
|
|
ifdef CONFIG_WPA_TRACE
|
|
|
|
CFLAGS += -DWPA_TRACE
|
|
|
|
OBJS += ../src/utils/trace.o
|
2009-12-19 20:47:56 +01:00
|
|
|
OBJS_p += ../src/utils/trace.o
|
|
|
|
OBJS_c += ../src/utils/trace.o
|
2011-10-22 21:18:54 +02:00
|
|
|
OBJS_priv += ../src/utils/trace.o
|
2015-02-21 16:39:08 +01:00
|
|
|
LIBCTRL += ../src/utils/trace.o
|
2015-05-09 00:32:36 +02:00
|
|
|
LIBCTRLSO += ../src/utils/trace.c
|
2009-12-20 22:35:06 +01:00
|
|
|
LDFLAGS += -rdynamic
|
|
|
|
CFLAGS += -funwind-tables
|
|
|
|
ifdef CONFIG_WPA_TRACE_BFD
|
2014-02-17 20:02:47 +01:00
|
|
|
CFLAGS += -DPACKAGE="wpa_supplicant" -DWPA_TRACE_BFD
|
2014-02-19 20:46:11 +01:00
|
|
|
LIBS += -lbfd -ldl -liberty -lz
|
|
|
|
LIBS_p += -lbfd -ldl -liberty -lz
|
|
|
|
LIBS_c += -lbfd -ldl -liberty -lz
|
2009-12-20 22:35:06 +01:00
|
|
|
endif
|
2009-12-19 17:40:54 +01:00
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifndef CONFIG_ELOOP
|
|
|
|
CONFIG_ELOOP=eloop
|
|
|
|
endif
|
|
|
|
OBJS += ../src/utils/$(CONFIG_ELOOP).o
|
2010-11-14 12:16:51 +01:00
|
|
|
OBJS_c += ../src/utils/$(CONFIG_ELOOP).o
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2015-09-22 17:24:12 +02:00
|
|
|
ifndef CONFIG_OSX
|
2013-11-20 11:01:09 +01:00
|
|
|
ifeq ($(CONFIG_ELOOP), eloop)
|
|
|
|
# Using glibc < 2.17 requires -lrt for clock_gettime()
|
2015-09-22 17:24:12 +02:00
|
|
|
# OS X has an alternate implementation
|
2013-11-20 11:01:09 +01:00
|
|
|
LIBS += -lrt
|
|
|
|
LIBS_c += -lrt
|
|
|
|
LIBS_p += -lrt
|
|
|
|
endif
|
2015-09-22 17:24:12 +02:00
|
|
|
endif
|
2013-11-20 11:01:09 +01:00
|
|
|
|
2012-02-12 16:47:23 +01:00
|
|
|
ifdef CONFIG_ELOOP_POLL
|
|
|
|
CFLAGS += -DCONFIG_ELOOP_POLL
|
|
|
|
endif
|
|
|
|
|
2014-05-13 02:35:48 +02:00
|
|
|
ifdef CONFIG_ELOOP_EPOLL
|
|
|
|
CFLAGS += -DCONFIG_ELOOP_EPOLL
|
|
|
|
endif
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2016-01-22 21:28:25 +01:00
|
|
|
ifdef CONFIG_ELOOP_KQUEUE
|
|
|
|
CFLAGS += -DCONFIG_ELOOP_KQUEUE
|
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifdef CONFIG_EAPOL_TEST
|
|
|
|
CFLAGS += -Werror -DEAPOL_TEST
|
|
|
|
endif
|
|
|
|
|
2013-11-24 18:16:12 +01:00
|
|
|
ifdef CONFIG_CODE_COVERAGE
|
|
|
|
CFLAGS += -O0 -fprofile-arcs -ftest-coverage
|
|
|
|
LIBS += -lgcov
|
|
|
|
LIBS_c += -lgcov
|
|
|
|
LIBS_p += -lgcov
|
|
|
|
endif
|
|
|
|
|
2012-01-29 20:01:31 +01:00
|
|
|
ifdef CONFIG_HT_OVERRIDES
|
|
|
|
CFLAGS += -DCONFIG_HT_OVERRIDES
|
|
|
|
endif
|
|
|
|
|
2013-03-10 17:04:39 +01:00
|
|
|
ifdef CONFIG_VHT_OVERRIDES
|
|
|
|
CFLAGS += -DCONFIG_VHT_OVERRIDES
|
|
|
|
endif
|
|
|
|
|
2020-03-09 11:53:50 +01:00
|
|
|
ifdef CONFIG_HE_OVERRIDES
|
|
|
|
CFLAGS += -DCONFIG_HE_OVERRIDES
|
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifndef CONFIG_BACKEND
|
|
|
|
CONFIG_BACKEND=file
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_BACKEND), file)
|
|
|
|
OBJS += config_file.o
|
|
|
|
ifndef CONFIG_NO_CONFIG_BLOBS
|
|
|
|
NEED_BASE64=y
|
|
|
|
endif
|
|
|
|
CFLAGS += -DCONFIG_BACKEND_FILE
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_BACKEND), winreg)
|
|
|
|
OBJS += config_winreg.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_BACKEND), none)
|
|
|
|
OBJS += config_none.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_NO_CONFIG_WRITE
|
|
|
|
CFLAGS += -DCONFIG_NO_CONFIG_WRITE
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_NO_CONFIG_BLOBS
|
|
|
|
CFLAGS += -DCONFIG_NO_CONFIG_BLOBS
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_NO_SCAN_PROCESSING
|
|
|
|
CFLAGS += -DCONFIG_NO_SCAN_PROCESSING
|
|
|
|
endif
|
|
|
|
|
2014-11-16 12:22:46 +01:00
|
|
|
ifdef CONFIG_SUITEB
|
|
|
|
CFLAGS += -DCONFIG_SUITEB
|
|
|
|
endif
|
|
|
|
|
2015-01-25 22:32:01 +01:00
|
|
|
ifdef CONFIG_SUITEB192
|
|
|
|
CFLAGS += -DCONFIG_SUITEB192
|
|
|
|
NEED_SHA384=y
|
|
|
|
endif
|
|
|
|
|
2018-08-06 21:46:25 +02:00
|
|
|
ifdef CONFIG_OCV
|
|
|
|
CFLAGS += -DCONFIG_OCV
|
2018-08-06 21:46:26 +02:00
|
|
|
OBJS += ../src/common/ocv.o
|
2009-10-11 21:04:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_IEEE80211R
|
|
|
|
CFLAGS += -DCONFIG_IEEE80211R
|
|
|
|
OBJS += ../src/rsn_supp/wpa_ft.o
|
|
|
|
endif
|
|
|
|
|
2014-09-01 06:23:23 +02:00
|
|
|
ifdef CONFIG_MESH
|
|
|
|
NEED_80211_COMMON=y
|
2014-09-01 06:23:29 +02:00
|
|
|
NEED_AES_SIV=y
|
|
|
|
CONFIG_SAE=y
|
|
|
|
CONFIG_AP=y
|
2014-09-01 06:23:23 +02:00
|
|
|
CFLAGS += -DCONFIG_MESH
|
2014-09-01 06:23:21 +02:00
|
|
|
OBJS += mesh.o
|
2014-03-11 05:07:01 +01:00
|
|
|
OBJS += mesh_mpm.o
|
2014-09-01 06:23:29 +02:00
|
|
|
OBJS += mesh_rsn.o
|
2014-09-01 06:23:23 +02:00
|
|
|
endif
|
|
|
|
|
2012-09-30 18:51:07 +02:00
|
|
|
ifdef CONFIG_SAE
|
|
|
|
CFLAGS += -DCONFIG_SAE
|
2012-12-30 21:06:11 +01:00
|
|
|
OBJS += ../src/common/sae.o
|
2020-05-30 22:30:42 +02:00
|
|
|
ifdef CONFIG_SAE_PK
|
|
|
|
CFLAGS += -DCONFIG_SAE_PK
|
|
|
|
OBJS += ../src/common/sae_pk.o
|
|
|
|
endif
|
2012-12-31 18:41:21 +01:00
|
|
|
NEED_ECC=y
|
2013-01-05 20:22:00 +01:00
|
|
|
NEED_DH_GROUPS=y
|
2020-04-04 17:08:14 +02:00
|
|
|
NEED_HMAC_SHA256_KDF=y
|
2019-04-25 18:45:27 +02:00
|
|
|
NEED_DRAGONFLY=y
|
2019-12-20 11:36:46 +01:00
|
|
|
ifdef CONFIG_TESTING_OPTIONS
|
|
|
|
NEED_DH_GROUPS_ALL=y
|
|
|
|
endif
|
2012-09-30 18:51:07 +02:00
|
|
|
endif
|
|
|
|
|
2017-06-15 20:18:10 +02:00
|
|
|
ifdef CONFIG_DPP
|
|
|
|
CFLAGS += -DCONFIG_DPP
|
|
|
|
OBJS += ../src/common/dpp.o
|
2020-05-11 00:16:12 +02:00
|
|
|
OBJS += ../src/common/dpp_auth.o
|
2020-05-11 00:30:13 +02:00
|
|
|
OBJS += ../src/common/dpp_backup.o
|
2020-05-10 15:25:42 +02:00
|
|
|
OBJS += ../src/common/dpp_crypto.o
|
2020-05-10 15:51:46 +02:00
|
|
|
OBJS += ../src/common/dpp_pkex.o
|
2020-05-01 23:02:15 +02:00
|
|
|
OBJS += ../src/common/dpp_reconfig.o
|
2020-05-11 10:59:46 +02:00
|
|
|
OBJS += ../src/common/dpp_tcp.o
|
2017-06-15 20:18:10 +02:00
|
|
|
OBJS += dpp_supplicant.o
|
2017-06-15 20:18:12 +02:00
|
|
|
NEED_AES_SIV=y
|
|
|
|
NEED_HMAC_SHA256_KDF=y
|
|
|
|
NEED_HMAC_SHA384_KDF=y
|
|
|
|
NEED_HMAC_SHA512_KDF=y
|
|
|
|
NEED_SHA384=y
|
|
|
|
NEED_SHA512=y
|
2019-09-08 16:38:53 +02:00
|
|
|
NEED_ECC=y
|
2017-06-15 20:18:15 +02:00
|
|
|
NEED_JSON=y
|
|
|
|
NEED_GAS_SERVER=y
|
2017-09-01 20:15:34 +02:00
|
|
|
NEED_BASE64=y
|
2019-12-12 01:28:39 +01:00
|
|
|
NEED_ASN1=y
|
2019-03-13 11:00:09 +01:00
|
|
|
ifdef CONFIG_DPP2
|
|
|
|
CFLAGS += -DCONFIG_DPP2
|
|
|
|
endif
|
2021-12-03 11:09:18 +01:00
|
|
|
ifdef CONFIG_DPP3
|
|
|
|
CFLAGS += -DCONFIG_DPP3
|
|
|
|
endif
|
2017-06-15 20:18:10 +02:00
|
|
|
endif
|
|
|
|
|
2017-03-11 23:38:24 +01:00
|
|
|
ifdef CONFIG_OWE
|
|
|
|
CFLAGS += -DCONFIG_OWE
|
|
|
|
NEED_ECC=y
|
|
|
|
NEED_HMAC_SHA256_KDF=y
|
2017-10-08 15:39:08 +02:00
|
|
|
NEED_HMAC_SHA384_KDF=y
|
|
|
|
NEED_HMAC_SHA512_KDF=y
|
|
|
|
NEED_SHA384=y
|
|
|
|
NEED_SHA512=y
|
2017-03-11 23:38:24 +01:00
|
|
|
endif
|
|
|
|
|
2015-09-01 16:58:53 +02:00
|
|
|
ifdef CONFIG_FILS
|
|
|
|
CFLAGS += -DCONFIG_FILS
|
|
|
|
NEED_SHA384=y
|
2015-09-03 11:34:23 +02:00
|
|
|
NEED_AES_SIV=y
|
2017-03-12 21:45:35 +01:00
|
|
|
ifdef CONFIG_FILS_SK_PFS
|
|
|
|
CFLAGS += -DCONFIG_FILS_SK_PFS
|
|
|
|
NEED_ECC=y
|
|
|
|
endif
|
2015-09-01 16:58:53 +02:00
|
|
|
endif
|
|
|
|
|
2017-05-01 16:33:10 +02:00
|
|
|
ifdef CONFIG_MBO
|
|
|
|
CONFIG_WNM=y
|
|
|
|
endif
|
|
|
|
|
2012-12-16 17:22:54 +01:00
|
|
|
ifdef CONFIG_WNM
|
|
|
|
CFLAGS += -DCONFIG_WNM
|
2012-02-26 16:27:19 +01:00
|
|
|
OBJS += wnm_sta.o
|
|
|
|
endif
|
|
|
|
|
2010-10-07 09:26:56 +02:00
|
|
|
ifdef CONFIG_TDLS
|
|
|
|
CFLAGS += -DCONFIG_TDLS
|
|
|
|
OBJS += ../src/rsn_supp/tdls.o
|
|
|
|
endif
|
|
|
|
|
2011-09-26 12:55:22 +02:00
|
|
|
ifdef CONFIG_TDLS_TESTING
|
|
|
|
CFLAGS += -DCONFIG_TDLS_TESTING
|
|
|
|
endif
|
|
|
|
|
2016-12-12 22:47:04 +01:00
|
|
|
ifdef CONFIG_PMKSA_CACHE_EXTERNAL
|
|
|
|
CFLAGS += -DCONFIG_PMKSA_CACHE_EXTERNAL
|
|
|
|
endif
|
|
|
|
|
2009-10-11 21:04:29 +02:00
|
|
|
ifndef CONFIG_NO_WPA
|
|
|
|
OBJS += ../src/rsn_supp/wpa.o
|
|
|
|
OBJS += ../src/rsn_supp/preauth.o
|
|
|
|
OBJS += ../src/rsn_supp/pmksa_cache.o
|
|
|
|
OBJS += ../src/rsn_supp/wpa_ie.o
|
|
|
|
OBJS += ../src/common/wpa_common.o
|
|
|
|
NEED_AES=y
|
|
|
|
NEED_SHA1=y
|
|
|
|
NEED_MD5=y
|
|
|
|
NEED_RC4=y
|
|
|
|
else
|
2013-06-07 19:13:25 +02:00
|
|
|
CFLAGS += -DCONFIG_NO_WPA
|
2015-11-23 22:34:52 +01:00
|
|
|
ifeq ($(CONFIG_TLS), internal)
|
|
|
|
NEED_SHA1=y
|
|
|
|
NEED_MD5=y
|
|
|
|
endif
|
2009-10-11 21:04:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_IBSS_RSN
|
2009-12-04 20:34:34 +01:00
|
|
|
NEED_RSN_AUTHENTICATOR=y
|
2009-10-11 21:04:29 +02:00
|
|
|
CFLAGS += -DCONFIG_IBSS_RSN
|
2016-03-21 20:09:03 +01:00
|
|
|
CFLAGS += -DCONFIG_NO_VLAN
|
2009-10-11 21:04:29 +02:00
|
|
|
OBJS += ibss_rsn.o
|
|
|
|
endif
|
|
|
|
|
2016-03-15 14:40:14 +01:00
|
|
|
ifdef CONFIG_MATCH_IFACE
|
|
|
|
CFLAGS += -DCONFIG_MATCH_IFACE
|
|
|
|
endif
|
|
|
|
|
2010-07-18 23:30:25 +02:00
|
|
|
ifdef CONFIG_P2P
|
|
|
|
OBJS += p2p_supplicant.o
|
2015-03-15 19:25:48 +01:00
|
|
|
OBJS += p2p_supplicant_sd.o
|
2010-07-18 23:30:25 +02:00
|
|
|
OBJS += ../src/p2p/p2p.o
|
|
|
|
OBJS += ../src/p2p/p2p_utils.o
|
|
|
|
OBJS += ../src/p2p/p2p_parse.o
|
|
|
|
OBJS += ../src/p2p/p2p_build.o
|
|
|
|
OBJS += ../src/p2p/p2p_go_neg.o
|
|
|
|
OBJS += ../src/p2p/p2p_sd.o
|
|
|
|
OBJS += ../src/p2p/p2p_pd.o
|
|
|
|
OBJS += ../src/p2p/p2p_invitation.o
|
|
|
|
OBJS += ../src/p2p/p2p_dev_disc.o
|
|
|
|
OBJS += ../src/p2p/p2p_group.o
|
|
|
|
OBJS += ../src/ap/p2p_hostapd.o
|
|
|
|
CFLAGS += -DCONFIG_P2P
|
2011-09-27 16:28:46 +02:00
|
|
|
NEED_GAS=y
|
2011-09-29 18:22:08 +02:00
|
|
|
NEED_OFFCHANNEL=y
|
2011-10-28 20:17:08 +02:00
|
|
|
CONFIG_WPS=y
|
|
|
|
CONFIG_AP=y
|
2010-07-18 23:30:25 +02:00
|
|
|
ifdef CONFIG_P2P_STRICT
|
|
|
|
CFLAGS += -DCONFIG_P2P_STRICT
|
|
|
|
endif
|
2012-03-02 16:26:01 +01:00
|
|
|
ifdef CONFIG_WIFI_DISPLAY
|
|
|
|
CFLAGS += -DCONFIG_WIFI_DISPLAY
|
|
|
|
OBJS += wifi_display.o
|
|
|
|
endif
|
2021-11-01 00:03:37 +01:00
|
|
|
endif
|
2012-03-02 16:26:01 +01:00
|
|
|
|
2020-12-16 12:00:21 +01:00
|
|
|
ifdef CONFIG_PASN
|
|
|
|
CFLAGS += -DCONFIG_PASN
|
2020-12-16 12:00:27 +01:00
|
|
|
CFLAGS += -DCONFIG_PTKSA_CACHE
|
2020-12-16 12:00:21 +01:00
|
|
|
NEED_HMAC_SHA256_KDF=y
|
|
|
|
NEED_HMAC_SHA384_KDF=y
|
|
|
|
NEED_SHA256=y
|
|
|
|
NEED_SHA384=y
|
2020-12-16 12:00:27 +01:00
|
|
|
OBJS += ../src/common/ptksa_cache.o
|
2020-12-16 12:00:28 +01:00
|
|
|
OBJS += pasn_supplicant.o
|
2020-12-16 12:00:21 +01:00
|
|
|
endif
|
|
|
|
|
2011-09-08 19:52:23 +02:00
|
|
|
ifdef CONFIG_HS20
|
|
|
|
OBJS += hs20_supplicant.o
|
|
|
|
CFLAGS += -DCONFIG_HS20
|
|
|
|
CONFIG_INTERWORKING=y
|
|
|
|
endif
|
|
|
|
|
2011-09-27 22:15:05 +02:00
|
|
|
ifdef CONFIG_INTERWORKING
|
2011-10-16 21:44:28 +02:00
|
|
|
OBJS += interworking.o
|
2011-09-27 22:15:05 +02:00
|
|
|
CFLAGS += -DCONFIG_INTERWORKING
|
|
|
|
NEED_GAS=y
|
|
|
|
endif
|
|
|
|
|
2015-03-20 19:46:03 +01:00
|
|
|
ifdef CONFIG_NO_ROAMING
|
|
|
|
CFLAGS += -DCONFIG_NO_ROAMING
|
|
|
|
endif
|
|
|
|
|
2009-08-14 18:53:27 +02:00
|
|
|
include ../src/drivers/drivers.mak
|
|
|
|
ifdef CONFIG_AP
|
|
|
|
OBJS_d += $(DRV_BOTH_OBJS)
|
|
|
|
CFLAGS += $(DRV_BOTH_CFLAGS)
|
|
|
|
LDFLAGS += $(DRV_BOTH_LDFLAGS)
|
|
|
|
LIBS += $(DRV_BOTH_LIBS)
|
|
|
|
else
|
|
|
|
NEED_AP_MLME=
|
|
|
|
OBJS_d += $(DRV_WPA_OBJS)
|
|
|
|
CFLAGS += $(DRV_WPA_CFLAGS)
|
|
|
|
LDFLAGS += $(DRV_WPA_LDFLAGS)
|
|
|
|
LIBS += $(DRV_WPA_LIBS)
|
2008-11-18 15:30:32 +01:00
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifndef CONFIG_L2_PACKET
|
|
|
|
CONFIG_L2_PACKET=linux
|
|
|
|
endif
|
|
|
|
|
|
|
|
OBJS_l2 += ../src/l2_packet/l2_packet_$(CONFIG_L2_PACKET).o
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_L2_PACKET), pcap)
|
|
|
|
ifdef CONFIG_WINPCAP
|
|
|
|
CFLAGS += -DCONFIG_WINPCAP
|
|
|
|
LIBS += -lwpcap -lpacket
|
|
|
|
LIBS_w += -lwpcap
|
|
|
|
else
|
|
|
|
LIBS += -ldnet -lpcap
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_L2_PACKET), winpcap)
|
|
|
|
LIBS += -lwpcap -lpacket
|
|
|
|
LIBS_w += -lwpcap
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_L2_PACKET), freebsd)
|
|
|
|
LIBS += -lpcap
|
|
|
|
endif
|
|
|
|
|
2014-11-29 22:14:40 +01:00
|
|
|
ifdef CONFIG_ERP
|
|
|
|
CFLAGS += -DCONFIG_ERP
|
|
|
|
NEED_HMAC_SHA256_KDF=y
|
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifdef CONFIG_EAP_TLS
|
|
|
|
# EAP-TLS
|
|
|
|
ifeq ($(CONFIG_EAP_TLS), dyn)
|
|
|
|
CFLAGS += -DEAP_TLS_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_tls.so
|
2008-02-28 02:34:43 +01:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_TLS
|
|
|
|
OBJS += ../src/eap_peer/eap_tls.o
|
|
|
|
endif
|
|
|
|
TLS_FUNCS=y
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
2022-04-06 15:13:22 +02:00
|
|
|
ifdef CONFIG_EAP_TLSV1_3
|
|
|
|
CFLAGS += -DEAP_TLSV1_3
|
|
|
|
endif
|
2012-08-22 21:34:11 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_UNAUTH_TLS
|
|
|
|
# EAP-UNAUTH-TLS
|
|
|
|
CFLAGS += -DEAP_UNAUTH_TLS
|
2015-03-20 13:42:13 +01:00
|
|
|
ifndef CONFIG_EAP_TLS
|
2012-08-22 21:34:11 +02:00
|
|
|
OBJS += ../src/eap_peer/eap_tls.o
|
|
|
|
TLS_FUNCS=y
|
|
|
|
endif
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_PEAP
|
|
|
|
# EAP-PEAP
|
2021-02-27 22:42:21 +01:00
|
|
|
SRC_EAP_PEAP = ../src/eap_peer/eap_peap.c ../src/eap_common/eap_peap_common.c
|
2008-02-28 02:34:43 +01:00
|
|
|
ifeq ($(CONFIG_EAP_PEAP), dyn)
|
|
|
|
CFLAGS += -DEAP_PEAP_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_peap.so
|
2008-02-28 02:34:43 +01:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_PEAP
|
2021-02-27 22:42:21 +01:00
|
|
|
OBJS += $(patsubst %.c, %.o, $(SRC_EAP_PEAP))
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
|
|
|
TLS_FUNCS=y
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_TTLS
|
|
|
|
# EAP-TTLS
|
|
|
|
ifeq ($(CONFIG_EAP_TTLS), dyn)
|
|
|
|
CFLAGS += -DEAP_TTLS_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_ttls.so
|
2008-02-28 02:34:43 +01:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_TTLS
|
|
|
|
OBJS += ../src/eap_peer/eap_ttls.o
|
|
|
|
endif
|
|
|
|
TLS_FUNCS=y
|
2015-08-01 15:53:16 +02:00
|
|
|
ifndef CONFIG_FIPS
|
|
|
|
MS_FUNCS=y
|
2008-02-28 02:34:43 +01:00
|
|
|
CHAP=y
|
2015-08-01 15:53:16 +02:00
|
|
|
endif
|
2008-02-28 02:34:43 +01:00
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_MD5
|
|
|
|
# EAP-MD5
|
|
|
|
ifeq ($(CONFIG_EAP_MD5), dyn)
|
|
|
|
CFLAGS += -DEAP_MD5_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_md5.so
|
2008-02-28 02:34:43 +01:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_MD5
|
|
|
|
OBJS += ../src/eap_peer/eap_md5.o
|
|
|
|
endif
|
|
|
|
CHAP=y
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
# backwards compatibility for old spelling
|
|
|
|
ifdef CONFIG_MSCHAPV2
|
|
|
|
ifndef CONFIG_EAP_MSCHAPV2
|
|
|
|
CONFIG_EAP_MSCHAPV2=y
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_MSCHAPV2
|
|
|
|
# EAP-MSCHAPv2
|
2021-02-27 22:42:21 +01:00
|
|
|
SRC_EAP_MSCHAPV2 = ../src/eap_peer/eap_mschapv2.c ../src/eap_peer/mschapv2.c
|
2008-02-28 02:34:43 +01:00
|
|
|
ifeq ($(CONFIG_EAP_MSCHAPV2), dyn)
|
|
|
|
CFLAGS += -DEAP_MSCHAPv2_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_mschapv2.so
|
2008-02-28 02:34:43 +01:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_MSCHAPv2
|
2021-02-27 22:42:21 +01:00
|
|
|
OBJS += $(patsubst %.c, %.o, $(SRC_EAP_MSCHAPV2))
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
|
|
|
MS_FUNCS=y
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_GTC
|
|
|
|
# EAP-GTC
|
|
|
|
ifeq ($(CONFIG_EAP_GTC), dyn)
|
|
|
|
CFLAGS += -DEAP_GTC_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_gtc.so
|
2008-02-28 02:34:43 +01:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_GTC
|
|
|
|
OBJS += ../src/eap_peer/eap_gtc.o
|
|
|
|
endif
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_OTP
|
|
|
|
# EAP-OTP
|
|
|
|
ifeq ($(CONFIG_EAP_OTP), dyn)
|
|
|
|
CFLAGS += -DEAP_OTP_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_otp.so
|
2008-02-28 02:34:43 +01:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_OTP
|
|
|
|
OBJS += ../src/eap_peer/eap_otp.o
|
|
|
|
endif
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_SIM
|
|
|
|
# EAP-SIM
|
|
|
|
ifeq ($(CONFIG_EAP_SIM), dyn)
|
|
|
|
CFLAGS += -DEAP_SIM_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_sim.so
|
2008-02-28 02:34:43 +01:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_SIM
|
|
|
|
OBJS += ../src/eap_peer/eap_sim.o
|
|
|
|
endif
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
CONFIG_EAP_SIM_COMMON=y
|
2009-10-11 21:23:50 +02:00
|
|
|
NEED_AES_CBC=y
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_LEAP
|
|
|
|
# EAP-LEAP
|
|
|
|
ifeq ($(CONFIG_EAP_LEAP), dyn)
|
|
|
|
CFLAGS += -DEAP_LEAP_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_leap.so
|
2008-02-28 02:34:43 +01:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_LEAP
|
|
|
|
OBJS += ../src/eap_peer/eap_leap.o
|
|
|
|
endif
|
|
|
|
MS_FUNCS=y
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_PSK
|
|
|
|
# EAP-PSK
|
2021-02-27 22:42:21 +01:00
|
|
|
SRC_EAP_PSK = ../src/eap_peer/eap_psk.c ../src/eap_common/eap_psk_common.c
|
2008-02-28 02:34:43 +01:00
|
|
|
ifeq ($(CONFIG_EAP_PSK), dyn)
|
|
|
|
CFLAGS += -DEAP_PSK_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_psk.so
|
2008-02-28 02:34:43 +01:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_PSK
|
2021-02-27 22:42:21 +01:00
|
|
|
OBJS += $(patsubst %.c, %.o, $(SRC_EAP_PSK))
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
NEED_AES=y
|
2009-10-11 21:23:50 +02:00
|
|
|
NEED_AES_ENCBLOCK=y
|
|
|
|
NEED_AES_EAX=y
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_AKA
|
|
|
|
# EAP-AKA
|
|
|
|
ifeq ($(CONFIG_EAP_AKA), dyn)
|
|
|
|
CFLAGS += -DEAP_AKA_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_aka.so
|
2008-02-28 02:34:43 +01:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_AKA
|
|
|
|
OBJS += ../src/eap_peer/eap_aka.o
|
|
|
|
endif
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
CONFIG_EAP_SIM_COMMON=y
|
2009-10-11 21:23:50 +02:00
|
|
|
NEED_AES_CBC=y
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
|
|
|
|
2013-02-06 23:55:06 +01:00
|
|
|
ifdef CONFIG_EAP_PROXY
|
|
|
|
CFLAGS += -DCONFIG_EAP_PROXY
|
|
|
|
OBJS += ../src/eap_peer/eap_proxy_$(CONFIG_EAP_PROXY).o
|
2014-04-15 12:02:25 +02:00
|
|
|
include eap_proxy_$(CONFIG_EAP_PROXY).mak
|
2013-02-06 23:55:06 +01:00
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
endif
|
|
|
|
|
2008-12-02 19:12:49 +01:00
|
|
|
ifdef CONFIG_EAP_AKA_PRIME
|
|
|
|
# EAP-AKA'
|
|
|
|
ifeq ($(CONFIG_EAP_AKA_PRIME), dyn)
|
|
|
|
CFLAGS += -DEAP_AKA_PRIME_DYNAMIC
|
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_AKA_PRIME
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifdef CONFIG_EAP_SIM_COMMON
|
|
|
|
OBJS += ../src/eap_common/eap_sim_common.o
|
|
|
|
NEED_AES=y
|
|
|
|
NEED_FIPS186_2_PRF=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_FAST
|
|
|
|
# EAP-FAST
|
2021-02-27 22:42:21 +01:00
|
|
|
SRC_EAP_FAST = ../src/eap_peer/eap_fast.c ../src/eap_peer/eap_fast_pac.c
|
|
|
|
SRC_EAP_FAST += ../src/eap_common/eap_fast_common.c
|
2008-02-28 02:34:43 +01:00
|
|
|
ifeq ($(CONFIG_EAP_FAST), dyn)
|
|
|
|
CFLAGS += -DEAP_FAST_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_fast.so
|
2008-02-28 02:34:43 +01:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_FAST
|
2021-02-27 22:42:21 +01:00
|
|
|
OBJS += $(patsubst %.c, %.o, $(SRC_EAP_FAST))
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
|
|
|
TLS_FUNCS=y
|
2009-03-08 10:29:31 +01:00
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
2008-02-28 02:34:43 +01:00
|
|
|
NEED_T_PRF=y
|
|
|
|
endif
|
|
|
|
|
2019-07-09 15:56:02 +02:00
|
|
|
ifdef CONFIG_EAP_TEAP
|
|
|
|
# EAP-TEAP
|
2021-02-27 22:42:21 +01:00
|
|
|
SRC_EAP_TEAP = ../src/eap_peer/eap_teap.c ../src/eap_peer/eap_teap_pac.c
|
|
|
|
SRC_EAP_TEAP += ../src/eap_common/eap_teap_common.c
|
2019-07-09 15:56:02 +02:00
|
|
|
ifeq ($(CONFIG_EAP_TEAP), dyn)
|
|
|
|
CFLAGS += -DEAP_TEAP_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_teap.so
|
2019-07-09 15:56:02 +02:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_TEAP
|
2021-02-27 22:42:21 +01:00
|
|
|
OBJS += $(patsubst %.c, %.o, $(SRC_EAP_TEAP))
|
2019-07-09 15:56:02 +02:00
|
|
|
endif
|
|
|
|
TLS_FUNCS=y
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
NEED_T_PRF=y
|
|
|
|
NEED_SHA384=y
|
2019-08-16 20:15:32 +02:00
|
|
|
NEED_TLS_PRF_SHA256=y
|
|
|
|
NEED_TLS_PRF_SHA384=y
|
2019-07-09 15:56:02 +02:00
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifdef CONFIG_EAP_PAX
|
|
|
|
# EAP-PAX
|
2021-02-27 22:42:21 +01:00
|
|
|
SRC_EAP_PAX = ../src/eap_peer/eap_pax.c ../src/eap_common/eap_pax_common.c
|
2008-02-28 02:34:43 +01:00
|
|
|
ifeq ($(CONFIG_EAP_PAX), dyn)
|
|
|
|
CFLAGS += -DEAP_PAX_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_pax.so
|
2008-02-28 02:34:43 +01:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_PAX
|
2021-02-27 22:42:21 +01:00
|
|
|
OBJS += $(patsubst %.c, %.o, $(SRC_EAP_PAX))
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_SAKE
|
|
|
|
# EAP-SAKE
|
2021-02-27 22:42:21 +01:00
|
|
|
SRC_EAP_SAKE = ../src/eap_peer/eap_sake.c ../src/eap_common/eap_sake_common.c
|
2008-02-28 02:34:43 +01:00
|
|
|
ifeq ($(CONFIG_EAP_SAKE), dyn)
|
|
|
|
CFLAGS += -DEAP_SAKE_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_sake.so
|
2008-02-28 02:34:43 +01:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_SAKE
|
2021-02-27 22:42:21 +01:00
|
|
|
OBJS += $(patsubst %.c, %.o, $(SRC_EAP_SAKE))
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_GPSK
|
|
|
|
# EAP-GPSK
|
2021-02-27 22:42:21 +01:00
|
|
|
SRC_EAP_GPSK = ../src/eap_peer/eap_gpsk.c ../src/eap_common/eap_gpsk_common.c
|
2008-02-28 02:34:43 +01:00
|
|
|
ifeq ($(CONFIG_EAP_GPSK), dyn)
|
|
|
|
CFLAGS += -DEAP_GPSK_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_gpsk.so
|
2008-02-28 02:34:43 +01:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_GPSK
|
2021-02-27 22:42:21 +01:00
|
|
|
OBJS += $(patsubst %.c, %.o, $(SRC_EAP_GPSK))
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
ifdef CONFIG_EAP_GPSK_SHA256
|
|
|
|
CFLAGS += -DEAP_GPSK_SHA256
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2010-09-15 09:51:40 +02:00
|
|
|
ifdef CONFIG_EAP_PWD
|
|
|
|
CFLAGS += -DEAP_PWD
|
2018-01-18 03:26:39 +01:00
|
|
|
ifeq ($(CONFIG_TLS), wolfssl)
|
|
|
|
CFLAGS += -DCONFIG_ECC
|
|
|
|
endif
|
2010-09-15 09:51:40 +02:00
|
|
|
OBJS += ../src/eap_peer/eap_pwd.o ../src/eap_common/eap_pwd_common.o
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
2017-10-16 07:45:09 +02:00
|
|
|
NEED_ECC=y
|
2019-04-25 18:45:27 +02:00
|
|
|
NEED_DRAGONFLY=y
|
2022-04-17 11:30:56 +02:00
|
|
|
MS_FUNCS=y
|
2010-09-15 09:51:40 +02:00
|
|
|
endif
|
|
|
|
|
2013-07-06 17:45:38 +02:00
|
|
|
ifdef CONFIG_EAP_EKE
|
|
|
|
# EAP-EKE
|
2021-02-27 22:42:21 +01:00
|
|
|
SRC_EAP_EKE = ../src/eap_peer/eap_eke.c ../src/eap_common/eap_eke_common.c
|
2013-07-06 17:45:38 +02:00
|
|
|
ifeq ($(CONFIG_EAP_EKE), dyn)
|
|
|
|
CFLAGS += -DEAP_EKE_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_eke.so
|
2013-07-06 17:45:38 +02:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_EKE
|
2021-02-27 22:42:21 +01:00
|
|
|
OBJS += $(patsubst %.c, %.o, $(SRC_EAP_EKE))
|
2013-07-06 17:45:38 +02:00
|
|
|
endif
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
NEED_DH_GROUPS=y
|
|
|
|
NEED_DH_GROUPS_ALL=y
|
2015-09-25 18:43:44 +02:00
|
|
|
NEED_AES_CBC=y
|
2013-07-06 17:45:38 +02:00
|
|
|
endif
|
|
|
|
|
2008-11-23 18:34:26 +01:00
|
|
|
ifdef CONFIG_WPS
|
|
|
|
# EAP-WSC
|
|
|
|
CFLAGS += -DCONFIG_WPS -DEAP_WSC
|
2008-11-28 18:46:22 +01:00
|
|
|
OBJS += wps_supplicant.o
|
2008-11-23 18:34:26 +01:00
|
|
|
OBJS += ../src/utils/uuid.o
|
|
|
|
OBJS += ../src/eap_peer/eap_wsc.o ../src/eap_common/eap_wsc_common.o
|
|
|
|
OBJS += ../src/wps/wps.o
|
|
|
|
OBJS += ../src/wps/wps_common.o
|
2008-11-29 12:16:26 +01:00
|
|
|
OBJS += ../src/wps/wps_attr_parse.o
|
|
|
|
OBJS += ../src/wps/wps_attr_build.o
|
|
|
|
OBJS += ../src/wps/wps_attr_process.o
|
2008-11-23 18:34:26 +01:00
|
|
|
OBJS += ../src/wps/wps_dev_attr.o
|
|
|
|
OBJS += ../src/wps/wps_enrollee.o
|
|
|
|
OBJS += ../src/wps/wps_registrar.o
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
NEED_DH_GROUPS=y
|
2008-12-26 15:40:27 +01:00
|
|
|
NEED_BASE64=y
|
2009-10-11 19:19:12 +02:00
|
|
|
NEED_AES_CBC=y
|
2009-10-11 21:04:29 +02:00
|
|
|
NEED_MODEXP=y
|
2009-02-06 12:52:30 +01:00
|
|
|
|
2009-03-06 15:16:22 +01:00
|
|
|
ifdef CONFIG_WPS_NFC
|
|
|
|
CFLAGS += -DCONFIG_WPS_NFC
|
|
|
|
OBJS += ../src/wps/ndef.o
|
|
|
|
NEED_WPS_OOB=y
|
|
|
|
endif
|
|
|
|
|
2009-02-26 21:10:21 +01:00
|
|
|
ifdef NEED_WPS_OOB
|
|
|
|
CFLAGS += -DCONFIG_WPS_OOB
|
2009-02-26 21:01:36 +01:00
|
|
|
endif
|
|
|
|
|
2009-11-07 11:41:01 +01:00
|
|
|
ifdef CONFIG_WPS_ER
|
|
|
|
CONFIG_WPS_UPNP=y
|
|
|
|
CFLAGS += -DCONFIG_WPS_ER
|
|
|
|
OBJS += ../src/wps/wps_er.o
|
2009-11-21 16:26:23 +01:00
|
|
|
OBJS += ../src/wps/wps_er_ssdp.o
|
2009-11-07 11:41:01 +01:00
|
|
|
endif
|
|
|
|
|
2009-02-06 12:52:30 +01:00
|
|
|
ifdef CONFIG_WPS_UPNP
|
|
|
|
CFLAGS += -DCONFIG_WPS_UPNP
|
|
|
|
OBJS += ../src/wps/wps_upnp.o
|
|
|
|
OBJS += ../src/wps/wps_upnp_ssdp.o
|
|
|
|
OBJS += ../src/wps/wps_upnp_web.o
|
|
|
|
OBJS += ../src/wps/wps_upnp_event.o
|
2009-12-12 15:54:59 +01:00
|
|
|
OBJS += ../src/wps/wps_upnp_ap.o
|
2009-11-08 13:06:01 +01:00
|
|
|
OBJS += ../src/wps/upnp_xml.o
|
2009-02-06 12:52:30 +01:00
|
|
|
OBJS += ../src/wps/httpread.o
|
2009-11-08 11:35:37 +01:00
|
|
|
OBJS += ../src/wps/http_client.o
|
2009-11-08 16:26:55 +01:00
|
|
|
OBJS += ../src/wps/http_server.o
|
2009-02-06 12:52:30 +01:00
|
|
|
endif
|
|
|
|
|
2010-07-21 07:15:06 +02:00
|
|
|
ifdef CONFIG_WPS_STRICT
|
|
|
|
CFLAGS += -DCONFIG_WPS_STRICT
|
|
|
|
OBJS += ../src/wps/wps_validate.o
|
|
|
|
endif
|
|
|
|
|
2010-09-22 04:51:23 +02:00
|
|
|
ifdef CONFIG_WPS_TESTING
|
|
|
|
CFLAGS += -DCONFIG_WPS_TESTING
|
|
|
|
endif
|
|
|
|
|
2010-12-22 10:33:59 +01:00
|
|
|
ifdef CONFIG_WPS_REG_DISABLE_OPEN
|
|
|
|
CFLAGS += -DCONFIG_WPS_REG_DISABLE_OPEN
|
|
|
|
endif
|
|
|
|
|
2008-11-23 18:34:26 +01:00
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifdef CONFIG_EAP_IKEV2
|
|
|
|
# EAP-IKEv2
|
2021-02-27 22:42:21 +01:00
|
|
|
SRC_EAP_IKEV2 = ../src/eap_peer/eap_ikev2.c
|
|
|
|
SRC_EAP_IKEV2 += ../src/eap_peer/ikev2.c
|
|
|
|
SRC_EAP_IKEV2 += ../src/eap_common/eap_ikev2_common.c
|
|
|
|
SRC_EAP_IKEV2 += ../src/eap_common/ikev2_common.c
|
2008-02-28 02:34:43 +01:00
|
|
|
ifeq ($(CONFIG_EAP_IKEV2), dyn)
|
|
|
|
CFLAGS += -DEAP_IKEV2_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_ikev2.so
|
2008-02-28 02:34:43 +01:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_IKEV2
|
2021-02-27 22:42:21 +01:00
|
|
|
OBJS += $(patsubst %.c, %.o, $(SRC_EAP_IKEV2))
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
NEED_DH_GROUPS=y
|
2009-10-11 14:24:40 +02:00
|
|
|
NEED_DH_GROUPS_ALL=y
|
2009-10-11 21:04:29 +02:00
|
|
|
NEED_MODEXP=y
|
2009-12-06 13:37:46 +01:00
|
|
|
NEED_CIPHER=y
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_VENDOR_TEST
|
|
|
|
ifeq ($(CONFIG_EAP_VENDOR_TEST), dyn)
|
|
|
|
CFLAGS += -DEAP_VENDOR_TEST_DYNAMIC
|
2021-02-27 22:42:21 +01:00
|
|
|
EAPDYN += eap_vendor_test.so
|
2008-02-28 02:34:43 +01:00
|
|
|
else
|
|
|
|
CFLAGS += -DEAP_VENDOR_TEST
|
|
|
|
OBJS += ../src/eap_peer/eap_vendor_test.o
|
|
|
|
endif
|
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_TNC
|
|
|
|
# EAP-TNC
|
|
|
|
CFLAGS += -DEAP_TNC
|
|
|
|
OBJS += ../src/eap_peer/eap_tnc.o
|
|
|
|
OBJS += ../src/eap_peer/tncc.o
|
|
|
|
NEED_BASE64=y
|
2009-02-08 11:47:28 +01:00
|
|
|
ifndef CONFIG_NATIVE_WINDOWS
|
2009-03-21 19:59:07 +01:00
|
|
|
ifndef CONFIG_DRIVER_BSD
|
2009-02-05 18:24:16 +01:00
|
|
|
LIBS += -ldl
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
2009-02-08 11:47:28 +01:00
|
|
|
endif
|
2009-03-21 19:59:07 +01:00
|
|
|
endif
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2014-03-25 20:39:02 +01:00
|
|
|
ifdef CONFIG_MACSEC
|
|
|
|
CFLAGS += -DCONFIG_MACSEC
|
2017-04-11 17:22:36 +02:00
|
|
|
CONFIG_IEEE8021X_EAPOL=y
|
2014-03-25 20:39:02 +01:00
|
|
|
NEED_AES_ENCBLOCK=y
|
|
|
|
NEED_AES_UNWRAP=y
|
|
|
|
NEED_AES_WRAP=y
|
|
|
|
OBJS += wpas_kay.o
|
|
|
|
OBJS += ../src/pae/ieee802_1x_cp.o
|
|
|
|
OBJS += ../src/pae/ieee802_1x_kay.o
|
|
|
|
OBJS += ../src/pae/ieee802_1x_key.o
|
|
|
|
OBJS += ../src/pae/ieee802_1x_secy_ops.o
|
2019-05-24 10:53:32 +02:00
|
|
|
ifdef CONFIG_AP
|
|
|
|
OBJS += ../src/ap/wpa_auth_kay.o
|
|
|
|
endif
|
2014-03-25 20:39:02 +01:00
|
|
|
endif
|
|
|
|
|
2017-04-11 17:22:36 +02:00
|
|
|
ifdef CONFIG_IEEE8021X_EAPOL
|
|
|
|
# IEEE 802.1X/EAPOL state machines (e.g., for RADIUS authentication)
|
|
|
|
CFLAGS += -DIEEE8021X_EAPOL
|
|
|
|
OBJS += ../src/eapol_supp/eapol_supp_sm.o
|
|
|
|
OBJS += ../src/eap_peer/eap.o ../src/eap_peer/eap_methods.o
|
|
|
|
NEED_EAP_COMMON=y
|
|
|
|
ifdef CONFIG_DYNAMIC_EAP_METHODS
|
|
|
|
CFLAGS += -DCONFIG_DYNAMIC_EAP_METHODS
|
|
|
|
LIBS += -ldl -rdynamic
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2009-03-25 10:38:47 +01:00
|
|
|
ifdef CONFIG_AP
|
2010-05-23 11:18:47 +02:00
|
|
|
NEED_EAP_COMMON=y
|
2009-12-04 20:34:34 +01:00
|
|
|
NEED_RSN_AUTHENTICATOR=y
|
2009-03-25 10:38:47 +01:00
|
|
|
CFLAGS += -DCONFIG_AP
|
2009-03-25 11:23:42 +01:00
|
|
|
OBJS += ap.o
|
|
|
|
CFLAGS += -DCONFIG_NO_RADIUS
|
|
|
|
CFLAGS += -DCONFIG_NO_ACCOUNTING
|
|
|
|
CFLAGS += -DCONFIG_NO_VLAN
|
2009-12-25 19:06:07 +01:00
|
|
|
OBJS += ../src/ap/hostapd.o
|
|
|
|
OBJS += ../src/ap/wpa_auth_glue.o
|
2009-12-25 00:26:37 +01:00
|
|
|
OBJS += ../src/ap/utils.o
|
2009-12-25 12:43:43 +01:00
|
|
|
OBJS += ../src/ap/authsrv.o
|
2009-12-25 23:05:40 +01:00
|
|
|
OBJS += ../src/ap/ap_config.o
|
2009-12-25 00:12:50 +01:00
|
|
|
OBJS += ../src/ap/sta_info.o
|
|
|
|
OBJS += ../src/ap/tkip_countermeasures.o
|
2009-12-25 23:05:40 +01:00
|
|
|
OBJS += ../src/ap/ap_mlme.o
|
2009-12-25 00:12:50 +01:00
|
|
|
OBJS += ../src/ap/ieee802_1x.o
|
2009-11-29 19:03:28 +01:00
|
|
|
OBJS += ../src/eapol_auth/eapol_auth_sm.o
|
2009-12-25 00:12:50 +01:00
|
|
|
OBJS += ../src/ap/ieee802_11_auth.o
|
2011-10-17 16:30:43 +02:00
|
|
|
OBJS += ../src/ap/ieee802_11_shared.o
|
2009-12-25 19:06:07 +01:00
|
|
|
OBJS += ../src/ap/drv_callbacks.o
|
|
|
|
OBJS += ../src/ap/ap_drv_ops.o
|
2011-10-17 17:35:25 +02:00
|
|
|
OBJS += ../src/ap/beacon.o
|
2014-10-16 01:36:04 +02:00
|
|
|
OBJS += ../src/ap/bss_load.o
|
2012-11-21 16:49:47 +01:00
|
|
|
OBJS += ../src/ap/eap_user_db.o
|
2016-04-06 18:42:07 +02:00
|
|
|
OBJS += ../src/ap/neighbor_db.o
|
2016-04-06 18:42:09 +02:00
|
|
|
OBJS += ../src/ap/rrm.o
|
2010-11-25 22:41:32 +01:00
|
|
|
OBJS += ../src/ap/ieee802_11_ht.o
|
2013-10-27 18:32:03 +01:00
|
|
|
ifdef CONFIG_IEEE80211AC
|
|
|
|
OBJS += ../src/ap/ieee802_11_vht.o
|
|
|
|
endif
|
2016-10-25 19:23:24 +02:00
|
|
|
ifdef CONFIG_IEEE80211AX
|
|
|
|
OBJS += ../src/ap/ieee802_11_he.o
|
|
|
|
endif
|
2022-04-19 20:04:08 +02:00
|
|
|
ifdef CONFIG_IEEE80211BE
|
|
|
|
OBJS += ../src/ap/ieee802_11_eht.o
|
|
|
|
endif
|
2017-06-12 08:29:27 +02:00
|
|
|
ifdef CONFIG_WNM_AP
|
|
|
|
CFLAGS += -DCONFIG_WNM_AP
|
2012-12-16 18:31:36 +01:00
|
|
|
OBJS += ../src/ap/wnm_ap.o
|
|
|
|
endif
|
2016-02-22 12:03:28 +01:00
|
|
|
ifdef CONFIG_MBO
|
|
|
|
OBJS += ../src/ap/mbo_ap.o
|
|
|
|
endif
|
2017-01-31 13:00:12 +01:00
|
|
|
ifdef CONFIG_FILS
|
|
|
|
OBJS += ../src/ap/fils_hlp.o
|
|
|
|
endif
|
2009-09-08 11:58:02 +02:00
|
|
|
ifdef CONFIG_CTRL_IFACE
|
2009-12-25 11:25:55 +01:00
|
|
|
OBJS += ../src/ap/ctrl_iface_ap.o
|
2009-09-08 11:58:02 +02:00
|
|
|
endif
|
2009-03-25 11:23:42 +01:00
|
|
|
|
2009-12-06 10:28:41 +01:00
|
|
|
CFLAGS += -DEAP_SERVER -DEAP_SERVER_IDENTITY
|
2010-02-19 17:54:07 +01:00
|
|
|
OBJS += ../src/eap_server/eap_server.o
|
|
|
|
OBJS += ../src/eap_server/eap_server_identity.o
|
|
|
|
OBJS += ../src/eap_server/eap_server_methods.o
|
2009-03-25 11:23:42 +01:00
|
|
|
|
2013-10-27 18:32:03 +01:00
|
|
|
ifdef CONFIG_IEEE80211AC
|
|
|
|
CFLAGS += -DCONFIG_IEEE80211AC
|
|
|
|
endif
|
2022-04-19 20:04:03 +02:00
|
|
|
ifdef CONFIG_IEEE80211BE
|
|
|
|
CONFIG_IEEE80211AX=y
|
|
|
|
CFLAGS += -DCONFIG_IEEE80211BE
|
|
|
|
endif
|
2017-02-08 00:16:52 +01:00
|
|
|
ifdef CONFIG_IEEE80211AX
|
|
|
|
CFLAGS += -DCONFIG_IEEE80211AX
|
|
|
|
endif
|
2009-12-06 18:50:40 +01:00
|
|
|
|
2009-03-25 11:23:42 +01:00
|
|
|
ifdef NEED_AP_MLME
|
2009-12-25 00:12:50 +01:00
|
|
|
OBJS += ../src/ap/wmm.o
|
|
|
|
OBJS += ../src/ap/ap_list.o
|
|
|
|
OBJS += ../src/ap/ieee802_11.o
|
2009-12-25 19:06:07 +01:00
|
|
|
OBJS += ../src/ap/hw_features.o
|
2013-10-15 19:27:25 +02:00
|
|
|
OBJS += ../src/ap/dfs.o
|
2009-08-14 19:01:41 +02:00
|
|
|
CFLAGS += -DNEED_AP_MLME
|
2009-03-25 11:23:42 +01:00
|
|
|
endif
|
|
|
|
ifdef CONFIG_WPS
|
|
|
|
CFLAGS += -DEAP_SERVER_WSC
|
2009-12-25 00:26:37 +01:00
|
|
|
OBJS += ../src/ap/wps_hostapd.o
|
2010-02-19 17:54:07 +01:00
|
|
|
OBJS += ../src/eap_server/eap_server_wsc.o
|
2009-03-25 11:23:42 +01:00
|
|
|
endif
|
2017-06-15 21:16:45 +02:00
|
|
|
ifdef CONFIG_DPP
|
|
|
|
OBJS += ../src/ap/dpp_hostapd.o
|
|
|
|
OBJS += ../src/ap/gas_query_ap.o
|
2019-09-08 16:44:07 +02:00
|
|
|
NEED_AP_GAS_SERV=y
|
2017-06-15 21:16:45 +02:00
|
|
|
endif
|
2012-02-27 15:21:50 +01:00
|
|
|
ifdef CONFIG_INTERWORKING
|
2019-09-08 16:44:07 +02:00
|
|
|
NEED_AP_GAS_SERV=y
|
|
|
|
endif
|
|
|
|
ifdef NEED_AP_GAS_SERV
|
2012-02-27 15:21:50 +01:00
|
|
|
OBJS += ../src/ap/gas_serv.o
|
|
|
|
endif
|
2011-09-08 19:52:23 +02:00
|
|
|
ifdef CONFIG_HS20
|
|
|
|
OBJS += ../src/ap/hs20.o
|
|
|
|
endif
|
2009-03-25 10:38:47 +01:00
|
|
|
endif
|
|
|
|
|
2016-10-27 14:18:27 +02:00
|
|
|
ifdef CONFIG_MBO
|
|
|
|
OBJS += mbo.o
|
|
|
|
CFLAGS += -DCONFIG_MBO
|
|
|
|
endif
|
|
|
|
|
2009-12-04 20:34:34 +01:00
|
|
|
ifdef NEED_RSN_AUTHENTICATOR
|
|
|
|
CFLAGS += -DCONFIG_NO_RADIUS
|
|
|
|
NEED_AES_WRAP=y
|
2009-12-25 23:05:40 +01:00
|
|
|
OBJS += ../src/ap/wpa_auth.o
|
2009-12-25 00:12:50 +01:00
|
|
|
OBJS += ../src/ap/wpa_auth_ie.o
|
2009-12-25 23:05:40 +01:00
|
|
|
OBJS += ../src/ap/pmksa_cache_auth.o
|
2009-12-04 20:34:34 +01:00
|
|
|
endif
|
|
|
|
|
2015-11-27 12:40:37 +01:00
|
|
|
ifdef CONFIG_ACS
|
|
|
|
CFLAGS += -DCONFIG_ACS
|
|
|
|
OBJS += ../src/ap/acs.o
|
|
|
|
LIBS += -lm
|
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifdef CONFIG_PCSC
|
|
|
|
# PC/SC interface for smartcards (USIM, GSM SIM)
|
|
|
|
CFLAGS += -DPCSC_FUNCS -I/usr/include/PCSC
|
|
|
|
OBJS += ../src/utils/pcsc_funcs.o
|
|
|
|
ifdef CONFIG_NATIVE_WINDOWS
|
|
|
|
#Once MinGW gets support for WinScard, -lwinscard could be used instead of the
|
|
|
|
#dynamic symbol loading that is now used in pcsc_funcs.c
|
|
|
|
#LIBS += -lwinscard
|
|
|
|
else
|
2016-07-02 21:57:39 +02:00
|
|
|
ifdef CONFIG_OSX
|
|
|
|
LIBS += -framework PCSC
|
|
|
|
else
|
2021-10-21 12:26:00 +02:00
|
|
|
LIBS += $(shell $(PKG_CONFIG) --libs libpcsclite)
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
|
|
|
endif
|
2016-07-02 21:57:39 +02:00
|
|
|
endif
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2008-11-06 03:21:32 +01:00
|
|
|
ifdef CONFIG_SIM_SIMULATOR
|
|
|
|
CFLAGS += -DCONFIG_SIM_SIMULATOR
|
|
|
|
NEED_MILENAGE=y
|
|
|
|
endif
|
|
|
|
|
2008-11-05 22:02:13 +01:00
|
|
|
ifdef CONFIG_USIM_SIMULATOR
|
|
|
|
CFLAGS += -DCONFIG_USIM_SIMULATOR
|
2008-11-06 03:21:32 +01:00
|
|
|
NEED_MILENAGE=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef NEED_MILENAGE
|
2009-12-05 20:00:52 +01:00
|
|
|
OBJS += ../src/crypto/milenage.o
|
2011-09-07 15:17:08 +02:00
|
|
|
NEED_AES_ENCBLOCK=y
|
2008-11-05 22:02:13 +01:00
|
|
|
endif
|
|
|
|
|
2009-10-11 19:34:26 +02:00
|
|
|
ifdef CONFIG_PKCS12
|
|
|
|
CFLAGS += -DPKCS12_FUNCS
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_SMARTCARD
|
|
|
|
CFLAGS += -DCONFIG_SMARTCARD
|
|
|
|
endif
|
|
|
|
|
2019-04-25 18:45:27 +02:00
|
|
|
ifdef NEED_DRAGONFLY
|
|
|
|
OBJS += ../src/common/dragonfly.o
|
|
|
|
endif
|
|
|
|
|
2009-10-11 19:34:26 +02:00
|
|
|
ifdef MS_FUNCS
|
|
|
|
OBJS += ../src/crypto/ms_funcs.o
|
2009-10-11 21:04:29 +02:00
|
|
|
NEED_DES=y
|
|
|
|
NEED_MD4=y
|
2009-10-11 19:34:26 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CHAP
|
|
|
|
OBJS += ../src/eap_common/chap.o
|
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifdef TLS_FUNCS
|
2009-10-11 21:04:29 +02:00
|
|
|
NEED_DES=y
|
2019-07-09 15:56:02 +02:00
|
|
|
# Shared TLS functions (needed for EAP_TLS, EAP_PEAP, EAP_TTLS, EAP_FAST, and
|
|
|
|
# EAP_TEAP)
|
2008-02-28 02:34:43 +01:00
|
|
|
OBJS += ../src/eap_peer/eap_tls_common.o
|
2012-08-16 18:38:15 +02:00
|
|
|
ifndef CONFIG_FIPS
|
2008-02-28 02:34:43 +01:00
|
|
|
NEED_TLS_PRF=y
|
2012-12-18 14:16:00 +01:00
|
|
|
NEED_SHA1=y
|
|
|
|
NEED_MD5=y
|
2009-10-11 18:42:04 +02:00
|
|
|
endif
|
2012-08-16 18:38:15 +02:00
|
|
|
endif
|
2009-10-11 18:42:04 +02:00
|
|
|
|
2009-10-11 21:04:29 +02:00
|
|
|
ifndef CONFIG_TLS
|
|
|
|
CONFIG_TLS=openssl
|
|
|
|
endif
|
|
|
|
|
2011-09-25 16:24:46 +02:00
|
|
|
ifdef CONFIG_TLSV11
|
|
|
|
CFLAGS += -DCONFIG_TLSV11
|
|
|
|
endif
|
|
|
|
|
2011-11-27 20:45:07 +01:00
|
|
|
ifdef CONFIG_TLSV12
|
|
|
|
CFLAGS += -DCONFIG_TLSV12
|
|
|
|
endif
|
|
|
|
|
2018-01-18 03:26:39 +01:00
|
|
|
ifeq ($(CONFIG_TLS), wolfssl)
|
|
|
|
ifdef TLS_FUNCS
|
2020-05-16 20:07:45 +02:00
|
|
|
CFLAGS += -DWOLFSSL_DER_LOAD
|
2018-01-18 03:26:39 +01:00
|
|
|
OBJS += ../src/crypto/tls_wolfssl.o
|
|
|
|
endif
|
|
|
|
OBJS += ../src/crypto/crypto_wolfssl.o
|
|
|
|
OBJS_p += ../src/crypto/crypto_wolfssl.o
|
|
|
|
ifdef NEED_FIPS186_2_PRF
|
|
|
|
OBJS += ../src/crypto/fips_prf_wolfssl.o
|
|
|
|
endif
|
2018-03-29 06:55:55 +02:00
|
|
|
NEED_TLS_PRF_SHA256=y
|
2018-01-18 03:26:39 +01:00
|
|
|
LIBS += -lwolfssl -lm
|
|
|
|
LIBS_p += -lwolfssl -lm
|
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifeq ($(CONFIG_TLS), openssl)
|
2022-04-30 12:34:00 +02:00
|
|
|
CFLAGS += -DCRYPTO_RSA_OAEP_SHA256
|
2009-10-11 21:04:29 +02:00
|
|
|
ifdef TLS_FUNCS
|
2008-02-28 02:34:43 +01:00
|
|
|
CFLAGS += -DEAP_TLS_OPENSSL
|
|
|
|
OBJS += ../src/crypto/tls_openssl.o
|
2015-12-04 13:04:31 +01:00
|
|
|
OBJS += ../src/crypto/tls_openssl_ocsp.o
|
2009-10-11 21:04:29 +02:00
|
|
|
LIBS += -lssl
|
|
|
|
endif
|
|
|
|
OBJS += ../src/crypto/crypto_openssl.o
|
|
|
|
OBJS_p += ../src/crypto/crypto_openssl.o
|
2015-04-25 16:37:53 +02:00
|
|
|
OBJS_priv += ../src/crypto/crypto_openssl.o
|
2009-10-11 21:04:29 +02:00
|
|
|
ifdef NEED_FIPS186_2_PRF
|
|
|
|
OBJS += ../src/crypto/fips_prf_openssl.o
|
|
|
|
endif
|
2015-07-28 10:40:17 +02:00
|
|
|
NEED_TLS_PRF_SHA256=y
|
2009-10-11 21:04:29 +02:00
|
|
|
LIBS += -lcrypto
|
2008-02-28 02:34:43 +01:00
|
|
|
LIBS_p += -lcrypto
|
2012-08-16 18:34:38 +02:00
|
|
|
ifdef CONFIG_TLS_ADD_DL
|
|
|
|
LIBS += -ldl
|
|
|
|
LIBS_p += -ldl
|
|
|
|
endif
|
2017-07-09 11:06:50 +02:00
|
|
|
ifndef CONFIG_TLS_DEFAULT_CIPHERS
|
|
|
|
CONFIG_TLS_DEFAULT_CIPHERS = "DEFAULT:!EXP:!LOW"
|
|
|
|
endif
|
|
|
|
CFLAGS += -DTLS_DEFAULT_CIPHERS=\"$(CONFIG_TLS_DEFAULT_CIPHERS)\"
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
2009-10-11 21:04:29 +02:00
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifeq ($(CONFIG_TLS), gnutls)
|
2017-12-29 16:11:21 +01:00
|
|
|
ifndef CONFIG_CRYPTO
|
|
|
|
# default to libgcrypt
|
|
|
|
CONFIG_CRYPTO=gnutls
|
|
|
|
endif
|
2009-10-11 21:04:29 +02:00
|
|
|
ifdef TLS_FUNCS
|
2008-02-28 02:34:43 +01:00
|
|
|
OBJS += ../src/crypto/tls_gnutls.o
|
2009-10-11 21:04:29 +02:00
|
|
|
LIBS += -lgnutls -lgpg-error
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
2017-12-29 16:11:21 +01:00
|
|
|
OBJS += ../src/crypto/crypto_$(CONFIG_CRYPTO).o
|
|
|
|
OBJS_p += ../src/crypto/crypto_$(CONFIG_CRYPTO).o
|
|
|
|
OBJS_priv += ../src/crypto/crypto_$(CONFIG_CRYPTO).o
|
2009-08-11 19:06:23 +02:00
|
|
|
ifdef NEED_FIPS186_2_PRF
|
2014-03-11 15:33:05 +01:00
|
|
|
OBJS += ../src/crypto/fips_prf_internal.o
|
|
|
|
SHA1OBJS += ../src/crypto/sha1-internal.o
|
2009-08-11 19:06:23 +02:00
|
|
|
endif
|
2017-12-29 16:11:21 +01:00
|
|
|
ifeq ($(CONFIG_CRYPTO), gnutls)
|
2009-10-11 21:04:29 +02:00
|
|
|
LIBS += -lgcrypt
|
|
|
|
LIBS_p += -lgcrypt
|
2009-08-16 19:13:14 +02:00
|
|
|
CONFIG_INTERNAL_RC4=y
|
2009-10-11 18:17:22 +02:00
|
|
|
CONFIG_INTERNAL_DH_GROUP5=y
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
2017-12-29 16:11:21 +01:00
|
|
|
ifeq ($(CONFIG_CRYPTO), nettle)
|
|
|
|
LIBS += -lnettle -lgmp
|
|
|
|
LIBS_p += -lnettle -lgmp
|
|
|
|
CONFIG_INTERNAL_RC4=y
|
|
|
|
CONFIG_INTERNAL_DH_GROUP5=y
|
|
|
|
endif
|
|
|
|
endif
|
2009-10-11 21:04:29 +02:00
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifeq ($(CONFIG_TLS), internal)
|
2009-10-11 21:04:29 +02:00
|
|
|
ifndef CONFIG_CRYPTO
|
|
|
|
CONFIG_CRYPTO=internal
|
|
|
|
endif
|
|
|
|
ifdef TLS_FUNCS
|
2009-12-06 13:37:46 +01:00
|
|
|
OBJS += ../src/crypto/crypto_internal-rsa.o
|
2009-10-11 21:04:29 +02:00
|
|
|
OBJS += ../src/crypto/tls_internal.o
|
|
|
|
OBJS += ../src/tls/tlsv1_common.o
|
|
|
|
OBJS += ../src/tls/tlsv1_record.o
|
|
|
|
OBJS += ../src/tls/tlsv1_cred.o
|
|
|
|
OBJS += ../src/tls/tlsv1_client.o
|
|
|
|
OBJS += ../src/tls/tlsv1_client_write.o
|
|
|
|
OBJS += ../src/tls/tlsv1_client_read.o
|
2015-12-13 22:11:32 +01:00
|
|
|
OBJS += ../src/tls/tlsv1_client_ocsp.o
|
2009-10-11 21:04:29 +02:00
|
|
|
OBJS += ../src/tls/rsa.o
|
|
|
|
OBJS += ../src/tls/x509v3.o
|
2009-10-17 11:48:55 +02:00
|
|
|
OBJS += ../src/tls/pkcs1.o
|
|
|
|
OBJS += ../src/tls/pkcs5.o
|
|
|
|
OBJS += ../src/tls/pkcs8.o
|
2019-12-12 01:28:39 +01:00
|
|
|
NEED_ASN1=y
|
2009-10-11 21:04:29 +02:00
|
|
|
NEED_BASE64=y
|
|
|
|
NEED_TLS_PRF=y
|
2011-11-27 20:45:07 +01:00
|
|
|
ifdef CONFIG_TLSV12
|
|
|
|
NEED_TLS_PRF_SHA256=y
|
|
|
|
endif
|
2009-10-11 21:04:29 +02:00
|
|
|
NEED_MODEXP=y
|
2009-12-06 13:37:46 +01:00
|
|
|
NEED_CIPHER=y
|
2009-10-11 21:04:29 +02:00
|
|
|
CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT
|
|
|
|
endif
|
2009-12-06 13:37:46 +01:00
|
|
|
ifdef NEED_CIPHER
|
|
|
|
NEED_DES=y
|
|
|
|
OBJS += ../src/crypto/crypto_internal-cipher.o
|
|
|
|
endif
|
2009-10-11 21:04:29 +02:00
|
|
|
ifdef NEED_MODEXP
|
2009-12-06 13:37:46 +01:00
|
|
|
OBJS += ../src/crypto/crypto_internal-modexp.o
|
2009-10-11 21:04:29 +02:00
|
|
|
OBJS += ../src/tls/bignum.o
|
|
|
|
endif
|
2008-02-28 02:34:43 +01:00
|
|
|
ifeq ($(CONFIG_CRYPTO), libtomcrypt)
|
|
|
|
OBJS += ../src/crypto/crypto_libtomcrypt.o
|
|
|
|
OBJS_p += ../src/crypto/crypto_libtomcrypt.o
|
2009-10-11 21:04:29 +02:00
|
|
|
LIBS += -ltomcrypt -ltfm
|
|
|
|
LIBS_p += -ltomcrypt -ltfm
|
2008-02-28 02:34:43 +01:00
|
|
|
CONFIG_INTERNAL_SHA256=y
|
2009-08-16 19:13:14 +02:00
|
|
|
CONFIG_INTERNAL_RC4=y
|
2009-10-11 18:17:22 +02:00
|
|
|
CONFIG_INTERNAL_DH_GROUP5=y
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_CRYPTO), internal)
|
2009-10-11 21:04:29 +02:00
|
|
|
OBJS += ../src/crypto/crypto_internal.o
|
|
|
|
OBJS_p += ../src/crypto/crypto_internal.o
|
2009-11-24 09:24:54 +01:00
|
|
|
NEED_AES_ENC=y
|
2008-02-28 02:34:43 +01:00
|
|
|
CFLAGS += -DCONFIG_CRYPTO_INTERNAL
|
2009-02-27 16:46:40 +01:00
|
|
|
ifdef CONFIG_INTERNAL_LIBTOMMATH
|
|
|
|
CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
|
|
|
|
ifdef CONFIG_INTERNAL_LIBTOMMATH_FAST
|
|
|
|
CFLAGS += -DLTM_FAST
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
LIBS += -ltommath
|
|
|
|
LIBS_p += -ltommath
|
|
|
|
endif
|
2008-02-28 02:34:43 +01:00
|
|
|
CONFIG_INTERNAL_AES=y
|
|
|
|
CONFIG_INTERNAL_DES=y
|
|
|
|
CONFIG_INTERNAL_SHA1=y
|
|
|
|
CONFIG_INTERNAL_MD4=y
|
|
|
|
CONFIG_INTERNAL_MD5=y
|
|
|
|
CONFIG_INTERNAL_SHA256=y
|
2015-11-22 02:02:57 +01:00
|
|
|
CONFIG_INTERNAL_SHA384=y
|
|
|
|
CONFIG_INTERNAL_SHA512=y
|
2009-08-16 19:13:14 +02:00
|
|
|
CONFIG_INTERNAL_RC4=y
|
2009-10-11 18:17:22 +02:00
|
|
|
CONFIG_INTERNAL_DH_GROUP5=y
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_CRYPTO), cryptoapi)
|
|
|
|
OBJS += ../src/crypto/crypto_cryptoapi.o
|
|
|
|
OBJS_p += ../src/crypto/crypto_cryptoapi.o
|
|
|
|
CFLAGS += -DCONFIG_CRYPTO_CRYPTOAPI
|
|
|
|
CONFIG_INTERNAL_SHA256=y
|
2009-08-16 19:13:14 +02:00
|
|
|
CONFIG_INTERNAL_RC4=y
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
|
|
|
endif
|
2009-10-11 21:04:29 +02:00
|
|
|
|
2017-02-27 00:10:02 +01:00
|
|
|
ifeq ($(CONFIG_TLS), linux)
|
|
|
|
OBJS += ../src/crypto/crypto_linux.o
|
|
|
|
OBJS_p += ../src/crypto/crypto_linux.o
|
|
|
|
ifdef TLS_FUNCS
|
|
|
|
OBJS += ../src/crypto/crypto_internal-rsa.o
|
|
|
|
OBJS += ../src/crypto/tls_internal.o
|
|
|
|
OBJS += ../src/tls/tlsv1_common.o
|
|
|
|
OBJS += ../src/tls/tlsv1_record.o
|
|
|
|
OBJS += ../src/tls/tlsv1_cred.o
|
|
|
|
OBJS += ../src/tls/tlsv1_client.o
|
|
|
|
OBJS += ../src/tls/tlsv1_client_write.o
|
|
|
|
OBJS += ../src/tls/tlsv1_client_read.o
|
|
|
|
OBJS += ../src/tls/tlsv1_client_ocsp.o
|
|
|
|
OBJS += ../src/tls/rsa.o
|
|
|
|
OBJS += ../src/tls/x509v3.o
|
|
|
|
OBJS += ../src/tls/pkcs1.o
|
|
|
|
OBJS += ../src/tls/pkcs5.o
|
|
|
|
OBJS += ../src/tls/pkcs8.o
|
2019-12-12 01:28:39 +01:00
|
|
|
NEED_ASN1=y
|
2017-02-27 00:10:02 +01:00
|
|
|
NEED_BASE64=y
|
|
|
|
NEED_TLS_PRF=y
|
|
|
|
ifdef CONFIG_TLSV12
|
|
|
|
NEED_TLS_PRF_SHA256=y
|
|
|
|
endif
|
|
|
|
NEED_MODEXP=y
|
|
|
|
NEED_CIPHER=y
|
|
|
|
CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT
|
|
|
|
endif
|
|
|
|
ifdef NEED_MODEXP
|
|
|
|
OBJS += ../src/crypto/crypto_internal-modexp.o
|
|
|
|
OBJS += ../src/tls/bignum.o
|
|
|
|
CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
|
|
|
|
CFLAGS += -DLTM_FAST
|
|
|
|
endif
|
|
|
|
CONFIG_INTERNAL_DH_GROUP5=y
|
|
|
|
ifdef NEED_FIPS186_2_PRF
|
|
|
|
OBJS += ../src/crypto/fips_prf_internal.o
|
|
|
|
OBJS += ../src/crypto/sha1-internal.o
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifeq ($(CONFIG_TLS), none)
|
2009-10-11 21:04:29 +02:00
|
|
|
ifdef TLS_FUNCS
|
|
|
|
OBJS += ../src/crypto/tls_none.o
|
|
|
|
CFLAGS += -DEAP_TLS_NONE
|
|
|
|
CONFIG_INTERNAL_AES=y
|
|
|
|
CONFIG_INTERNAL_SHA1=y
|
|
|
|
CONFIG_INTERNAL_MD5=y
|
|
|
|
endif
|
2008-02-28 02:34:43 +01:00
|
|
|
OBJS += ../src/crypto/crypto_none.o
|
|
|
|
OBJS_p += ../src/crypto/crypto_none.o
|
|
|
|
CONFIG_INTERNAL_SHA256=y
|
2009-08-16 19:13:14 +02:00
|
|
|
CONFIG_INTERNAL_RC4=y
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
2009-10-11 21:04:29 +02:00
|
|
|
|
|
|
|
ifdef TLS_FUNCS
|
|
|
|
ifdef CONFIG_SMARTCARD
|
|
|
|
ifndef CONFIG_NATIVE_WINDOWS
|
|
|
|
ifneq ($(CONFIG_L2_PACKET), freebsd)
|
|
|
|
LIBS += -ldl
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef TLS_FUNCS
|
|
|
|
OBJS += ../src/crypto/tls_none.o
|
|
|
|
ifeq ($(CONFIG_TLS), internal)
|
2008-02-28 02:34:43 +01:00
|
|
|
CONFIG_INTERNAL_AES=y
|
|
|
|
CONFIG_INTERNAL_SHA1=y
|
|
|
|
CONFIG_INTERNAL_MD5=y
|
2009-10-11 19:31:15 +02:00
|
|
|
CONFIG_INTERNAL_RC4=y
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
2009-10-11 21:04:29 +02:00
|
|
|
endif
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2009-10-11 21:04:29 +02:00
|
|
|
AESOBJS = # none so far (see below)
|
2008-02-28 02:34:43 +01:00
|
|
|
ifdef CONFIG_INTERNAL_AES
|
2009-08-13 10:16:21 +02:00
|
|
|
AESOBJS += ../src/crypto/aes-internal.o ../src/crypto/aes-internal-dec.o
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
2009-10-11 21:04:29 +02:00
|
|
|
|
2015-01-27 12:57:59 +01:00
|
|
|
ifneq ($(CONFIG_TLS), openssl)
|
2018-01-18 03:26:39 +01:00
|
|
|
ifneq ($(CONFIG_TLS), wolfssl)
|
2015-08-01 15:31:45 +02:00
|
|
|
NEED_INTERNAL_AES_WRAP=y
|
|
|
|
endif
|
2018-01-18 03:26:39 +01:00
|
|
|
endif
|
2015-08-17 20:31:17 +02:00
|
|
|
ifdef CONFIG_OPENSSL_INTERNAL_AES_WRAP
|
|
|
|
# Seems to be needed at least with BoringSSL
|
|
|
|
NEED_INTERNAL_AES_WRAP=y
|
|
|
|
CFLAGS += -DCONFIG_OPENSSL_INTERNAL_AES_WRAP
|
|
|
|
endif
|
2015-08-01 15:31:45 +02:00
|
|
|
ifdef CONFIG_FIPS
|
|
|
|
# Have to use internal AES key wrap routines to use OpenSSL EVP since the
|
|
|
|
# OpenSSL AES_wrap_key()/AES_unwrap_key() API is not available in FIPS mode.
|
|
|
|
NEED_INTERNAL_AES_WRAP=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef NEED_INTERNAL_AES_WRAP
|
2017-02-27 00:10:02 +01:00
|
|
|
ifneq ($(CONFIG_TLS), linux)
|
2009-10-11 21:04:29 +02:00
|
|
|
AESOBJS += ../src/crypto/aes-unwrap.o
|
2015-01-27 12:57:59 +01:00
|
|
|
endif
|
2017-02-27 00:10:02 +01:00
|
|
|
endif
|
2009-10-11 21:23:50 +02:00
|
|
|
ifdef NEED_AES_EAX
|
2009-10-11 21:04:29 +02:00
|
|
|
AESOBJS += ../src/crypto/aes-eax.o
|
2009-10-11 21:23:50 +02:00
|
|
|
NEED_AES_CTR=y
|
2017-02-26 11:02:21 +01:00
|
|
|
endif
|
|
|
|
ifdef NEED_AES_SIV
|
|
|
|
AESOBJS += ../src/crypto/aes-siv.o
|
|
|
|
NEED_AES_CTR=y
|
2009-10-11 21:23:50 +02:00
|
|
|
endif
|
|
|
|
ifdef NEED_AES_CTR
|
|
|
|
AESOBJS += ../src/crypto/aes-ctr.o
|
|
|
|
endif
|
|
|
|
ifdef NEED_AES_ENCBLOCK
|
2009-10-11 21:04:29 +02:00
|
|
|
AESOBJS += ../src/crypto/aes-encblock.o
|
2009-10-11 21:23:50 +02:00
|
|
|
endif
|
2009-10-13 09:04:46 +02:00
|
|
|
NEED_AES_ENC=y
|
2022-04-15 10:14:51 +02:00
|
|
|
ifneq ($(CONFIG_TLS), openssl)
|
2017-02-27 00:10:02 +01:00
|
|
|
ifneq ($(CONFIG_TLS), linux)
|
2018-01-18 03:26:39 +01:00
|
|
|
ifneq ($(CONFIG_TLS), wolfssl)
|
2009-10-11 21:04:29 +02:00
|
|
|
AESOBJS += ../src/crypto/aes-omac1.o
|
2009-10-11 21:23:50 +02:00
|
|
|
endif
|
2012-08-16 21:19:53 +02:00
|
|
|
endif
|
2017-02-27 00:10:02 +01:00
|
|
|
endif
|
2009-10-11 21:23:50 +02:00
|
|
|
ifdef NEED_AES_WRAP
|
2009-10-13 10:16:05 +02:00
|
|
|
NEED_AES_ENC=y
|
2015-08-01 15:31:45 +02:00
|
|
|
ifdef NEED_INTERNAL_AES_WRAP
|
2009-10-11 21:04:29 +02:00
|
|
|
AESOBJS += ../src/crypto/aes-wrap.o
|
|
|
|
endif
|
2015-01-27 12:57:59 +01:00
|
|
|
endif
|
2009-10-11 21:04:29 +02:00
|
|
|
ifdef NEED_AES_CBC
|
2009-10-13 09:04:46 +02:00
|
|
|
NEED_AES_ENC=y
|
2015-03-29 19:30:58 +02:00
|
|
|
ifneq ($(CONFIG_TLS), openssl)
|
2017-02-27 00:10:02 +01:00
|
|
|
ifneq ($(CONFIG_TLS), linux)
|
2018-01-18 03:26:39 +01:00
|
|
|
ifneq ($(CONFIG_TLS), wolfssl)
|
2009-10-13 09:04:46 +02:00
|
|
|
AESOBJS += ../src/crypto/aes-cbc.o
|
|
|
|
endif
|
2015-03-29 19:30:58 +02:00
|
|
|
endif
|
2017-02-27 00:10:02 +01:00
|
|
|
endif
|
2018-01-18 03:26:39 +01:00
|
|
|
endif
|
2009-10-13 09:04:46 +02:00
|
|
|
ifdef NEED_AES_ENC
|
2009-10-11 21:04:29 +02:00
|
|
|
ifdef CONFIG_INTERNAL_AES
|
|
|
|
AESOBJS += ../src/crypto/aes-internal-enc.o
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifdef NEED_AES
|
|
|
|
OBJS += $(AESOBJS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef NEED_SHA1
|
2012-08-16 19:38:25 +02:00
|
|
|
ifneq ($(CONFIG_TLS), openssl)
|
2017-02-27 00:10:02 +01:00
|
|
|
ifneq ($(CONFIG_TLS), linux)
|
2017-12-27 22:35:26 +01:00
|
|
|
ifneq ($(CONFIG_TLS), gnutls)
|
2018-01-18 03:26:39 +01:00
|
|
|
ifneq ($(CONFIG_TLS), wolfssl)
|
2009-10-11 21:04:29 +02:00
|
|
|
SHA1OBJS += ../src/crypto/sha1.o
|
2012-08-16 19:38:25 +02:00
|
|
|
endif
|
2017-02-27 00:10:02 +01:00
|
|
|
endif
|
2017-12-27 22:35:26 +01:00
|
|
|
endif
|
2018-01-18 03:26:39 +01:00
|
|
|
endif
|
2012-08-16 19:23:12 +02:00
|
|
|
SHA1OBJS += ../src/crypto/sha1-prf.o
|
2008-02-28 02:34:43 +01:00
|
|
|
ifdef CONFIG_INTERNAL_SHA1
|
2009-07-28 19:47:04 +02:00
|
|
|
SHA1OBJS += ../src/crypto/sha1-internal.o
|
2009-08-11 19:06:23 +02:00
|
|
|
ifdef NEED_FIPS186_2_PRF
|
|
|
|
SHA1OBJS += ../src/crypto/fips_prf_internal.o
|
|
|
|
endif
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
2011-06-23 18:53:45 +02:00
|
|
|
ifdef CONFIG_NO_WPA_PASSPHRASE
|
|
|
|
CFLAGS += -DCONFIG_NO_PBKDF2
|
|
|
|
else
|
2012-08-16 19:13:02 +02:00
|
|
|
ifneq ($(CONFIG_TLS), openssl)
|
2018-01-18 03:26:39 +01:00
|
|
|
ifneq ($(CONFIG_TLS), wolfssl)
|
2009-10-11 21:04:29 +02:00
|
|
|
SHA1OBJS += ../src/crypto/sha1-pbkdf2.o
|
|
|
|
endif
|
2012-08-16 19:13:02 +02:00
|
|
|
endif
|
2018-01-18 03:26:39 +01:00
|
|
|
endif
|
2009-10-11 21:04:29 +02:00
|
|
|
ifdef NEED_T_PRF
|
|
|
|
SHA1OBJS += ../src/crypto/sha1-tprf.o
|
|
|
|
endif
|
|
|
|
ifdef NEED_TLS_PRF
|
|
|
|
SHA1OBJS += ../src/crypto/sha1-tlsprf.o
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2012-08-16 19:03:17 +02:00
|
|
|
ifndef CONFIG_FIPS
|
2015-01-27 12:26:01 +01:00
|
|
|
ifneq ($(CONFIG_TLS), openssl)
|
2017-02-27 00:10:02 +01:00
|
|
|
ifneq ($(CONFIG_TLS), linux)
|
2017-12-27 22:35:26 +01:00
|
|
|
ifneq ($(CONFIG_TLS), gnutls)
|
2018-01-18 03:26:39 +01:00
|
|
|
ifneq ($(CONFIG_TLS), wolfssl)
|
2012-08-16 19:03:17 +02:00
|
|
|
MD5OBJS += ../src/crypto/md5.o
|
|
|
|
endif
|
2015-01-27 12:26:01 +01:00
|
|
|
endif
|
2017-02-27 00:10:02 +01:00
|
|
|
endif
|
2017-12-27 22:35:26 +01:00
|
|
|
endif
|
2018-01-18 03:26:39 +01:00
|
|
|
endif
|
2009-10-11 21:04:29 +02:00
|
|
|
ifdef NEED_MD5
|
2008-02-28 02:34:43 +01:00
|
|
|
ifdef CONFIG_INTERNAL_MD5
|
2009-07-28 20:36:13 +02:00
|
|
|
MD5OBJS += ../src/crypto/md5-internal.o
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
2009-10-11 21:04:29 +02:00
|
|
|
OBJS += $(MD5OBJS)
|
2009-08-13 16:07:36 +02:00
|
|
|
OBJS_p += $(MD5OBJS)
|
2015-04-25 16:37:53 +02:00
|
|
|
OBJS_priv += $(MD5OBJS)
|
2009-10-11 21:04:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef NEED_MD4
|
|
|
|
ifdef CONFIG_INTERNAL_MD4
|
|
|
|
OBJS += ../src/crypto/md4-internal.o
|
|
|
|
endif
|
|
|
|
endif
|
2009-07-28 20:27:02 +02:00
|
|
|
|
2009-10-11 21:04:29 +02:00
|
|
|
DESOBJS = # none needed when not internal
|
|
|
|
ifdef NEED_DES
|
2018-01-18 03:26:39 +01:00
|
|
|
ifndef CONFIG_FIPS
|
|
|
|
CFLAGS += -DCONFIG_DES
|
|
|
|
endif
|
2008-02-28 02:34:43 +01:00
|
|
|
ifdef CONFIG_INTERNAL_DES
|
2009-07-28 20:00:44 +02:00
|
|
|
DESOBJS += ../src/crypto/des-internal.o
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
2009-10-11 21:04:29 +02:00
|
|
|
endif
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2015-08-01 22:37:07 +02:00
|
|
|
ifdef CONFIG_NO_RC4
|
|
|
|
CFLAGS += -DCONFIG_NO_RC4
|
|
|
|
endif
|
|
|
|
|
2009-10-11 21:04:29 +02:00
|
|
|
ifdef NEED_RC4
|
2009-08-16 19:13:14 +02:00
|
|
|
ifdef CONFIG_INTERNAL_RC4
|
2015-08-01 22:37:07 +02:00
|
|
|
ifndef CONFIG_NO_RC4
|
2009-08-16 19:13:14 +02:00
|
|
|
OBJS += ../src/crypto/rc4.o
|
|
|
|
endif
|
2008-08-16 10:21:22 +02:00
|
|
|
endif
|
2015-08-01 22:37:07 +02:00
|
|
|
endif
|
2008-08-16 10:21:22 +02:00
|
|
|
|
2022-04-17 11:28:41 +02:00
|
|
|
ifdef CONFIG_SAE
|
|
|
|
ifdef NEED_SHA384
|
|
|
|
# Need to add HMAC-SHA384 KDF as well, if SHA384 was enabled.
|
|
|
|
NEED_HMAC_SHA384_KDF=y
|
|
|
|
endif
|
|
|
|
ifdef NEED_SHA512
|
|
|
|
# Need to add HMAC-SHA512 KDF as well, if SHA512 was enabled.
|
|
|
|
NEED_HMAC_SHA512_KDF=y
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2009-10-11 21:04:29 +02:00
|
|
|
SHA256OBJS = # none by default
|
2010-02-13 10:14:23 +01:00
|
|
|
CFLAGS += -DCONFIG_SHA256
|
2012-08-16 21:34:35 +02:00
|
|
|
ifneq ($(CONFIG_TLS), openssl)
|
2017-02-27 00:10:02 +01:00
|
|
|
ifneq ($(CONFIG_TLS), linux)
|
2017-12-27 22:35:26 +01:00
|
|
|
ifneq ($(CONFIG_TLS), gnutls)
|
2018-01-18 03:26:39 +01:00
|
|
|
ifneq ($(CONFIG_TLS), wolfssl)
|
2009-07-28 20:20:04 +02:00
|
|
|
SHA256OBJS += ../src/crypto/sha256.o
|
2012-08-16 21:34:35 +02:00
|
|
|
endif
|
2017-02-27 00:10:02 +01:00
|
|
|
endif
|
2017-12-27 22:35:26 +01:00
|
|
|
endif
|
2018-01-18 03:26:39 +01:00
|
|
|
endif
|
2012-08-16 21:24:11 +02:00
|
|
|
SHA256OBJS += ../src/crypto/sha256-prf.o
|
2009-07-28 20:20:04 +02:00
|
|
|
ifdef CONFIG_INTERNAL_SHA256
|
|
|
|
SHA256OBJS += ../src/crypto/sha256-internal.o
|
|
|
|
endif
|
2015-11-22 02:02:57 +01:00
|
|
|
ifdef CONFIG_INTERNAL_SHA384
|
|
|
|
CFLAGS += -DCONFIG_INTERNAL_SHA384
|
|
|
|
SHA256OBJS += ../src/crypto/sha384-internal.o
|
|
|
|
endif
|
|
|
|
ifdef CONFIG_INTERNAL_SHA512
|
|
|
|
CFLAGS += -DCONFIG_INTERNAL_SHA512
|
|
|
|
SHA256OBJS += ../src/crypto/sha512-internal.o
|
|
|
|
endif
|
2011-11-27 20:07:44 +01:00
|
|
|
ifdef NEED_TLS_PRF_SHA256
|
|
|
|
SHA256OBJS += ../src/crypto/sha256-tlsprf.o
|
|
|
|
endif
|
2019-08-16 20:15:32 +02:00
|
|
|
ifdef NEED_TLS_PRF_SHA384
|
|
|
|
SHA256OBJS += ../src/crypto/sha384-tlsprf.o
|
|
|
|
endif
|
2014-11-29 22:14:40 +01:00
|
|
|
ifdef NEED_HMAC_SHA256_KDF
|
2015-10-25 23:42:14 +01:00
|
|
|
CFLAGS += -DCONFIG_HMAC_SHA256_KDF
|
2014-11-29 22:14:40 +01:00
|
|
|
OBJS += ../src/crypto/sha256-kdf.o
|
|
|
|
endif
|
2017-06-15 20:17:50 +02:00
|
|
|
ifdef NEED_HMAC_SHA384_KDF
|
|
|
|
CFLAGS += -DCONFIG_HMAC_SHA384_KDF
|
|
|
|
OBJS += ../src/crypto/sha384-kdf.o
|
|
|
|
endif
|
|
|
|
ifdef NEED_HMAC_SHA512_KDF
|
|
|
|
CFLAGS += -DCONFIG_HMAC_SHA512_KDF
|
|
|
|
OBJS += ../src/crypto/sha512-kdf.o
|
|
|
|
endif
|
2009-07-28 20:20:04 +02:00
|
|
|
OBJS += $(SHA256OBJS)
|
2015-01-25 23:37:18 +01:00
|
|
|
ifdef NEED_SHA384
|
2017-02-16 19:37:19 +01:00
|
|
|
ifneq ($(CONFIG_TLS), openssl)
|
2017-02-27 00:10:02 +01:00
|
|
|
ifneq ($(CONFIG_TLS), linux)
|
2017-12-27 22:35:26 +01:00
|
|
|
ifneq ($(CONFIG_TLS), gnutls)
|
2018-01-18 03:26:39 +01:00
|
|
|
ifneq ($(CONFIG_TLS), wolfssl)
|
2017-02-16 19:37:19 +01:00
|
|
|
OBJS += ../src/crypto/sha384.o
|
|
|
|
endif
|
2017-02-27 00:10:02 +01:00
|
|
|
endif
|
2017-12-27 22:35:26 +01:00
|
|
|
endif
|
2018-01-18 03:26:39 +01:00
|
|
|
endif
|
2015-01-25 23:37:18 +01:00
|
|
|
CFLAGS += -DCONFIG_SHA384
|
2015-08-27 19:42:14 +02:00
|
|
|
OBJS += ../src/crypto/sha384-prf.o
|
2015-01-25 23:37:18 +01:00
|
|
|
endif
|
2017-06-15 20:17:50 +02:00
|
|
|
ifdef NEED_SHA512
|
|
|
|
ifneq ($(CONFIG_TLS), openssl)
|
|
|
|
ifneq ($(CONFIG_TLS), linux)
|
2017-12-27 22:35:26 +01:00
|
|
|
ifneq ($(CONFIG_TLS), gnutls)
|
2018-01-18 03:26:39 +01:00
|
|
|
ifneq ($(CONFIG_TLS), wolfssl)
|
2017-06-15 20:17:50 +02:00
|
|
|
OBJS += ../src/crypto/sha512.o
|
|
|
|
endif
|
|
|
|
endif
|
2017-12-27 22:35:26 +01:00
|
|
|
endif
|
2018-01-18 03:26:39 +01:00
|
|
|
endif
|
2017-06-15 20:17:50 +02:00
|
|
|
CFLAGS += -DCONFIG_SHA512
|
|
|
|
OBJS += ../src/crypto/sha512-prf.o
|
|
|
|
endif
|
2009-10-11 21:04:29 +02:00
|
|
|
|
2019-12-12 01:28:39 +01:00
|
|
|
ifdef NEED_ASN1
|
|
|
|
OBJS += ../src/tls/asn1.o
|
|
|
|
endif
|
|
|
|
|
2009-10-11 21:04:29 +02:00
|
|
|
ifdef NEED_DH_GROUPS
|
|
|
|
OBJS += ../src/crypto/dh_groups.o
|
|
|
|
endif
|
|
|
|
ifdef NEED_DH_GROUPS_ALL
|
|
|
|
CFLAGS += -DALL_DH_GROUPS
|
|
|
|
endif
|
2009-12-11 16:24:42 +01:00
|
|
|
ifdef CONFIG_INTERNAL_DH_GROUP5
|
|
|
|
ifdef NEED_DH_GROUPS
|
|
|
|
OBJS += ../src/crypto/dh_group5.o
|
|
|
|
endif
|
2009-10-11 21:04:29 +02:00
|
|
|
endif
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2012-12-31 18:41:21 +01:00
|
|
|
ifdef NEED_ECC
|
|
|
|
CFLAGS += -DCONFIG_ECC
|
|
|
|
endif
|
|
|
|
|
Maintain internal entropy pool for augmenting random number generation
By default, make hostapd and wpa_supplicant maintain an internal
entropy pool that is fed with following information:
hostapd:
- Probe Request frames (timing, RSSI)
- Association events (timing)
- SNonce from Supplicants
wpa_supplicant:
- Scan results (timing, signal/noise)
- Association events (timing)
The internal pool is used to augment the random numbers generated
with the OS mechanism (os_get_random()). While the internal
implementation is not expected to be very strong due to limited
amount of generic (non-platform specific) information to feed the
pool, this may strengthen key derivation on some devices that are
not configured to provide strong random numbers through
os_get_random() (e.g., /dev/urandom on Linux/BSD).
This new mechanism is not supposed to replace proper OS provided
random number generation mechanism. The OS mechanism needs to be
initialized properly (e.g., hw random number generator,
maintaining entropy pool over reboots, etc.) for any of the
security assumptions to hold.
If the os_get_random() is known to provide strong ramdom data (e.g., on
Linux/BSD, the board in question is known to have reliable source of
random data from /dev/urandom), the internal hostapd random pool can be
disabled. This will save some in binary size and CPU use. However, this
should only be considered for builds that are known to be used on
devices that meet the requirements described above. The internal pool
is disabled by adding CONFIG_NO_RANDOM_POOL=y to the .config file.
2010-11-24 00:29:40 +01:00
|
|
|
ifdef CONFIG_NO_RANDOM_POOL
|
|
|
|
CFLAGS += -DCONFIG_NO_RANDOM_POOL
|
|
|
|
else
|
2017-09-18 14:58:07 +02:00
|
|
|
ifdef CONFIG_GETRANDOM
|
|
|
|
CFLAGS += -DCONFIG_GETRANDOM
|
|
|
|
endif
|
Maintain internal entropy pool for augmenting random number generation
By default, make hostapd and wpa_supplicant maintain an internal
entropy pool that is fed with following information:
hostapd:
- Probe Request frames (timing, RSSI)
- Association events (timing)
- SNonce from Supplicants
wpa_supplicant:
- Scan results (timing, signal/noise)
- Association events (timing)
The internal pool is used to augment the random numbers generated
with the OS mechanism (os_get_random()). While the internal
implementation is not expected to be very strong due to limited
amount of generic (non-platform specific) information to feed the
pool, this may strengthen key derivation on some devices that are
not configured to provide strong random numbers through
os_get_random() (e.g., /dev/urandom on Linux/BSD).
This new mechanism is not supposed to replace proper OS provided
random number generation mechanism. The OS mechanism needs to be
initialized properly (e.g., hw random number generator,
maintaining entropy pool over reboots, etc.) for any of the
security assumptions to hold.
If the os_get_random() is known to provide strong ramdom data (e.g., on
Linux/BSD, the board in question is known to have reliable source of
random data from /dev/urandom), the internal hostapd random pool can be
disabled. This will save some in binary size and CPU use. However, this
should only be considered for builds that are known to be used on
devices that meet the requirements described above. The internal pool
is disabled by adding CONFIG_NO_RANDOM_POOL=y to the .config file.
2010-11-24 00:29:40 +01:00
|
|
|
OBJS += ../src/crypto/random.o
|
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifdef CONFIG_CTRL_IFACE
|
|
|
|
ifeq ($(CONFIG_CTRL_IFACE), y)
|
|
|
|
ifdef CONFIG_NATIVE_WINDOWS
|
|
|
|
CONFIG_CTRL_IFACE=named_pipe
|
|
|
|
else
|
|
|
|
CONFIG_CTRL_IFACE=unix
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
CFLAGS += -DCONFIG_CTRL_IFACE
|
|
|
|
ifeq ($(CONFIG_CTRL_IFACE), unix)
|
|
|
|
CFLAGS += -DCONFIG_CTRL_IFACE_UNIX
|
2016-03-04 10:20:21 +01:00
|
|
|
OBJS += ../src/common/ctrl_iface_common.o
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_CTRL_IFACE), udp)
|
|
|
|
CFLAGS += -DCONFIG_CTRL_IFACE_UDP
|
|
|
|
endif
|
2014-02-24 13:22:16 +01:00
|
|
|
ifeq ($(CONFIG_CTRL_IFACE), udp6)
|
|
|
|
CONFIG_CTRL_IFACE=udp
|
|
|
|
CFLAGS += -DCONFIG_CTRL_IFACE_UDP
|
|
|
|
CFLAGS += -DCONFIG_CTRL_IFACE_UDP_IPV6
|
|
|
|
endif
|
2008-02-28 02:34:43 +01:00
|
|
|
ifeq ($(CONFIG_CTRL_IFACE), named_pipe)
|
|
|
|
CFLAGS += -DCONFIG_CTRL_IFACE_NAMED_PIPE
|
|
|
|
endif
|
2012-08-05 19:01:07 +02:00
|
|
|
ifeq ($(CONFIG_CTRL_IFACE), udp-remote)
|
|
|
|
CONFIG_CTRL_IFACE=udp
|
|
|
|
CFLAGS += -DCONFIG_CTRL_IFACE_UDP
|
|
|
|
CFLAGS += -DCONFIG_CTRL_IFACE_UDP_REMOTE
|
|
|
|
endif
|
2014-02-24 13:22:16 +01:00
|
|
|
ifeq ($(CONFIG_CTRL_IFACE), udp6-remote)
|
|
|
|
CONFIG_CTRL_IFACE=udp
|
|
|
|
CFLAGS += -DCONFIG_CTRL_IFACE_UDP
|
|
|
|
CFLAGS += -DCONFIG_CTRL_IFACE_UDP_REMOTE
|
|
|
|
CFLAGS += -DCONFIG_CTRL_IFACE_UDP_IPV6
|
|
|
|
endif
|
2008-02-28 02:34:43 +01:00
|
|
|
OBJS += ctrl_iface.o ctrl_iface_$(CONFIG_CTRL_IFACE).o
|
|
|
|
endif
|
|
|
|
|
2009-11-09 22:51:59 +01:00
|
|
|
ifdef CONFIG_CTRL_IFACE_DBUS_NEW
|
2019-02-26 12:04:36 +01:00
|
|
|
CFLAGS += -DCONFIG_CTRL_IFACE_DBUS_NEW
|
|
|
|
OBJS += dbus/dbus_dict_helpers.o
|
|
|
|
OBJS += dbus/dbus_new_helpers.o
|
|
|
|
OBJS += dbus/dbus_new.o dbus/dbus_new_handlers.o
|
|
|
|
OBJS += dbus/dbus_common.o
|
2009-12-20 20:04:40 +01:00
|
|
|
ifdef CONFIG_WPS
|
2019-02-26 12:04:36 +01:00
|
|
|
OBJS += dbus/dbus_new_handlers_wps.o
|
2009-12-20 20:04:40 +01:00
|
|
|
endif
|
2011-06-13 00:08:19 +02:00
|
|
|
ifdef CONFIG_P2P
|
2019-02-26 12:04:36 +01:00
|
|
|
OBJS += dbus/dbus_new_handlers_p2p.o
|
2011-06-13 00:08:19 +02:00
|
|
|
endif
|
2009-11-09 22:51:59 +01:00
|
|
|
ifndef DBUS_LIBS
|
2011-07-04 19:35:38 +02:00
|
|
|
DBUS_LIBS := $(shell $(PKG_CONFIG) --libs dbus-1)
|
2009-11-09 22:51:59 +01:00
|
|
|
endif
|
|
|
|
ifndef DBUS_INCLUDE
|
2011-07-04 19:35:38 +02:00
|
|
|
DBUS_INCLUDE := $(shell $(PKG_CONFIG) --cflags dbus-1)
|
2009-11-09 22:51:59 +01:00
|
|
|
endif
|
|
|
|
ifdef CONFIG_CTRL_IFACE_DBUS_INTRO
|
2019-02-26 12:04:36 +01:00
|
|
|
OBJS += dbus/dbus_new_introspect.o
|
|
|
|
CFLAGS += -DCONFIG_CTRL_IFACE_DBUS_INTRO
|
2008-02-28 02:34:43 +01:00
|
|
|
endif
|
2019-02-26 12:04:36 +01:00
|
|
|
CFLAGS += $(DBUS_INCLUDE)
|
2009-11-09 22:51:59 +01:00
|
|
|
LIBS += $(DBUS_LIBS)
|
2019-02-26 12:04:36 +01:00
|
|
|
endif
|
2008-02-28 02:34:43 +01:00
|
|
|
|
|
|
|
ifdef CONFIG_READLINE
|
2010-11-14 21:37:43 +01:00
|
|
|
OBJS_c += ../src/utils/edit_readline.o
|
2015-10-01 10:26:43 +02:00
|
|
|
LIBS_c += -lreadline -lncurses
|
2010-11-14 19:59:29 +01:00
|
|
|
else
|
2010-11-14 18:15:23 +01:00
|
|
|
ifdef CONFIG_WPA_CLI_EDIT
|
2010-11-14 19:59:29 +01:00
|
|
|
OBJS_c += ../src/utils/edit.o
|
|
|
|
else
|
|
|
|
OBJS_c += ../src/utils/edit_simple.o
|
|
|
|
endif
|
2010-11-14 18:15:23 +01:00
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifdef CONFIG_NATIVE_WINDOWS
|
|
|
|
CFLAGS += -DCONFIG_NATIVE_WINDOWS
|
|
|
|
LIBS += -lws2_32 -lgdi32 -lcrypt32
|
|
|
|
LIBS_c += -lws2_32
|
|
|
|
LIBS_p += -lws2_32 -lgdi32
|
|
|
|
ifeq ($(CONFIG_CRYPTO), cryptoapi)
|
|
|
|
LIBS_p += -lcrypt32
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_NO_STDOUT_DEBUG
|
|
|
|
CFLAGS += -DCONFIG_NO_STDOUT_DEBUG
|
|
|
|
ifndef CONFIG_CTRL_IFACE
|
|
|
|
CFLAGS += -DCONFIG_NO_WPA_MSG
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_IPV6
|
|
|
|
# for eapol_test only
|
|
|
|
CFLAGS += -DCONFIG_IPV6
|
|
|
|
endif
|
|
|
|
|
2015-10-19 09:10:42 +02:00
|
|
|
ifdef CONFIG_NO_LINUX_PACKET_SOCKET_WAR
|
|
|
|
CFLAGS += -DCONFIG_NO_LINUX_PACKET_SOCKET_WAR
|
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifdef NEED_BASE64
|
|
|
|
OBJS += ../src/utils/base64.o
|
|
|
|
endif
|
|
|
|
|
2009-03-20 21:26:41 +01:00
|
|
|
ifdef NEED_SME
|
|
|
|
OBJS += sme.o
|
|
|
|
CFLAGS += -DCONFIG_SME
|
|
|
|
endif
|
|
|
|
|
2009-03-21 19:57:21 +01:00
|
|
|
OBJS += ../src/common/ieee802_11_common.o
|
2015-01-08 12:48:29 +01:00
|
|
|
OBJS += ../src/common/hw_features_common.o
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2010-05-23 11:18:47 +02:00
|
|
|
ifdef NEED_EAP_COMMON
|
|
|
|
OBJS += ../src/eap_common/eap_common.o
|
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifndef CONFIG_MAIN
|
|
|
|
CONFIG_MAIN=main
|
|
|
|
endif
|
|
|
|
|
2009-10-22 20:17:05 +02:00
|
|
|
ifdef CONFIG_DEBUG_SYSLOG
|
|
|
|
CFLAGS += -DCONFIG_DEBUG_SYSLOG
|
2011-03-20 10:48:42 +01:00
|
|
|
ifdef CONFIG_DEBUG_SYSLOG_FACILITY
|
|
|
|
CFLAGS += -DLOG_HOSTAPD="$(CONFIG_DEBUG_SYSLOG_FACILITY)"
|
|
|
|
endif
|
2009-10-22 20:17:05 +02:00
|
|
|
endif
|
|
|
|
|
2012-03-31 12:55:33 +02:00
|
|
|
ifdef CONFIG_DEBUG_LINUX_TRACING
|
|
|
|
CFLAGS += -DCONFIG_DEBUG_LINUX_TRACING
|
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
ifdef CONFIG_DEBUG_FILE
|
|
|
|
CFLAGS += -DCONFIG_DEBUG_FILE
|
|
|
|
endif
|
|
|
|
|
2008-11-08 03:43:12 +01:00
|
|
|
ifdef CONFIG_DELAYED_MIC_ERROR_REPORT
|
|
|
|
CFLAGS += -DCONFIG_DELAYED_MIC_ERROR_REPORT
|
|
|
|
endif
|
|
|
|
|
2009-08-16 18:00:49 +02:00
|
|
|
ifdef CONFIG_FIPS
|
|
|
|
CFLAGS += -DCONFIG_FIPS
|
2012-08-16 20:49:41 +02:00
|
|
|
ifneq ($(CONFIG_TLS), openssl)
|
2018-01-18 03:26:39 +01:00
|
|
|
ifneq ($(CONFIG_TLS), wolfssl)
|
2012-08-16 20:49:41 +02:00
|
|
|
$(error CONFIG_FIPS=y requires CONFIG_TLS=openssl)
|
|
|
|
endif
|
2009-08-16 18:00:49 +02:00
|
|
|
endif
|
2018-01-18 03:26:39 +01:00
|
|
|
endif
|
2009-08-16 18:00:49 +02:00
|
|
|
|
2009-07-28 20:00:44 +02:00
|
|
|
OBJS += $(SHA1OBJS) $(DESOBJS)
|
2009-07-28 19:47:04 +02:00
|
|
|
|
2009-12-06 13:37:46 +01:00
|
|
|
OBJS_p += $(SHA1OBJS)
|
2011-11-27 21:17:41 +01:00
|
|
|
OBJS_p += $(SHA256OBJS)
|
2015-04-25 16:37:53 +02:00
|
|
|
OBJS_priv += $(SHA1OBJS)
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2009-09-14 23:08:24 +02:00
|
|
|
ifdef CONFIG_BGSCAN_SIMPLE
|
|
|
|
CFLAGS += -DCONFIG_BGSCAN_SIMPLE
|
|
|
|
OBJS += bgscan_simple.o
|
|
|
|
NEED_BGSCAN=y
|
|
|
|
endif
|
|
|
|
|
2010-07-11 00:55:48 +02:00
|
|
|
ifdef CONFIG_BGSCAN_LEARN
|
|
|
|
CFLAGS += -DCONFIG_BGSCAN_LEARN
|
|
|
|
OBJS += bgscan_learn.o
|
|
|
|
NEED_BGSCAN=y
|
|
|
|
endif
|
|
|
|
|
2009-09-14 23:08:24 +02:00
|
|
|
ifdef NEED_BGSCAN
|
|
|
|
CFLAGS += -DCONFIG_BGSCAN
|
|
|
|
OBJS += bgscan.o
|
|
|
|
endif
|
|
|
|
|
2012-06-26 18:22:56 +02:00
|
|
|
ifdef CONFIG_AUTOSCAN_EXPONENTIAL
|
|
|
|
CFLAGS += -DCONFIG_AUTOSCAN_EXPONENTIAL
|
|
|
|
OBJS += autoscan_exponential.o
|
|
|
|
NEED_AUTOSCAN=y
|
|
|
|
endif
|
|
|
|
|
2012-06-26 18:28:21 +02:00
|
|
|
ifdef CONFIG_AUTOSCAN_PERIODIC
|
|
|
|
CFLAGS += -DCONFIG_AUTOSCAN_PERIODIC
|
|
|
|
OBJS += autoscan_periodic.o
|
|
|
|
NEED_AUTOSCAN=y
|
|
|
|
endif
|
|
|
|
|
2012-06-26 17:55:41 +02:00
|
|
|
ifdef NEED_AUTOSCAN
|
|
|
|
CFLAGS += -DCONFIG_AUTOSCAN
|
|
|
|
OBJS += autoscan.o
|
|
|
|
endif
|
|
|
|
|
2012-08-03 20:28:42 +02:00
|
|
|
ifdef CONFIG_EXT_PASSWORD_TEST
|
|
|
|
OBJS += ../src/utils/ext_password_test.o
|
|
|
|
CFLAGS += -DCONFIG_EXT_PASSWORD_TEST
|
|
|
|
NEED_EXT_PASSWORD=y
|
|
|
|
endif
|
|
|
|
|
2021-02-14 12:16:33 +01:00
|
|
|
ifdef CONFIG_EXT_PASSWORD_FILE
|
|
|
|
OBJS += ../src/utils/ext_password_file.o
|
|
|
|
CFLAGS += -DCONFIG_EXT_PASSWORD_FILE
|
|
|
|
NEED_EXT_PASSWORD=y
|
|
|
|
endif
|
|
|
|
|
2012-08-03 20:28:42 +02:00
|
|
|
ifdef NEED_EXT_PASSWORD
|
|
|
|
OBJS += ../src/utils/ext_password.o
|
|
|
|
CFLAGS += -DCONFIG_EXT_PASSWORD
|
|
|
|
endif
|
|
|
|
|
2017-06-15 20:18:15 +02:00
|
|
|
ifdef NEED_GAS_SERVER
|
|
|
|
OBJS += ../src/common/gas_server.o
|
|
|
|
CFLAGS += -DCONFIG_GAS_SERVER
|
|
|
|
NEED_GAS=y
|
|
|
|
endif
|
|
|
|
|
2011-09-27 16:28:46 +02:00
|
|
|
ifdef NEED_GAS
|
|
|
|
OBJS += ../src/common/gas.o
|
2011-09-28 18:44:25 +02:00
|
|
|
OBJS += gas_query.o
|
|
|
|
CFLAGS += -DCONFIG_GAS
|
2011-09-29 18:22:08 +02:00
|
|
|
NEED_OFFCHANNEL=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef NEED_OFFCHANNEL
|
|
|
|
OBJS += offchannel.o
|
|
|
|
CFLAGS += -DCONFIG_OFFCHANNEL
|
2011-09-27 16:28:46 +02:00
|
|
|
endif
|
|
|
|
|
2017-06-15 20:18:00 +02:00
|
|
|
ifdef NEED_JSON
|
|
|
|
OBJS += ../src/utils/json.o
|
|
|
|
CFLAGS += -DCONFIG_JSON
|
|
|
|
endif
|
|
|
|
|
2014-05-31 12:36:59 +02:00
|
|
|
ifdef CONFIG_MODULE_TESTS
|
|
|
|
CFLAGS += -DCONFIG_MODULE_TESTS
|
|
|
|
OBJS += wpas_module_tests.o
|
|
|
|
OBJS += ../src/utils/utils_module_tests.o
|
|
|
|
OBJS += ../src/common/common_module_tests.o
|
2015-01-05 14:48:17 +01:00
|
|
|
OBJS += ../src/crypto/crypto_module_tests.o
|
2014-05-31 12:36:59 +02:00
|
|
|
ifdef CONFIG_WPS
|
|
|
|
OBJS += ../src/wps/wps_module_tests.o
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2011-11-13 17:56:26 +01:00
|
|
|
OBJS += ../src/drivers/driver_common.o
|
2013-01-13 17:27:00 +01:00
|
|
|
OBJS_priv += ../src/drivers/driver_common.o
|
2011-11-13 17:56:26 +01:00
|
|
|
|
2021-02-07 16:06:19 +01:00
|
|
|
OBJS += wpa_supplicant.o events.o bssid_ignore.o wpas_glue.o scan.o
|
2009-12-06 16:53:59 +01:00
|
|
|
OBJS_t := $(OBJS) $(OBJS_l2) eapol_test.o
|
|
|
|
OBJS_t += ../src/radius/radius_client.o
|
2009-02-05 17:20:26 +01:00
|
|
|
OBJS_t += ../src/radius/radius.o
|
2008-02-28 02:34:43 +01:00
|
|
|
OBJS_t2 := $(OBJS) $(OBJS_l2) preauth_test.o
|
2012-06-28 19:42:50 +02:00
|
|
|
|
|
|
|
OBJS_nfc := $(OBJS) $(OBJS_l2) nfc_pw_token.o
|
|
|
|
OBJS_nfc += $(OBJS_d) ../src/drivers/drivers.o
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
OBJS += $(CONFIG_MAIN).o
|
|
|
|
|
|
|
|
ifdef CONFIG_PRIVSEP
|
2010-01-03 19:27:32 +01:00
|
|
|
OBJS_priv += $(OBJS_d) ../src/drivers/drivers.o
|
2008-02-28 02:34:43 +01:00
|
|
|
OBJS_priv += $(OBJS_l2)
|
|
|
|
OBJS_priv += ../src/utils/os_$(CONFIG_OS).o
|
|
|
|
OBJS_priv += ../src/utils/$(CONFIG_ELOOP).o
|
|
|
|
OBJS_priv += ../src/utils/common.o
|
|
|
|
OBJS_priv += ../src/utils/wpa_debug.o
|
2009-02-07 09:19:28 +01:00
|
|
|
OBJS_priv += ../src/utils/wpabuf.o
|
2008-02-28 02:34:43 +01:00
|
|
|
OBJS_priv += wpa_priv.o
|
2011-10-22 21:16:11 +02:00
|
|
|
ifdef CONFIG_DRIVER_NL80211
|
|
|
|
OBJS_priv += ../src/common/ieee802_11_common.o
|
|
|
|
endif
|
2008-02-28 02:34:43 +01:00
|
|
|
OBJS += ../src/l2_packet/l2_packet_privsep.o
|
|
|
|
OBJS += ../src/drivers/driver_privsep.o
|
|
|
|
EXTRA_progs += wpa_priv
|
|
|
|
else
|
|
|
|
OBJS += $(OBJS_d) ../src/drivers/drivers.o
|
|
|
|
OBJS += $(OBJS_l2)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_NDIS_EVENTS_INTEGRATED
|
|
|
|
CFLAGS += -DCONFIG_NDIS_EVENTS_INTEGRATED
|
|
|
|
OBJS += ../src/drivers/ndis_events.o
|
|
|
|
EXTRALIBS += -loleaut32 -lole32 -luuid
|
|
|
|
ifdef PLATFORMSDKLIB
|
|
|
|
EXTRALIBS += $(PLATFORMSDKLIB)/WbemUuid.Lib
|
|
|
|
else
|
|
|
|
EXTRALIBS += WbemUuid.Lib
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2014-11-16 16:28:53 +01:00
|
|
|
ifdef CONFIG_FST
|
|
|
|
CFLAGS += -DCONFIG_FST
|
2014-12-04 18:20:56 +01:00
|
|
|
ifdef CONFIG_FST_TEST
|
|
|
|
CFLAGS += -DCONFIG_FST_TEST
|
|
|
|
endif
|
2014-11-16 16:28:53 +01:00
|
|
|
FST_OBJS += ../src/fst/fst.o
|
|
|
|
FST_OBJS += ../src/fst/fst_session.o
|
|
|
|
FST_OBJS += ../src/fst/fst_iface.o
|
|
|
|
FST_OBJS += ../src/fst/fst_group.o
|
|
|
|
FST_OBJS += ../src/fst/fst_ctrl_aux.o
|
|
|
|
ifdef CONFIG_CTRL_IFACE
|
|
|
|
FST_OBJS += ../src/fst/fst_ctrl_iface.o
|
|
|
|
endif
|
|
|
|
OBJS += $(FST_OBJS)
|
|
|
|
OBJS_t += $(FST_OBJS)
|
|
|
|
OBJS_t2 += $(FST_OBJS)
|
2016-03-20 19:18:55 +01:00
|
|
|
OBJS_nfc += $(FST_OBJS)
|
2014-11-16 16:28:53 +01:00
|
|
|
endif
|
|
|
|
|
2020-02-29 15:52:39 +01:00
|
|
|
ifdef CONFIG_WEP
|
|
|
|
CFLAGS += -DCONFIG_WEP
|
|
|
|
endif
|
|
|
|
|
2020-04-09 06:12:21 +02:00
|
|
|
ifdef CONFIG_NO_TKIP
|
|
|
|
CFLAGS += -DCONFIG_NO_TKIP
|
|
|
|
endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
dynamic_eap_methods: $(EAPDYN)
|
|
|
|
|
2020-09-18 11:49:53 +02:00
|
|
|
_OBJS_VAR := OBJS_priv
|
|
|
|
include ../src/objs.mk
|
2009-08-14 19:40:37 +02:00
|
|
|
wpa_priv: $(BCHECK) $(OBJS_priv)
|
2011-03-17 11:31:38 +01:00
|
|
|
$(Q)$(LDO) $(LDFLAGS) -o wpa_priv $(OBJS_priv) $(LIBS)
|
|
|
|
@$(E) " LD " $@
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2020-09-18 11:49:53 +02:00
|
|
|
_OBJS_VAR := OBJS
|
|
|
|
include ../src/objs.mk
|
2011-11-19 10:46:39 +01:00
|
|
|
wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs)
|
2011-03-17 11:31:38 +01:00
|
|
|
$(Q)$(LDO) $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS) $(EXTRALIBS)
|
|
|
|
@$(E) " LD " $@
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2020-09-18 11:49:53 +02:00
|
|
|
_OBJS_VAR := OBJS_t
|
|
|
|
include ../src/objs.mk
|
2011-11-19 10:46:39 +01:00
|
|
|
eapol_test: $(OBJS_t)
|
2011-03-17 11:31:38 +01:00
|
|
|
$(Q)$(LDO) $(LDFLAGS) -o eapol_test $(OBJS_t) $(LIBS)
|
|
|
|
@$(E) " LD " $@
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2020-09-18 11:49:53 +02:00
|
|
|
_OBJS_VAR := OBJS_t2
|
|
|
|
include ../src/objs.mk
|
2011-11-19 10:46:39 +01:00
|
|
|
preauth_test: $(OBJS_t2)
|
2011-03-17 11:31:38 +01:00
|
|
|
$(Q)$(LDO) $(LDFLAGS) -o preauth_test $(OBJS_t2) $(LIBS)
|
|
|
|
@$(E) " LD " $@
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2020-09-18 11:49:53 +02:00
|
|
|
_OBJS_VAR := OBJS_p
|
|
|
|
include ../src/objs.mk
|
2008-02-28 02:34:43 +01:00
|
|
|
wpa_passphrase: $(OBJS_p)
|
2018-02-13 23:49:08 +01:00
|
|
|
$(Q)$(LDO) $(LDFLAGS) -o wpa_passphrase $(OBJS_p) $(LIBS_p) $(LIBS)
|
2011-03-17 11:31:38 +01:00
|
|
|
@$(E) " LD " $@
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2020-09-18 11:49:53 +02:00
|
|
|
_OBJS_VAR := OBJS_c
|
|
|
|
include ../src/objs.mk
|
2008-02-28 02:34:43 +01:00
|
|
|
wpa_cli: $(OBJS_c)
|
2011-03-17 11:31:38 +01:00
|
|
|
$(Q)$(LDO) $(LDFLAGS) -o wpa_cli $(OBJS_c) $(LIBS_c)
|
|
|
|
@$(E) " LD " $@
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2015-02-21 16:39:08 +01:00
|
|
|
LIBCTRL += ../src/common/wpa_ctrl.o
|
|
|
|
LIBCTRL += ../src/utils/os_$(CONFIG_OS).o
|
2015-10-29 11:52:52 +01:00
|
|
|
LIBCTRL += ../src/utils/common.o
|
2015-02-21 16:39:08 +01:00
|
|
|
LIBCTRL += ../src/utils/wpa_debug.o
|
2015-05-09 00:32:36 +02:00
|
|
|
LIBCTRLSO += ../src/common/wpa_ctrl.c
|
|
|
|
LIBCTRLSO += ../src/utils/os_$(CONFIG_OS).c
|
2015-10-29 11:52:52 +01:00
|
|
|
LIBCTRLSO += ../src/utils/common.c
|
2015-05-09 00:32:36 +02:00
|
|
|
LIBCTRLSO += ../src/utils/wpa_debug.c
|
2015-02-21 16:39:08 +01:00
|
|
|
|
2020-09-18 11:49:53 +02:00
|
|
|
_OBJS_VAR := LIBCTRL
|
|
|
|
include ../src/objs.mk
|
2015-05-09 00:32:36 +02:00
|
|
|
libwpa_client.a: $(LIBCTRL)
|
2015-02-21 16:39:08 +01:00
|
|
|
$(Q)rm -f $@
|
|
|
|
$(Q)$(AR) crs $@ $?
|
|
|
|
@$(E) " AR " $@
|
|
|
|
|
2015-05-09 00:32:36 +02:00
|
|
|
libwpa_client.so: $(LIBCTRLSO)
|
|
|
|
@$(E) " CC $@ ($^)"
|
|
|
|
$(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -fPIC $^
|
|
|
|
|
2020-09-18 11:49:53 +02:00
|
|
|
OBJS_wpatest := libwpa_test.o
|
|
|
|
_OBJS_VAR := OBJS_wpatest
|
|
|
|
include ../src/objs.mk
|
|
|
|
libwpa_test1: $(OBJS_wpatest) libwpa_client.a
|
|
|
|
$(Q)$(LDO) $(LDFLAGS) -o libwpa_test1 $(OBJS_wpatest) libwpa_client.a $(LIBS_c)
|
2015-10-31 18:11:09 +01:00
|
|
|
@$(E) " LD " $@
|
|
|
|
|
2020-09-18 11:49:53 +02:00
|
|
|
libwpa_test2: $(OBJS_wpatest) libwpa_client.so
|
|
|
|
$(Q)$(LDO) $(LDFLAGS) -o libwpa_test2 $(OBJS_wpatest) -L. -lwpa_client $(LIBS_c)
|
2015-10-31 18:11:09 +01:00
|
|
|
@$(E) " LD " $@
|
|
|
|
|
2020-09-18 11:49:53 +02:00
|
|
|
_OBJS_VAR := OBJS_nfc
|
|
|
|
include ../src/objs.mk
|
2012-06-28 19:42:50 +02:00
|
|
|
nfc_pw_token: $(OBJS_nfc)
|
|
|
|
$(Q)$(LDO) $(LDFLAGS) -o nfc_pw_token $(OBJS_nfc) $(LIBS)
|
|
|
|
@$(E) " LD " $@
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
win_if_list: win_if_list.c
|
2011-03-17 11:31:38 +01:00
|
|
|
$(Q)$(LDO) $(LDFLAGS) -o $@ win_if_list.c $(CFLAGS) $(LIBS_w)
|
|
|
|
@$(E) " LD " $@
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2021-02-27 22:42:21 +01:00
|
|
|
eap_psk.so: $(SRC_EAP_PSK)
|
|
|
|
$(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \
|
2008-02-28 02:34:43 +01:00
|
|
|
-Deap_peer_psk_register=eap_peer_method_dynamic_init
|
2021-02-27 22:42:21 +01:00
|
|
|
@$(E) " CC/LD " $@
|
|
|
|
|
|
|
|
eap_pax.so: $(SRC_EAP_PAX)
|
|
|
|
$(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \
|
|
|
|
-D$(@F:eap_%.so=eap_peer_%)_register=eap_peer_method_dynamic_init
|
|
|
|
@$(E) " CC/LD " $@
|
|
|
|
|
|
|
|
eap_peap.so: $(SRC_EAP_PEAP)
|
|
|
|
$(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \
|
|
|
|
-D$(@F:eap_%.so=eap_peer_%)_register=eap_peer_method_dynamic_init
|
|
|
|
@$(E) " CC/LD " $@
|
|
|
|
|
|
|
|
eap_sake.so: $(SRC_EAP_SAKE)
|
|
|
|
$(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \
|
|
|
|
-D$(@F:eap_%.so=eap_peer_%)_register=eap_peer_method_dynamic_init
|
|
|
|
@$(E) " CC/LD " $@
|
|
|
|
|
|
|
|
eap_ikev2.so: $(SRC_EAP_IKEV2)
|
|
|
|
$(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \
|
|
|
|
-D$(@F:eap_%.so=eap_peer_%)_register=eap_peer_method_dynamic_init
|
|
|
|
@$(E) " CC/LD " $@
|
|
|
|
|
|
|
|
eap_eke.so: $(SRC_EAP_EKE)
|
|
|
|
$(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \
|
|
|
|
-D$(@F:eap_%.so=eap_peer_%)_register=eap_peer_method_dynamic_init
|
|
|
|
@$(E) " CC/LD " $@
|
|
|
|
|
|
|
|
eap_mschapv2.so: $(SRC_EAP_MSCHAPV2)
|
|
|
|
$(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \
|
|
|
|
-D$(@F:eap_%.so=eap_peer_%)_register=eap_peer_method_dynamic_init
|
|
|
|
@$(E) " CC/LD " $@
|
|
|
|
|
|
|
|
eap_fast.so: $(SRC_EAP_FAST)
|
|
|
|
$(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \
|
|
|
|
-D$(@F:eap_%.so=eap_peer_%)_register=eap_peer_method_dynamic_init
|
|
|
|
@$(E) " CC/LD " $@
|
|
|
|
|
|
|
|
eap_teap.so: $(SRC_EAP_TEAP)
|
|
|
|
$(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \
|
|
|
|
-D$(@F:eap_%.so=eap_peer_%)_register=eap_peer_method_dynamic_init
|
|
|
|
@$(E) " CC/LD " $@
|
|
|
|
|
|
|
|
eap_gpsk.so: $(SRC_EAP_GPSK)
|
|
|
|
$(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^ \
|
|
|
|
-D$(@F:eap_%.so=eap_peer_%)_register=eap_peer_method_dynamic_init
|
|
|
|
@$(E) " CC/LD " $@
|
|
|
|
|
|
|
|
%.so: ../src/eap_peer/%.c
|
|
|
|
$(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $< \
|
2009-02-07 09:05:23 +01:00
|
|
|
-D$(*F:eap_%=eap_peer_%)_register=eap_peer_method_dynamic_init
|
2021-02-27 22:42:21 +01:00
|
|
|
@$(E) " CC/LD " $@
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2011-07-15 11:25:02 +02:00
|
|
|
%.service: %.service.in
|
2019-02-26 12:04:36 +01:00
|
|
|
$(Q)sed -e 's|\@BINDIR\@|$(BINDIR)|g' $< >$@
|
2014-12-26 11:49:03 +01:00
|
|
|
@$(E) " sed" $<
|
2011-07-15 11:25:02 +02:00
|
|
|
|
2012-01-28 16:12:30 +01:00
|
|
|
%@.service: %.service.arg.in
|
2019-02-26 12:04:36 +01:00
|
|
|
$(Q)sed -e 's|\@BINDIR\@|$(BINDIR)|g' $< >$@
|
2014-12-26 11:49:03 +01:00
|
|
|
@$(E) " sed" $<
|
2012-01-28 16:12:30 +01:00
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
wpa_supplicant.exe: wpa_supplicant
|
|
|
|
mv -f $< $@
|
|
|
|
wpa_cli.exe: wpa_cli
|
|
|
|
mv -f $< $@
|
|
|
|
wpa_passphrase.exe: wpa_passphrase
|
|
|
|
mv -f $< $@
|
|
|
|
win_if_list.exe: win_if_list
|
|
|
|
mv -f $< $@
|
|
|
|
eapol_test.exe: eapol_test
|
|
|
|
mv -f $< $@
|
|
|
|
|
|
|
|
WINALL=wpa_supplicant.exe wpa_cli.exe wpa_passphrase.exe win_if_list.exe
|
|
|
|
|
|
|
|
windows-bin: $(WINALL)
|
|
|
|
$(STRIP) $(WINALL)
|
|
|
|
|
2011-11-03 16:48:31 +01:00
|
|
|
wpa_gui:
|
|
|
|
@echo "wpa_gui has been removed - see wpa_gui-qt4 for replacement"
|
2008-02-28 02:34:43 +01:00
|
|
|
|
|
|
|
wpa_gui-qt4/Makefile:
|
2015-04-23 23:57:38 +02:00
|
|
|
qmake -o wpa_gui-qt4/Makefile wpa_gui-qt4/wpa_gui.pro
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2010-04-18 18:15:07 +02:00
|
|
|
wpa_gui-qt4/lang/wpa_gui_de.qm: wpa_gui-qt4/lang/wpa_gui_de.ts
|
|
|
|
lrelease wpa_gui-qt4/wpa_gui.pro
|
|
|
|
|
|
|
|
wpa_gui-qt4: wpa_gui-qt4/Makefile wpa_gui-qt4/lang/wpa_gui_de.qm
|
2008-02-28 02:34:43 +01:00
|
|
|
$(MAKE) -C wpa_gui-qt4
|
|
|
|
|
2012-08-16 16:53:05 +02:00
|
|
|
FIPSDIR=/usr/local/ssl/fips-2.0
|
|
|
|
FIPSLD=$(FIPSDIR)/bin/fipsld
|
|
|
|
fips:
|
|
|
|
$(MAKE) CC=$(FIPSLD) FIPSLD_CC="$(CC)"
|
|
|
|
|
2020-09-18 11:49:53 +02:00
|
|
|
.PHONY: lcov-html
|
|
|
|
lcov-html: $(call BUILDOBJ,wpa_supplicant.gcda)
|
|
|
|
lcov -c -d $(BUILDDIR) > lcov.info
|
2013-12-25 12:44:38 +01:00
|
|
|
genhtml lcov.info --output-directory lcov-html
|
|
|
|
|
2020-09-18 11:49:51 +02:00
|
|
|
clean: common-clean
|
2008-02-28 02:34:43 +01:00
|
|
|
$(MAKE) -C ../src clean
|
2009-12-20 19:29:09 +01:00
|
|
|
$(MAKE) -C dbus clean
|
2013-11-24 18:16:12 +01:00
|
|
|
rm -f core *~ *.o *.d *.gcno *.gcda *.gcov
|
2020-09-18 11:49:51 +02:00
|
|
|
rm -f eap_*.so $(WINALL) eapol_test preauth_test
|
2009-10-16 20:49:45 +02:00
|
|
|
rm -f wpa_priv
|
2012-06-28 19:42:50 +02:00
|
|
|
rm -f nfc_pw_token
|
2013-12-25 12:44:38 +01:00
|
|
|
rm -f lcov.info
|
|
|
|
rm -rf lcov-html
|
2015-05-09 00:32:36 +02:00
|
|
|
rm -f libwpa_client.a
|
|
|
|
rm -f libwpa_client.so
|
2015-10-31 18:11:09 +01:00
|
|
|
rm -f libwpa_test1 libwpa_test2
|
2022-03-03 12:26:42 +01:00
|
|
|
rm -f wpa_passphrase
|