1*03f9172cSAndroid Build Coastguard WorkerALL=hostapd hostapd_cli 2*03f9172cSAndroid Build Coastguard WorkerCONFIG_FILE = .config 3*03f9172cSAndroid Build Coastguard Worker 4*03f9172cSAndroid Build Coastguard Workerinclude ../src/build.rules 5*03f9172cSAndroid Build Coastguard Worker 6*03f9172cSAndroid Build Coastguard Workerifdef LIBS 7*03f9172cSAndroid Build Coastguard Worker# If LIBS is set with some global build system defaults, clone those for 8*03f9172cSAndroid Build Coastguard Worker# LIBS_c, LIBS_h, and LIBS_n to cover hostapd_cli, hlr_auc_gw, and 9*03f9172cSAndroid Build Coastguard Worker# nt_password_hash as well. 10*03f9172cSAndroid Build Coastguard Workerifndef LIBS_c 11*03f9172cSAndroid Build Coastguard WorkerLIBS_c := $(LIBS) 12*03f9172cSAndroid Build Coastguard Workerendif 13*03f9172cSAndroid Build Coastguard Workerifndef LIBS_h 14*03f9172cSAndroid Build Coastguard WorkerLIBS_h := $(LIBS) 15*03f9172cSAndroid Build Coastguard Workerendif 16*03f9172cSAndroid Build Coastguard Workerifndef LIBS_n 17*03f9172cSAndroid Build Coastguard WorkerLIBS_n := $(LIBS) 18*03f9172cSAndroid Build Coastguard Workerendif 19*03f9172cSAndroid Build Coastguard Workerifndef LIBS_s 20*03f9172cSAndroid Build Coastguard WorkerLIBS_s := $(LIBS) 21*03f9172cSAndroid Build Coastguard Workerendif 22*03f9172cSAndroid Build Coastguard Workerendif 23*03f9172cSAndroid Build Coastguard Worker 24*03f9172cSAndroid Build Coastguard WorkerCFLAGS += $(EXTRA_CFLAGS) 25*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -I$(abspath ../src) 26*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -I$(abspath ../src/utils) 27*03f9172cSAndroid Build Coastguard Worker 28*03f9172cSAndroid Build Coastguard Workerexport BINDIR ?= /usr/local/bin/ 29*03f9172cSAndroid Build Coastguard Worker 30*03f9172cSAndroid Build Coastguard Workerifndef CONFIG_NO_GITVER 31*03f9172cSAndroid Build Coastguard Worker# Add VERSION_STR postfix for builds from a git repository 32*03f9172cSAndroid Build Coastguard Workerifeq ($(wildcard ../.git),../.git) 33*03f9172cSAndroid Build Coastguard WorkerGITVER := $(shell git describe --dirty=+) 34*03f9172cSAndroid Build Coastguard Workerifneq ($(GITVER),) 35*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DGIT_VERSION_STR_POSTFIX=\"-$(GITVER)\" 36*03f9172cSAndroid Build Coastguard Workerendif 37*03f9172cSAndroid Build Coastguard Workerendif 38*03f9172cSAndroid Build Coastguard Workerendif 39*03f9172cSAndroid Build Coastguard Worker 40*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_TESTING_OPTIONS 41*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_TESTING_OPTIONS 42*03f9172cSAndroid Build Coastguard WorkerCONFIG_WPS_TESTING=y 43*03f9172cSAndroid Build Coastguard Workerendif 44*03f9172cSAndroid Build Coastguard Worker 45*03f9172cSAndroid Build Coastguard Workerifndef CONFIG_OS 46*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_NATIVE_WINDOWS 47*03f9172cSAndroid Build Coastguard WorkerCONFIG_OS=win32 48*03f9172cSAndroid Build Coastguard Workerelse 49*03f9172cSAndroid Build Coastguard WorkerCONFIG_OS=unix 50*03f9172cSAndroid Build Coastguard Workerendif 51*03f9172cSAndroid Build Coastguard Workerendif 52*03f9172cSAndroid Build Coastguard Worker 53*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_OS), internal) 54*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DOS_NO_C_LIB_DEFINES 55*03f9172cSAndroid Build Coastguard Workerendif 56*03f9172cSAndroid Build Coastguard Worker 57*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_NATIVE_WINDOWS 58*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_NATIVE_WINDOWS 59*03f9172cSAndroid Build Coastguard WorkerLIBS += -lws2_32 60*03f9172cSAndroid Build Coastguard Workerendif 61*03f9172cSAndroid Build Coastguard Worker 62*03f9172cSAndroid Build Coastguard WorkerOBJS += main.o 63*03f9172cSAndroid Build Coastguard WorkerOBJS += config_file.o 64*03f9172cSAndroid Build Coastguard Worker 65*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/hostapd.o 66*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/wpa_auth_glue.o 67*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/drv_callbacks.o 68*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/ap_drv_ops.o 69*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/utils.o 70*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/authsrv.o 71*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/ieee802_1x.o 72*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/ap_config.o 73*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/eap_user_db.o 74*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/ieee802_11_auth.o 75*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/sta_info.o 76*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/wpa_auth.o 77*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/tkip_countermeasures.o 78*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/ap_mlme.o 79*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/wpa_auth_ie.o 80*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/preauth_auth.o 81*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/pmksa_cache_auth.o 82*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/ieee802_11_shared.o 83*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/beacon.o 84*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/bss_load.o 85*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/neighbor_db.o 86*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/rrm.o 87*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/common/ptksa_cache.o 88*03f9172cSAndroid Build Coastguard Worker 89*03f9172cSAndroid Build Coastguard WorkerOBJS_c = hostapd_cli.o 90*03f9172cSAndroid Build Coastguard WorkerOBJS_c += ../src/common/wpa_ctrl.o 91*03f9172cSAndroid Build Coastguard WorkerOBJS_c += ../src/utils/os_$(CONFIG_OS).o 92*03f9172cSAndroid Build Coastguard WorkerOBJS_c += ../src/common/cli.o 93*03f9172cSAndroid Build Coastguard Worker 94*03f9172cSAndroid Build Coastguard WorkerNEED_RC4=y 95*03f9172cSAndroid Build Coastguard WorkerNEED_AES=y 96*03f9172cSAndroid Build Coastguard WorkerNEED_MD5=y 97*03f9172cSAndroid Build Coastguard WorkerNEED_SHA1=y 98*03f9172cSAndroid Build Coastguard Worker 99*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/drivers/drivers.o 100*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DHOSTAPD 101*03f9172cSAndroid Build Coastguard Worker 102*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_TAXONOMY 103*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_TAXONOMY 104*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/taxonomy.o 105*03f9172cSAndroid Build Coastguard Workerendif 106*03f9172cSAndroid Build Coastguard Worker 107*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_MODULE_TESTS 108*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_MODULE_TESTS 109*03f9172cSAndroid Build Coastguard WorkerOBJS += hapd_module_tests.o 110*03f9172cSAndroid Build Coastguard Workerendif 111*03f9172cSAndroid Build Coastguard Worker 112*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_WPA_TRACE 113*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DWPA_TRACE 114*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/utils/trace.o 115*03f9172cSAndroid Build Coastguard WorkerHOBJS += ../src/utils/trace.o 116*03f9172cSAndroid Build Coastguard WorkerLDFLAGS += -rdynamic 117*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -funwind-tables 118*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_WPA_TRACE_BFD 119*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DPACKAGE="hostapd" -DWPA_TRACE_BFD 120*03f9172cSAndroid Build Coastguard WorkerLIBS += -lbfd -ldl -liberty -lz 121*03f9172cSAndroid Build Coastguard WorkerLIBS_c += -lbfd -ldl -liberty -lz 122*03f9172cSAndroid Build Coastguard WorkerLIBS_h += -lbfd -ldl -liberty -lz 123*03f9172cSAndroid Build Coastguard WorkerLIBS_n += -lbfd -ldl -liberty -lz 124*03f9172cSAndroid Build Coastguard WorkerLIBS_s += -lbfd -ldl -liberty -lz 125*03f9172cSAndroid Build Coastguard Workerendif 126*03f9172cSAndroid Build Coastguard Workerendif 127*03f9172cSAndroid Build Coastguard Worker 128*03f9172cSAndroid Build Coastguard Workerifndef CONFIG_ELOOP 129*03f9172cSAndroid Build Coastguard WorkerCONFIG_ELOOP=eloop 130*03f9172cSAndroid Build Coastguard Workerendif 131*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/utils/$(CONFIG_ELOOP).o 132*03f9172cSAndroid Build Coastguard WorkerOBJS_c += ../src/utils/$(CONFIG_ELOOP).o 133*03f9172cSAndroid Build Coastguard Worker 134*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_ELOOP), eloop) 135*03f9172cSAndroid Build Coastguard Worker# Using glibc < 2.17 requires -lrt for clock_gettime() 136*03f9172cSAndroid Build Coastguard WorkerLIBS += -lrt 137*03f9172cSAndroid Build Coastguard WorkerLIBS_c += -lrt 138*03f9172cSAndroid Build Coastguard WorkerLIBS_h += -lrt 139*03f9172cSAndroid Build Coastguard WorkerLIBS_n += -lrt 140*03f9172cSAndroid Build Coastguard Workerendif 141*03f9172cSAndroid Build Coastguard Worker 142*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_ELOOP_POLL 143*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_ELOOP_POLL 144*03f9172cSAndroid Build Coastguard Workerendif 145*03f9172cSAndroid Build Coastguard Worker 146*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_ELOOP_EPOLL 147*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_ELOOP_EPOLL 148*03f9172cSAndroid Build Coastguard Workerendif 149*03f9172cSAndroid Build Coastguard Worker 150*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_ELOOP_KQUEUE 151*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_ELOOP_KQUEUE 152*03f9172cSAndroid Build Coastguard Workerendif 153*03f9172cSAndroid Build Coastguard Worker 154*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/utils/common.o 155*03f9172cSAndroid Build Coastguard WorkerOBJS_c += ../src/utils/common.o 156*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/utils/wpa_debug.o 157*03f9172cSAndroid Build Coastguard WorkerOBJS_c += ../src/utils/wpa_debug.o 158*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/utils/wpabuf.o 159*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/utils/os_$(CONFIG_OS).o 160*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/utils/ip_addr.o 161*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/utils/crc32.o 162*03f9172cSAndroid Build Coastguard Worker 163*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/common/ieee802_11_common.o 164*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/common/wpa_common.o 165*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/common/hw_features_common.o 166*03f9172cSAndroid Build Coastguard Worker 167*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eapol_auth/eapol_auth_sm.o 168*03f9172cSAndroid Build Coastguard Worker 169*03f9172cSAndroid Build Coastguard Worker 170*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_CODE_COVERAGE 171*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -O0 -fprofile-arcs -ftest-coverage -U_FORTIFY_SOURCE 172*03f9172cSAndroid Build Coastguard WorkerLIBS += -lgcov 173*03f9172cSAndroid Build Coastguard WorkerLIBS_c += -lgcov 174*03f9172cSAndroid Build Coastguard WorkerLIBS_h += -lgcov 175*03f9172cSAndroid Build Coastguard WorkerLIBS_n += -lgcov 176*03f9172cSAndroid Build Coastguard Workerendif 177*03f9172cSAndroid Build Coastguard Worker 178*03f9172cSAndroid Build Coastguard Workerifndef CONFIG_NO_DUMP_STATE 179*03f9172cSAndroid Build Coastguard Worker# define HOSTAPD_DUMP_STATE to include support for dumping internal state 180*03f9172cSAndroid Build Coastguard Worker# through control interface commands (undefine it, if you want to save in 181*03f9172cSAndroid Build Coastguard Worker# binary size) 182*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DHOSTAPD_DUMP_STATE 183*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eapol_auth/eapol_auth_dump.o 184*03f9172cSAndroid Build Coastguard Workerendif 185*03f9172cSAndroid Build Coastguard Worker 186*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_NO_RADIUS 187*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_NO_RADIUS 188*03f9172cSAndroid Build Coastguard WorkerCONFIG_NO_ACCOUNTING=y 189*03f9172cSAndroid Build Coastguard Workerelse 190*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/radius/radius.o 191*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/radius/radius_client.o 192*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/radius/radius_das.o 193*03f9172cSAndroid Build Coastguard Workerendif 194*03f9172cSAndroid Build Coastguard Worker 195*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_NO_ACCOUNTING 196*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_NO_ACCOUNTING 197*03f9172cSAndroid Build Coastguard Workerelse 198*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/accounting.o 199*03f9172cSAndroid Build Coastguard Workerendif 200*03f9172cSAndroid Build Coastguard Worker 201*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_NO_VLAN 202*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_NO_VLAN 203*03f9172cSAndroid Build Coastguard Workerelse 204*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/vlan_init.o 205*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/vlan_ifconfig.o 206*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/vlan.o 207*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_FULL_DYNAMIC_VLAN 208*03f9172cSAndroid Build Coastguard Worker# Define CONFIG_FULL_DYNAMIC_VLAN to have hostapd manipulate bridges 209*03f9172cSAndroid Build Coastguard Worker# and VLAN interfaces for the VLAN feature. 210*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_FULL_DYNAMIC_VLAN 211*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/vlan_full.o 212*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_VLAN_NETLINK 213*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/vlan_util.o 214*03f9172cSAndroid Build Coastguard Workerelse 215*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/vlan_ioctl.o 216*03f9172cSAndroid Build Coastguard Workerendif 217*03f9172cSAndroid Build Coastguard Workerendif 218*03f9172cSAndroid Build Coastguard Workerendif 219*03f9172cSAndroid Build Coastguard Worker 220*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_NO_CTRL_IFACE 221*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_NO_CTRL_IFACE 222*03f9172cSAndroid Build Coastguard Workerelse 223*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_CTRL_IFACE), udp) 224*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_CTRL_IFACE_UDP 225*03f9172cSAndroid Build Coastguard Workerelse 226*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_CTRL_IFACE), udp6) 227*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_CTRL_IFACE_UDP 228*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_CTRL_IFACE_UDP_IPV6 229*03f9172cSAndroid Build Coastguard Workerelse 230*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_CTRL_IFACE), udp-remote) 231*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_CTRL_IFACE_UDP 232*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_CTRL_IFACE_UDP_REMOTE 233*03f9172cSAndroid Build Coastguard Workerelse 234*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_CTRL_IFACE), udp6-remote) 235*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_CTRL_IFACE_UDP 236*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_CTRL_IFACE_UDP_REMOTE 237*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_CTRL_IFACE_UDP_IPV6 238*03f9172cSAndroid Build Coastguard Workerelse 239*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_CTRL_IFACE_UNIX 240*03f9172cSAndroid Build Coastguard Workerendif 241*03f9172cSAndroid Build Coastguard Workerendif 242*03f9172cSAndroid Build Coastguard Workerendif 243*03f9172cSAndroid Build Coastguard Workerendif 244*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/common/ctrl_iface_common.o 245*03f9172cSAndroid Build Coastguard WorkerOBJS += ctrl_iface.o 246*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/ctrl_iface_ap.o 247*03f9172cSAndroid Build Coastguard Workerendif 248*03f9172cSAndroid Build Coastguard Worker 249*03f9172cSAndroid Build Coastguard Workerifndef CONFIG_NO_CTRL_IFACE 250*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_CTRL_IFACE 251*03f9172cSAndroid Build Coastguard Workerendif 252*03f9172cSAndroid Build Coastguard Worker 253*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_RSN_PREAUTH 254*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_RSN_PREAUTH 255*03f9172cSAndroid Build Coastguard WorkerCONFIG_L2_PACKET=y 256*03f9172cSAndroid Build Coastguard Workerendif 257*03f9172cSAndroid Build Coastguard Worker 258*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_HS20 259*03f9172cSAndroid Build Coastguard WorkerCONFIG_PROXYARP=y 260*03f9172cSAndroid Build Coastguard Workerendif 261*03f9172cSAndroid Build Coastguard Worker 262*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_PROXYARP 263*03f9172cSAndroid Build Coastguard WorkerCONFIG_L2_PACKET=y 264*03f9172cSAndroid Build Coastguard Workerendif 265*03f9172cSAndroid Build Coastguard Worker 266*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_SUITEB 267*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_SUITEB 268*03f9172cSAndroid Build Coastguard Workerendif 269*03f9172cSAndroid Build Coastguard Worker 270*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_SUITEB192 271*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_SUITEB192 272*03f9172cSAndroid Build Coastguard WorkerNEED_SHA384=y 273*03f9172cSAndroid Build Coastguard Workerendif 274*03f9172cSAndroid Build Coastguard Worker 275*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_OCV 276*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_OCV 277*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/common/ocv.o 278*03f9172cSAndroid Build Coastguard Workerendif 279*03f9172cSAndroid Build Coastguard Worker 280*03f9172cSAndroid Build Coastguard WorkerNEED_AES_UNWRAP=y 281*03f9172cSAndroid Build Coastguard Worker 282*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_IEEE80211R 283*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_IEEE80211R -DCONFIG_IEEE80211R_AP 284*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/wpa_auth_ft.o 285*03f9172cSAndroid Build Coastguard WorkerNEED_AES_UNWRAP=y 286*03f9172cSAndroid Build Coastguard WorkerNEED_AES_SIV=y 287*03f9172cSAndroid Build Coastguard WorkerNEED_ETH_P_OUI=y 288*03f9172cSAndroid Build Coastguard WorkerNEED_HMAC_SHA256_KDF=y 289*03f9172cSAndroid Build Coastguard Workerendif 290*03f9172cSAndroid Build Coastguard Worker 291*03f9172cSAndroid Build Coastguard Workerifdef NEED_ETH_P_OUI 292*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_ETH_P_OUI 293*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/eth_p_oui.o 294*03f9172cSAndroid Build Coastguard Workerendif 295*03f9172cSAndroid Build Coastguard Worker 296*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_SAE 297*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_SAE 298*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/common/sae.o 299*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_SAE_PK 300*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_SAE_PK 301*03f9172cSAndroid Build Coastguard WorkerNEED_AES_SIV=y 302*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/common/sae_pk.o 303*03f9172cSAndroid Build Coastguard Workerendif 304*03f9172cSAndroid Build Coastguard WorkerNEED_ECC=y 305*03f9172cSAndroid Build Coastguard WorkerNEED_DH_GROUPS=y 306*03f9172cSAndroid Build Coastguard WorkerNEED_HMAC_SHA256_KDF=y 307*03f9172cSAndroid Build Coastguard WorkerNEED_AP_MLME=y 308*03f9172cSAndroid Build Coastguard WorkerNEED_DRAGONFLY=y 309*03f9172cSAndroid Build Coastguard Workerendif 310*03f9172cSAndroid Build Coastguard Worker 311*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_OWE 312*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_OWE 313*03f9172cSAndroid Build Coastguard WorkerNEED_ECC=y 314*03f9172cSAndroid Build Coastguard WorkerNEED_HMAC_SHA256_KDF=y 315*03f9172cSAndroid Build Coastguard WorkerNEED_HMAC_SHA384_KDF=y 316*03f9172cSAndroid Build Coastguard WorkerNEED_HMAC_SHA512_KDF=y 317*03f9172cSAndroid Build Coastguard WorkerNEED_SHA384=y 318*03f9172cSAndroid Build Coastguard WorkerNEED_SHA512=y 319*03f9172cSAndroid Build Coastguard Workerendif 320*03f9172cSAndroid Build Coastguard Worker 321*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_WAPI_INTERFACE 322*03f9172cSAndroid Build Coastguard WorkerL_CFLAGS += -DCONFIG_WAPI_INTERFACE 323*03f9172cSAndroid Build Coastguard Workerendif 324*03f9172cSAndroid Build Coastguard Worker 325*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_AIRTIME_POLICY 326*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_AIRTIME_POLICY 327*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/airtime_policy.o 328*03f9172cSAndroid Build Coastguard Workerendif 329*03f9172cSAndroid Build Coastguard Worker 330*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_FILS 331*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_FILS 332*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/fils_hlp.o 333*03f9172cSAndroid Build Coastguard WorkerNEED_SHA384=y 334*03f9172cSAndroid Build Coastguard WorkerNEED_AES_SIV=y 335*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_FILS_SK_PFS 336*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_FILS_SK_PFS 337*03f9172cSAndroid Build Coastguard WorkerNEED_ECC=y 338*03f9172cSAndroid Build Coastguard Workerendif 339*03f9172cSAndroid Build Coastguard Workerendif 340*03f9172cSAndroid Build Coastguard Worker 341*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_WNM 342*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_WNM -DCONFIG_WNM_AP 343*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/wnm_ap.o 344*03f9172cSAndroid Build Coastguard Workerendif 345*03f9172cSAndroid Build Coastguard Worker 346*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_IEEE80211AC 347*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_IEEE80211AC 348*03f9172cSAndroid Build Coastguard Workerendif 349*03f9172cSAndroid Build Coastguard Worker 350*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_IEEE80211BE 351*03f9172cSAndroid Build Coastguard WorkerCONFIG_IEEE80211AX=y 352*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_IEEE80211BE 353*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/ieee802_11_eht.o 354*03f9172cSAndroid Build Coastguard Workerendif 355*03f9172cSAndroid Build Coastguard Worker 356*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_IEEE80211AX 357*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_IEEE80211AX 358*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/ieee802_11_he.o 359*03f9172cSAndroid Build Coastguard Workerendif 360*03f9172cSAndroid Build Coastguard Worker 361*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_MBO 362*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_MBO 363*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/mbo_ap.o 364*03f9172cSAndroid Build Coastguard Workerendif 365*03f9172cSAndroid Build Coastguard Worker 366*03f9172cSAndroid Build Coastguard Workerinclude ../src/drivers/drivers.mak 367*03f9172cSAndroid Build Coastguard WorkerOBJS += $(DRV_AP_OBJS) 368*03f9172cSAndroid Build Coastguard WorkerCFLAGS += $(DRV_AP_CFLAGS) 369*03f9172cSAndroid Build Coastguard WorkerLDFLAGS += $(DRV_AP_LDFLAGS) 370*03f9172cSAndroid Build Coastguard WorkerLIBS += $(DRV_AP_LIBS) 371*03f9172cSAndroid Build Coastguard Worker 372*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_L2_PACKET 373*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_DNET_PCAP 374*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_L2_FREEBSD 375*03f9172cSAndroid Build Coastguard WorkerLIBS += -lpcap 376*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/l2_packet/l2_packet_freebsd.o 377*03f9172cSAndroid Build Coastguard Workerelse 378*03f9172cSAndroid Build Coastguard WorkerLIBS += -ldnet -lpcap 379*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/l2_packet/l2_packet_pcap.o 380*03f9172cSAndroid Build Coastguard Workerendif 381*03f9172cSAndroid Build Coastguard Workerelse 382*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/l2_packet/l2_packet_linux.o 383*03f9172cSAndroid Build Coastguard Workerendif 384*03f9172cSAndroid Build Coastguard Workerelse 385*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/l2_packet/l2_packet_none.o 386*03f9172cSAndroid Build Coastguard Workerendif 387*03f9172cSAndroid Build Coastguard Worker 388*03f9172cSAndroid Build Coastguard Worker 389*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_ERP 390*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_ERP 391*03f9172cSAndroid Build Coastguard WorkerNEED_HMAC_SHA256_KDF=y 392*03f9172cSAndroid Build Coastguard Workerendif 393*03f9172cSAndroid Build Coastguard Worker 394*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_MD5 395*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_MD5 396*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_md5.o 397*03f9172cSAndroid Build Coastguard WorkerCHAP=y 398*03f9172cSAndroid Build Coastguard Workerendif 399*03f9172cSAndroid Build Coastguard Worker 400*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_TLS 401*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_TLS 402*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_tls.o 403*03f9172cSAndroid Build Coastguard WorkerTLS_FUNCS=y 404*03f9172cSAndroid Build Coastguard Workerendif 405*03f9172cSAndroid Build Coastguard Worker 406*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_UNAUTH_TLS 407*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_UNAUTH_TLS 408*03f9172cSAndroid Build Coastguard Workerifndef CONFIG_EAP_TLS 409*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_tls.o 410*03f9172cSAndroid Build Coastguard WorkerTLS_FUNCS=y 411*03f9172cSAndroid Build Coastguard Workerendif 412*03f9172cSAndroid Build Coastguard Workerendif 413*03f9172cSAndroid Build Coastguard Worker 414*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_PEAP 415*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_PEAP 416*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_peap.o 417*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_common/eap_peap_common.o 418*03f9172cSAndroid Build Coastguard WorkerTLS_FUNCS=y 419*03f9172cSAndroid Build Coastguard WorkerCONFIG_EAP_MSCHAPV2=y 420*03f9172cSAndroid Build Coastguard Workerendif 421*03f9172cSAndroid Build Coastguard Worker 422*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_TTLS 423*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_TTLS 424*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_ttls.o 425*03f9172cSAndroid Build Coastguard WorkerTLS_FUNCS=y 426*03f9172cSAndroid Build Coastguard WorkerCHAP=y 427*03f9172cSAndroid Build Coastguard Workerendif 428*03f9172cSAndroid Build Coastguard Worker 429*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_MSCHAPV2 430*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_MSCHAPV2 431*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_mschapv2.o 432*03f9172cSAndroid Build Coastguard WorkerMS_FUNCS=y 433*03f9172cSAndroid Build Coastguard Workerendif 434*03f9172cSAndroid Build Coastguard Worker 435*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_GTC 436*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_GTC 437*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_gtc.o 438*03f9172cSAndroid Build Coastguard Workerendif 439*03f9172cSAndroid Build Coastguard Worker 440*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_SIM 441*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_SIM 442*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_sim.o 443*03f9172cSAndroid Build Coastguard WorkerCONFIG_EAP_SIM_COMMON=y 444*03f9172cSAndroid Build Coastguard WorkerNEED_AES_CBC=y 445*03f9172cSAndroid Build Coastguard Workerendif 446*03f9172cSAndroid Build Coastguard Worker 447*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_AKA 448*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_AKA 449*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_aka.o 450*03f9172cSAndroid Build Coastguard WorkerCONFIG_EAP_SIM_COMMON=y 451*03f9172cSAndroid Build Coastguard WorkerNEED_AES_CBC=y 452*03f9172cSAndroid Build Coastguard Workerendif 453*03f9172cSAndroid Build Coastguard Worker 454*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_AKA_PRIME 455*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_AKA_PRIME 456*03f9172cSAndroid Build Coastguard Workerendif 457*03f9172cSAndroid Build Coastguard Worker 458*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_SIM_COMMON 459*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_common/eap_sim_common.o 460*03f9172cSAndroid Build Coastguard Worker# Example EAP-SIM/AKA interface for GSM/UMTS authentication. This can be 461*03f9172cSAndroid Build Coastguard Worker# replaced with another file implementing the interface specified in 462*03f9172cSAndroid Build Coastguard Worker# eap_sim_db.h. 463*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_sim_db.o 464*03f9172cSAndroid Build Coastguard WorkerNEED_FIPS186_2_PRF=y 465*03f9172cSAndroid Build Coastguard Workerendif 466*03f9172cSAndroid Build Coastguard Worker 467*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_PAX 468*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_PAX 469*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_pax.o ../src/eap_common/eap_pax_common.o 470*03f9172cSAndroid Build Coastguard Workerendif 471*03f9172cSAndroid Build Coastguard Worker 472*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_PSK 473*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_PSK 474*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_psk.o ../src/eap_common/eap_psk_common.o 475*03f9172cSAndroid Build Coastguard WorkerNEED_AES_ENCBLOCK=y 476*03f9172cSAndroid Build Coastguard WorkerNEED_AES_EAX=y 477*03f9172cSAndroid Build Coastguard Workerendif 478*03f9172cSAndroid Build Coastguard Worker 479*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_SAKE 480*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_SAKE 481*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_sake.o ../src/eap_common/eap_sake_common.o 482*03f9172cSAndroid Build Coastguard Workerendif 483*03f9172cSAndroid Build Coastguard Worker 484*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_GPSK 485*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_GPSK 486*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_gpsk.o ../src/eap_common/eap_gpsk_common.o 487*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_GPSK_SHA256 488*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_GPSK_SHA256 489*03f9172cSAndroid Build Coastguard Workerendif 490*03f9172cSAndroid Build Coastguard Workerendif 491*03f9172cSAndroid Build Coastguard Worker 492*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_PWD 493*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_PWD 494*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_pwd.o ../src/eap_common/eap_pwd_common.o 495*03f9172cSAndroid Build Coastguard WorkerNEED_ECC=y 496*03f9172cSAndroid Build Coastguard WorkerNEED_DRAGONFLY=y 497*03f9172cSAndroid Build Coastguard Workerendif 498*03f9172cSAndroid Build Coastguard Worker 499*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_EKE 500*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_EKE 501*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_eke.o ../src/eap_common/eap_eke_common.o 502*03f9172cSAndroid Build Coastguard WorkerNEED_DH_GROUPS=y 503*03f9172cSAndroid Build Coastguard WorkerNEED_DH_GROUPS_ALL=y 504*03f9172cSAndroid Build Coastguard Workerendif 505*03f9172cSAndroid Build Coastguard Worker 506*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_VENDOR_TEST 507*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_VENDOR_TEST 508*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_vendor_test.o 509*03f9172cSAndroid Build Coastguard Workerendif 510*03f9172cSAndroid Build Coastguard Worker 511*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_FAST 512*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_FAST 513*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_fast.o 514*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_common/eap_fast_common.o 515*03f9172cSAndroid Build Coastguard WorkerTLS_FUNCS=y 516*03f9172cSAndroid Build Coastguard WorkerNEED_T_PRF=y 517*03f9172cSAndroid Build Coastguard WorkerNEED_AES_UNWRAP=y 518*03f9172cSAndroid Build Coastguard Workerendif 519*03f9172cSAndroid Build Coastguard Worker 520*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_TEAP 521*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_TEAP 522*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_teap.o 523*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_common/eap_teap_common.o 524*03f9172cSAndroid Build Coastguard WorkerTLS_FUNCS=y 525*03f9172cSAndroid Build Coastguard WorkerNEED_T_PRF=y 526*03f9172cSAndroid Build Coastguard WorkerNEED_SHA384=y 527*03f9172cSAndroid Build Coastguard WorkerNEED_TLS_PRF_SHA256=y 528*03f9172cSAndroid Build Coastguard WorkerNEED_TLS_PRF_SHA384=y 529*03f9172cSAndroid Build Coastguard WorkerNEED_AES_UNWRAP=y 530*03f9172cSAndroid Build Coastguard Workerendif 531*03f9172cSAndroid Build Coastguard Worker 532*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_WPS 533*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_WPS -DEAP_SERVER_WSC 534*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/utils/uuid.o 535*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/wps_hostapd.o 536*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_wsc.o ../src/eap_common/eap_wsc_common.o 537*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/wps.o 538*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/wps_common.o 539*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/wps_attr_parse.o 540*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/wps_attr_build.o 541*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/wps_attr_process.o 542*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/wps_dev_attr.o 543*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/wps_enrollee.o 544*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/wps_registrar.o 545*03f9172cSAndroid Build Coastguard WorkerNEED_DH_GROUPS=y 546*03f9172cSAndroid Build Coastguard WorkerNEED_BASE64=y 547*03f9172cSAndroid Build Coastguard WorkerNEED_AES_CBC=y 548*03f9172cSAndroid Build Coastguard WorkerNEED_MODEXP=y 549*03f9172cSAndroid Build Coastguard WorkerCONFIG_EAP=y 550*03f9172cSAndroid Build Coastguard Worker 551*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_WPS_NFC 552*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_WPS_NFC 553*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/ndef.o 554*03f9172cSAndroid Build Coastguard WorkerNEED_WPS_OOB=y 555*03f9172cSAndroid Build Coastguard Workerendif 556*03f9172cSAndroid Build Coastguard Worker 557*03f9172cSAndroid Build Coastguard Workerifdef NEED_WPS_OOB 558*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_WPS_OOB 559*03f9172cSAndroid Build Coastguard Workerendif 560*03f9172cSAndroid Build Coastguard Worker 561*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_WPS_UPNP 562*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_WPS_UPNP 563*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/wps_upnp.o 564*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/wps_upnp_ssdp.o 565*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/wps_upnp_web.o 566*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/wps_upnp_event.o 567*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/wps_upnp_ap.o 568*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/upnp_xml.o 569*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/httpread.o 570*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/http_client.o 571*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/http_server.o 572*03f9172cSAndroid Build Coastguard Workerendif 573*03f9172cSAndroid Build Coastguard Worker 574*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_WPS_STRICT 575*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_WPS_STRICT 576*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/wps/wps_validate.o 577*03f9172cSAndroid Build Coastguard Workerendif 578*03f9172cSAndroid Build Coastguard Worker 579*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_WPS_TESTING 580*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_WPS_TESTING 581*03f9172cSAndroid Build Coastguard Workerendif 582*03f9172cSAndroid Build Coastguard Worker 583*03f9172cSAndroid Build Coastguard Workerendif 584*03f9172cSAndroid Build Coastguard Worker 585*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_DPP 586*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_DPP 587*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/common/dpp.o 588*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/common/dpp_auth.o 589*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/common/dpp_backup.o 590*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/common/dpp_crypto.o 591*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/common/dpp_pkex.o 592*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/common/dpp_reconfig.o 593*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/common/dpp_tcp.o 594*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/dpp_hostapd.o 595*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/gas_query_ap.o 596*03f9172cSAndroid Build Coastguard WorkerNEED_AES_SIV=y 597*03f9172cSAndroid Build Coastguard WorkerNEED_HMAC_SHA256_KDF=y 598*03f9172cSAndroid Build Coastguard WorkerNEED_HMAC_SHA384_KDF=y 599*03f9172cSAndroid Build Coastguard WorkerNEED_HMAC_SHA512_KDF=y 600*03f9172cSAndroid Build Coastguard WorkerNEED_SHA384=y 601*03f9172cSAndroid Build Coastguard WorkerNEED_SHA512=y 602*03f9172cSAndroid Build Coastguard WorkerNEED_ECC=y 603*03f9172cSAndroid Build Coastguard WorkerNEED_JSON=y 604*03f9172cSAndroid Build Coastguard WorkerNEED_GAS=y 605*03f9172cSAndroid Build Coastguard WorkerNEED_BASE64=y 606*03f9172cSAndroid Build Coastguard WorkerNEED_ASN1=y 607*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_DPP2 608*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_DPP2 609*03f9172cSAndroid Build Coastguard Workerendif 610*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_DPP3 611*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_DPP3 612*03f9172cSAndroid Build Coastguard Workerendif 613*03f9172cSAndroid Build Coastguard Workerendif 614*03f9172cSAndroid Build Coastguard Worker 615*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_NAN_USD 616*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/common/nan_de.o 617*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/nan_usd_ap.o 618*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_NAN_USD 619*03f9172cSAndroid Build Coastguard Workerendif 620*03f9172cSAndroid Build Coastguard Worker 621*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_PASN 622*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_PASN 623*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_PTKSA_CACHE 624*03f9172cSAndroid Build Coastguard WorkerNEED_HMAC_SHA256_KDF=y 625*03f9172cSAndroid Build Coastguard WorkerNEED_HMAC_SHA384_KDF=y 626*03f9172cSAndroid Build Coastguard WorkerNEED_SHA256=y 627*03f9172cSAndroid Build Coastguard WorkerNEED_SHA384=y 628*03f9172cSAndroid Build Coastguard Workerendif 629*03f9172cSAndroid Build Coastguard Worker 630*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_IKEV2 631*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_IKEV2 632*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_ikev2.o ../src/eap_server/ikev2.o 633*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_common/eap_ikev2_common.o ../src/eap_common/ikev2_common.o 634*03f9172cSAndroid Build Coastguard WorkerNEED_DH_GROUPS=y 635*03f9172cSAndroid Build Coastguard WorkerNEED_DH_GROUPS_ALL=y 636*03f9172cSAndroid Build Coastguard WorkerNEED_MODEXP=y 637*03f9172cSAndroid Build Coastguard WorkerNEED_CIPHER=y 638*03f9172cSAndroid Build Coastguard Workerendif 639*03f9172cSAndroid Build Coastguard Worker 640*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP_TNC 641*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_TNC 642*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_tnc.o 643*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/tncs.o 644*03f9172cSAndroid Build Coastguard WorkerNEED_BASE64=y 645*03f9172cSAndroid Build Coastguard Workerifndef CONFIG_DRIVER_BSD 646*03f9172cSAndroid Build Coastguard WorkerLIBS += -ldl 647*03f9172cSAndroid Build Coastguard Workerendif 648*03f9172cSAndroid Build Coastguard Workerendif 649*03f9172cSAndroid Build Coastguard Worker 650*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_MACSEC 651*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_MACSEC 652*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/wpa_auth_kay.o 653*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/pae/ieee802_1x_cp.o 654*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/pae/ieee802_1x_kay.o 655*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/pae/ieee802_1x_key.o 656*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/pae/ieee802_1x_secy_ops.o 657*03f9172cSAndroid Build Coastguard Workerendif 658*03f9172cSAndroid Build Coastguard Worker 659*03f9172cSAndroid Build Coastguard Worker# Basic EAP functionality is needed for EAPOL 660*03f9172cSAndroid Build Coastguard WorkerOBJS += eap_register.o 661*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server.o 662*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_common/eap_common.o 663*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_methods.o 664*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_identity.o 665*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER_IDENTITY 666*03f9172cSAndroid Build Coastguard Worker 667*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_EAP 668*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_SERVER 669*03f9172cSAndroid Build Coastguard Workerendif 670*03f9172cSAndroid Build Coastguard Worker 671*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_PKCS12 672*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DPKCS12_FUNCS 673*03f9172cSAndroid Build Coastguard Workerendif 674*03f9172cSAndroid Build Coastguard Worker 675*03f9172cSAndroid Build Coastguard Workerifdef NEED_DRAGONFLY 676*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/common/dragonfly.o 677*03f9172cSAndroid Build Coastguard Workerendif 678*03f9172cSAndroid Build Coastguard Worker 679*03f9172cSAndroid Build Coastguard Workerifdef MS_FUNCS 680*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/ms_funcs.o 681*03f9172cSAndroid Build Coastguard WorkerNEED_DES=y 682*03f9172cSAndroid Build Coastguard WorkerNEED_MD4=y 683*03f9172cSAndroid Build Coastguard Workerendif 684*03f9172cSAndroid Build Coastguard Worker 685*03f9172cSAndroid Build Coastguard Workerifdef CHAP 686*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_common/chap.o 687*03f9172cSAndroid Build Coastguard Workerendif 688*03f9172cSAndroid Build Coastguard Worker 689*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_RADIUS_TLS 690*03f9172cSAndroid Build Coastguard WorkerTLS_FUNCS=y 691*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_RADIUS_TLS 692*03f9172cSAndroid Build Coastguard Workerendif 693*03f9172cSAndroid Build Coastguard Worker 694*03f9172cSAndroid Build Coastguard Workerifdef TLS_FUNCS 695*03f9172cSAndroid Build Coastguard WorkerNEED_DES=y 696*03f9172cSAndroid Build Coastguard Worker# Shared TLS functions (needed for EAP_TLS, EAP_PEAP, and EAP_TTLS) 697*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_TLS_FUNCS 698*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/eap_server/eap_server_tls_common.o 699*03f9172cSAndroid Build Coastguard WorkerNEED_TLS_PRF=y 700*03f9172cSAndroid Build Coastguard Workerendif 701*03f9172cSAndroid Build Coastguard Worker 702*03f9172cSAndroid Build Coastguard Workerifndef CONFIG_TLS 703*03f9172cSAndroid Build Coastguard WorkerCONFIG_TLS=openssl 704*03f9172cSAndroid Build Coastguard Workerendif 705*03f9172cSAndroid Build Coastguard Worker 706*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_TLSV11 707*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_TLSV11 708*03f9172cSAndroid Build Coastguard Workerendif 709*03f9172cSAndroid Build Coastguard Worker 710*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_TLSV12 711*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_TLSV12 712*03f9172cSAndroid Build Coastguard Workerendif 713*03f9172cSAndroid Build Coastguard Worker 714*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_TLS), wolfssl) 715*03f9172cSAndroid Build Coastguard WorkerCONFIG_CRYPTO=wolfssl 716*03f9172cSAndroid Build Coastguard Workerifdef TLS_FUNCS 717*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/tls_wolfssl.o 718*03f9172cSAndroid Build Coastguard WorkerLIBS += -lwolfssl -lm 719*03f9172cSAndroid Build Coastguard Workerendif 720*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/crypto_wolfssl.o 721*03f9172cSAndroid Build Coastguard WorkerHOBJS += ../src/crypto/crypto_wolfssl.o 722*03f9172cSAndroid Build Coastguard Workerifdef NEED_FIPS186_2_PRF 723*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/fips_prf_wolfssl.o 724*03f9172cSAndroid Build Coastguard Workerendif 725*03f9172cSAndroid Build Coastguard WorkerNEED_TLS_PRF_SHA256=y 726*03f9172cSAndroid Build Coastguard WorkerLIBS += -lwolfssl -lm 727*03f9172cSAndroid Build Coastguard WorkerLIBS_h += -lwolfssl -lm 728*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_TLS_ADD_DL 729*03f9172cSAndroid Build Coastguard WorkerLIBS += -ldl 730*03f9172cSAndroid Build Coastguard WorkerLIBS_h += -ldl 731*03f9172cSAndroid Build Coastguard Workerendif 732*03f9172cSAndroid Build Coastguard Workerendif 733*03f9172cSAndroid Build Coastguard Worker 734*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_TLS), openssl) 735*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCRYPTO_RSA_OAEP_SHA256 736*03f9172cSAndroid Build Coastguard WorkerCONFIG_CRYPTO=openssl 737*03f9172cSAndroid Build Coastguard Workerifdef TLS_FUNCS 738*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/tls_openssl.o 739*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/tls_openssl_ocsp.o 740*03f9172cSAndroid Build Coastguard WorkerLIBS += -lssl 741*03f9172cSAndroid Build Coastguard Workerendif 742*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/crypto_openssl.o 743*03f9172cSAndroid Build Coastguard WorkerHOBJS += ../src/crypto/crypto_openssl.o 744*03f9172cSAndroid Build Coastguard WorkerSOBJS += ../src/crypto/crypto_openssl.o 745*03f9172cSAndroid Build Coastguard Workerifdef NEED_FIPS186_2_PRF 746*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/fips_prf_openssl.o 747*03f9172cSAndroid Build Coastguard Workerendif 748*03f9172cSAndroid Build Coastguard WorkerNEED_TLS_PRF_SHA256=y 749*03f9172cSAndroid Build Coastguard WorkerLIBS += -lcrypto 750*03f9172cSAndroid Build Coastguard WorkerLIBS_h += -lcrypto 751*03f9172cSAndroid Build Coastguard WorkerLIBS_n += -lcrypto 752*03f9172cSAndroid Build Coastguard WorkerLIBS_s += -lcrypto 753*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_TLS_ADD_DL 754*03f9172cSAndroid Build Coastguard WorkerLIBS += -ldl 755*03f9172cSAndroid Build Coastguard WorkerLIBS_h += -ldl 756*03f9172cSAndroid Build Coastguard WorkerLIBS_s += -ldl 757*03f9172cSAndroid Build Coastguard Workerendif 758*03f9172cSAndroid Build Coastguard Workerifndef CONFIG_TLS_DEFAULT_CIPHERS 759*03f9172cSAndroid Build Coastguard WorkerCONFIG_TLS_DEFAULT_CIPHERS = "DEFAULT:!EXP:!LOW" 760*03f9172cSAndroid Build Coastguard Workerendif 761*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DTLS_DEFAULT_CIPHERS=\"$(CONFIG_TLS_DEFAULT_CIPHERS)\" 762*03f9172cSAndroid Build Coastguard Workerendif 763*03f9172cSAndroid Build Coastguard Worker 764*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_TLS), gnutls) 765*03f9172cSAndroid Build Coastguard Workerifndef CONFIG_CRYPTO 766*03f9172cSAndroid Build Coastguard Worker# default to libgcrypt 767*03f9172cSAndroid Build Coastguard WorkerCONFIG_CRYPTO=gnutls 768*03f9172cSAndroid Build Coastguard Workerendif 769*03f9172cSAndroid Build Coastguard Workerifdef TLS_FUNCS 770*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/tls_gnutls.o 771*03f9172cSAndroid Build Coastguard WorkerLIBS += -lgnutls -lgpg-error 772*03f9172cSAndroid Build Coastguard Workerendif 773*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/crypto_$(CONFIG_CRYPTO).o 774*03f9172cSAndroid Build Coastguard WorkerHOBJS += ../src/crypto/crypto_$(CONFIG_CRYPTO).o 775*03f9172cSAndroid Build Coastguard Workerifdef NEED_FIPS186_2_PRF 776*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/fips_prf_internal.o 777*03f9172cSAndroid Build Coastguard WorkerSHA1OBJS += ../src/crypto/sha1-internal.o 778*03f9172cSAndroid Build Coastguard Workerendif 779*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_CRYPTO), gnutls) 780*03f9172cSAndroid Build Coastguard WorkerLIBS += -lgcrypt 781*03f9172cSAndroid Build Coastguard WorkerLIBS_h += -lgcrypt 782*03f9172cSAndroid Build Coastguard WorkerLIBS_n += -lgcrypt 783*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_RC4=y 784*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_DH_GROUP5=y 785*03f9172cSAndroid Build Coastguard Workerendif 786*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_CRYPTO), nettle) 787*03f9172cSAndroid Build Coastguard WorkerLIBS += -lnettle -lgmp 788*03f9172cSAndroid Build Coastguard WorkerLIBS_p += -lnettle -lgmp 789*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_RC4=y 790*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_DH_GROUP5=y 791*03f9172cSAndroid Build Coastguard Workerendif 792*03f9172cSAndroid Build Coastguard Workerendif 793*03f9172cSAndroid Build Coastguard Worker 794*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_TLS), internal) 795*03f9172cSAndroid Build Coastguard Workerifndef CONFIG_CRYPTO 796*03f9172cSAndroid Build Coastguard WorkerCONFIG_CRYPTO=internal 797*03f9172cSAndroid Build Coastguard Workerendif 798*03f9172cSAndroid Build Coastguard Workerifdef TLS_FUNCS 799*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/crypto_internal-rsa.o 800*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/tls_internal.o 801*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/tlsv1_common.o 802*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/tlsv1_record.o 803*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/tlsv1_cred.o 804*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/tlsv1_server.o 805*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/tlsv1_server_write.o 806*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/tlsv1_server_read.o 807*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/rsa.o 808*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/x509v3.o 809*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/pkcs1.o 810*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/pkcs5.o 811*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/pkcs8.o 812*03f9172cSAndroid Build Coastguard WorkerNEED_ASN1=y 813*03f9172cSAndroid Build Coastguard WorkerNEED_BASE64=y 814*03f9172cSAndroid Build Coastguard WorkerNEED_TLS_PRF=y 815*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_TLSV12 816*03f9172cSAndroid Build Coastguard WorkerNEED_TLS_PRF_SHA256=y 817*03f9172cSAndroid Build Coastguard Workerendif 818*03f9172cSAndroid Build Coastguard WorkerNEED_MODEXP=y 819*03f9172cSAndroid Build Coastguard WorkerNEED_CIPHER=y 820*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_TLS_INTERNAL 821*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_TLS_INTERNAL_SERVER 822*03f9172cSAndroid Build Coastguard Workerendif 823*03f9172cSAndroid Build Coastguard Workerifdef NEED_CIPHER 824*03f9172cSAndroid Build Coastguard WorkerNEED_DES=y 825*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/crypto_internal-cipher.o 826*03f9172cSAndroid Build Coastguard Workerendif 827*03f9172cSAndroid Build Coastguard Workerifdef NEED_MODEXP 828*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/crypto_internal-modexp.o 829*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/bignum.o 830*03f9172cSAndroid Build Coastguard Workerendif 831*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_CRYPTO), libtomcrypt) 832*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/crypto_libtomcrypt.o 833*03f9172cSAndroid Build Coastguard WorkerLIBS += -ltomcrypt -ltfm 834*03f9172cSAndroid Build Coastguard WorkerLIBS_h += -ltomcrypt -ltfm 835*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_SHA256=y 836*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_RC4=y 837*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_DH_GROUP5=y 838*03f9172cSAndroid Build Coastguard Workerendif 839*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_CRYPTO), internal) 840*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/crypto_internal.o 841*03f9172cSAndroid Build Coastguard WorkerNEED_AES_DEC=y 842*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_CRYPTO_INTERNAL 843*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_INTERNAL_LIBTOMMATH 844*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH 845*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_INTERNAL_LIBTOMMATH_FAST 846*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DLTM_FAST 847*03f9172cSAndroid Build Coastguard Workerendif 848*03f9172cSAndroid Build Coastguard Workerelse 849*03f9172cSAndroid Build Coastguard WorkerLIBS += -ltommath 850*03f9172cSAndroid Build Coastguard WorkerLIBS_h += -ltommath 851*03f9172cSAndroid Build Coastguard Workerendif 852*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_AES=y 853*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_DES=y 854*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_SHA1=y 855*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_MD4=y 856*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_MD5=y 857*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_SHA256=y 858*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_SHA384=y 859*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_SHA512=y 860*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_RC4=y 861*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_DH_GROUP5=y 862*03f9172cSAndroid Build Coastguard Workerendif 863*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_CRYPTO), cryptoapi) 864*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/crypto_cryptoapi.o 865*03f9172cSAndroid Build Coastguard WorkerOBJS_p += ../src/crypto/crypto_cryptoapi.o 866*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_CRYPTO_CRYPTOAPI 867*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_SHA256=y 868*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_RC4=y 869*03f9172cSAndroid Build Coastguard Workerendif 870*03f9172cSAndroid Build Coastguard Workerendif 871*03f9172cSAndroid Build Coastguard Worker 872*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_TLS), linux) 873*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/crypto_linux.o 874*03f9172cSAndroid Build Coastguard Workerifdef TLS_FUNCS 875*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/crypto_internal-rsa.o 876*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/tls_internal.o 877*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/tlsv1_common.o 878*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/tlsv1_record.o 879*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/tlsv1_cred.o 880*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/tlsv1_server.o 881*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/tlsv1_server_write.o 882*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/tlsv1_server_read.o 883*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/rsa.o 884*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/x509v3.o 885*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/pkcs1.o 886*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/pkcs5.o 887*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/pkcs8.o 888*03f9172cSAndroid Build Coastguard WorkerNEED_ASN1=y 889*03f9172cSAndroid Build Coastguard WorkerNEED_BASE64=y 890*03f9172cSAndroid Build Coastguard WorkerNEED_TLS_PRF=y 891*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_TLSV12 892*03f9172cSAndroid Build Coastguard WorkerNEED_TLS_PRF_SHA256=y 893*03f9172cSAndroid Build Coastguard Workerendif 894*03f9172cSAndroid Build Coastguard WorkerNEED_MODEXP=y 895*03f9172cSAndroid Build Coastguard WorkerNEED_CIPHER=y 896*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_TLS_INTERNAL 897*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_TLS_INTERNAL_SERVER 898*03f9172cSAndroid Build Coastguard Workerendif 899*03f9172cSAndroid Build Coastguard Workerifdef NEED_MODEXP 900*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/crypto_internal-modexp.o 901*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/bignum.o 902*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH 903*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DLTM_FAST 904*03f9172cSAndroid Build Coastguard Workerendif 905*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_DH_GROUP5=y 906*03f9172cSAndroid Build Coastguard Workerifdef NEED_FIPS186_2_PRF 907*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/fips_prf_internal.o 908*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/sha1-internal.o 909*03f9172cSAndroid Build Coastguard Workerendif 910*03f9172cSAndroid Build Coastguard Workerendif 911*03f9172cSAndroid Build Coastguard Worker 912*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_TLS), none) 913*03f9172cSAndroid Build Coastguard Workerifdef TLS_FUNCS 914*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/tls_none.o 915*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DEAP_TLS_NONE 916*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_AES=y 917*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_SHA1=y 918*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_MD5=y 919*03f9172cSAndroid Build Coastguard Workerendif 920*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/crypto_none.o 921*03f9172cSAndroid Build Coastguard WorkerOBJS_p += ../src/crypto/crypto_none.o 922*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_SHA256=y 923*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_RC4=y 924*03f9172cSAndroid Build Coastguard Workerendif 925*03f9172cSAndroid Build Coastguard Worker 926*03f9172cSAndroid Build Coastguard Workerifndef TLS_FUNCS 927*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/tls_none.o 928*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_TLS), internal) 929*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_AES=y 930*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_SHA1=y 931*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_MD5=y 932*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERNAL_RC4=y 933*03f9172cSAndroid Build Coastguard Workerendif 934*03f9172cSAndroid Build Coastguard Workerendif 935*03f9172cSAndroid Build Coastguard Worker 936*03f9172cSAndroid Build Coastguard WorkerAESOBJS = # none so far 937*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_INTERNAL_AES 938*03f9172cSAndroid Build Coastguard WorkerAESOBJS += ../src/crypto/aes-internal.o ../src/crypto/aes-internal-enc.o 939*03f9172cSAndroid Build Coastguard Workerendif 940*03f9172cSAndroid Build Coastguard Worker 941*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), openssl) 942*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), wolfssl) 943*03f9172cSAndroid Build Coastguard WorkerAESOBJS += ../src/crypto/aes-wrap.o 944*03f9172cSAndroid Build Coastguard Workerendif 945*03f9172cSAndroid Build Coastguard Workerendif 946*03f9172cSAndroid Build Coastguard Workerifdef NEED_AES_EAX 947*03f9172cSAndroid Build Coastguard WorkerAESOBJS += ../src/crypto/aes-eax.o 948*03f9172cSAndroid Build Coastguard WorkerNEED_AES_CTR=y 949*03f9172cSAndroid Build Coastguard Workerendif 950*03f9172cSAndroid Build Coastguard Workerifdef NEED_AES_SIV 951*03f9172cSAndroid Build Coastguard WorkerAESOBJS += ../src/crypto/aes-siv.o 952*03f9172cSAndroid Build Coastguard WorkerNEED_AES_CTR=y 953*03f9172cSAndroid Build Coastguard Workerendif 954*03f9172cSAndroid Build Coastguard Workerifdef NEED_AES_CTR 955*03f9172cSAndroid Build Coastguard WorkerAESOBJS += ../src/crypto/aes-ctr.o 956*03f9172cSAndroid Build Coastguard Workerendif 957*03f9172cSAndroid Build Coastguard Workerifdef NEED_AES_ENCBLOCK 958*03f9172cSAndroid Build Coastguard WorkerAESOBJS += ../src/crypto/aes-encblock.o 959*03f9172cSAndroid Build Coastguard Workerendif 960*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), openssl) 961*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), linux) 962*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), wolfssl) 963*03f9172cSAndroid Build Coastguard WorkerAESOBJS += ../src/crypto/aes-omac1.o 964*03f9172cSAndroid Build Coastguard Workerendif 965*03f9172cSAndroid Build Coastguard Workerendif 966*03f9172cSAndroid Build Coastguard Workerendif 967*03f9172cSAndroid Build Coastguard Workerifdef NEED_AES_UNWRAP 968*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), openssl) 969*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), linux) 970*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), wolfssl) 971*03f9172cSAndroid Build Coastguard WorkerNEED_AES_DEC=y 972*03f9172cSAndroid Build Coastguard WorkerAESOBJS += ../src/crypto/aes-unwrap.o 973*03f9172cSAndroid Build Coastguard Workerendif 974*03f9172cSAndroid Build Coastguard Workerendif 975*03f9172cSAndroid Build Coastguard Workerendif 976*03f9172cSAndroid Build Coastguard Workerendif 977*03f9172cSAndroid Build Coastguard Workerifdef NEED_AES_CBC 978*03f9172cSAndroid Build Coastguard WorkerNEED_AES_DEC=y 979*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), openssl) 980*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), linux) 981*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), wolfssl) 982*03f9172cSAndroid Build Coastguard WorkerAESOBJS += ../src/crypto/aes-cbc.o 983*03f9172cSAndroid Build Coastguard Workerendif 984*03f9172cSAndroid Build Coastguard Workerendif 985*03f9172cSAndroid Build Coastguard Workerendif 986*03f9172cSAndroid Build Coastguard Workerendif 987*03f9172cSAndroid Build Coastguard Workerifdef NEED_AES_DEC 988*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_INTERNAL_AES 989*03f9172cSAndroid Build Coastguard WorkerAESOBJS += ../src/crypto/aes-internal-dec.o 990*03f9172cSAndroid Build Coastguard Workerendif 991*03f9172cSAndroid Build Coastguard Workerendif 992*03f9172cSAndroid Build Coastguard Workerifdef NEED_AES 993*03f9172cSAndroid Build Coastguard WorkerOBJS += $(AESOBJS) 994*03f9172cSAndroid Build Coastguard Workerendif 995*03f9172cSAndroid Build Coastguard Worker 996*03f9172cSAndroid Build Coastguard Workerifdef NEED_SHA1 997*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), openssl) 998*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), linux) 999*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), gnutls) 1000*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), wolfssl) 1001*03f9172cSAndroid Build Coastguard WorkerSHA1OBJS += ../src/crypto/sha1.o 1002*03f9172cSAndroid Build Coastguard Workerendif 1003*03f9172cSAndroid Build Coastguard Workerendif 1004*03f9172cSAndroid Build Coastguard Workerendif 1005*03f9172cSAndroid Build Coastguard Workerendif 1006*03f9172cSAndroid Build Coastguard WorkerSHA1OBJS += ../src/crypto/sha1-prf.o 1007*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_INTERNAL_SHA1 1008*03f9172cSAndroid Build Coastguard WorkerSHA1OBJS += ../src/crypto/sha1-internal.o 1009*03f9172cSAndroid Build Coastguard Workerifdef NEED_FIPS186_2_PRF 1010*03f9172cSAndroid Build Coastguard WorkerSHA1OBJS += ../src/crypto/fips_prf_internal.o 1011*03f9172cSAndroid Build Coastguard Workerendif 1012*03f9172cSAndroid Build Coastguard Workerendif 1013*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), openssl) 1014*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), wolfssl) 1015*03f9172cSAndroid Build Coastguard WorkerSHA1OBJS += ../src/crypto/sha1-pbkdf2.o 1016*03f9172cSAndroid Build Coastguard Workerendif 1017*03f9172cSAndroid Build Coastguard Workerendif 1018*03f9172cSAndroid Build Coastguard Workerifdef NEED_T_PRF 1019*03f9172cSAndroid Build Coastguard WorkerSHA1OBJS += ../src/crypto/sha1-tprf.o 1020*03f9172cSAndroid Build Coastguard Workerendif 1021*03f9172cSAndroid Build Coastguard Workerifdef NEED_TLS_PRF 1022*03f9172cSAndroid Build Coastguard WorkerSHA1OBJS += ../src/crypto/sha1-tlsprf.o 1023*03f9172cSAndroid Build Coastguard Workerendif 1024*03f9172cSAndroid Build Coastguard Workerendif 1025*03f9172cSAndroid Build Coastguard Worker 1026*03f9172cSAndroid Build Coastguard Workerifdef NEED_SHA1 1027*03f9172cSAndroid Build Coastguard WorkerOBJS += $(SHA1OBJS) 1028*03f9172cSAndroid Build Coastguard Workerendif 1029*03f9172cSAndroid Build Coastguard Worker 1030*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), openssl) 1031*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), linux) 1032*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), gnutls) 1033*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), wolfssl) 1034*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/md5.o 1035*03f9172cSAndroid Build Coastguard Workerendif 1036*03f9172cSAndroid Build Coastguard Workerendif 1037*03f9172cSAndroid Build Coastguard Workerendif 1038*03f9172cSAndroid Build Coastguard Workerendif 1039*03f9172cSAndroid Build Coastguard Worker 1040*03f9172cSAndroid Build Coastguard Workerifdef NEED_MD5 1041*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_INTERNAL_MD5 1042*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/md5-internal.o 1043*03f9172cSAndroid Build Coastguard WorkerHOBJS += ../src/crypto/md5-internal.o 1044*03f9172cSAndroid Build Coastguard Workerendif 1045*03f9172cSAndroid Build Coastguard Workerendif 1046*03f9172cSAndroid Build Coastguard Worker 1047*03f9172cSAndroid Build Coastguard Workerifdef NEED_MD4 1048*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_INTERNAL_MD4 1049*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/md4-internal.o 1050*03f9172cSAndroid Build Coastguard Workerendif 1051*03f9172cSAndroid Build Coastguard Workerendif 1052*03f9172cSAndroid Build Coastguard Worker 1053*03f9172cSAndroid Build Coastguard Workerifdef NEED_DES 1054*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_DES 1055*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_INTERNAL_DES 1056*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/des-internal.o 1057*03f9172cSAndroid Build Coastguard Workerendif 1058*03f9172cSAndroid Build Coastguard Workerendif 1059*03f9172cSAndroid Build Coastguard Worker 1060*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_NO_RC4 1061*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_NO_RC4 1062*03f9172cSAndroid Build Coastguard Workerendif 1063*03f9172cSAndroid Build Coastguard Worker 1064*03f9172cSAndroid Build Coastguard Workerifdef NEED_RC4 1065*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_INTERNAL_RC4 1066*03f9172cSAndroid Build Coastguard Workerifndef CONFIG_NO_RC4 1067*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/rc4.o 1068*03f9172cSAndroid Build Coastguard Workerendif 1069*03f9172cSAndroid Build Coastguard Workerendif 1070*03f9172cSAndroid Build Coastguard Workerendif 1071*03f9172cSAndroid Build Coastguard Worker 1072*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_SHA256 1073*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), openssl) 1074*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), linux) 1075*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), gnutls) 1076*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), wolfssl) 1077*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/sha256.o 1078*03f9172cSAndroid Build Coastguard Workerendif 1079*03f9172cSAndroid Build Coastguard Workerendif 1080*03f9172cSAndroid Build Coastguard Workerendif 1081*03f9172cSAndroid Build Coastguard Workerendif 1082*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/sha256-prf.o 1083*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_INTERNAL_SHA256 1084*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/sha256-internal.o 1085*03f9172cSAndroid Build Coastguard Workerendif 1086*03f9172cSAndroid Build Coastguard Workerifdef NEED_TLS_PRF_SHA256 1087*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/sha256-tlsprf.o 1088*03f9172cSAndroid Build Coastguard Workerendif 1089*03f9172cSAndroid Build Coastguard Workerifdef NEED_TLS_PRF_SHA384 1090*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/sha384-tlsprf.o 1091*03f9172cSAndroid Build Coastguard Workerendif 1092*03f9172cSAndroid Build Coastguard Workerifdef NEED_HMAC_SHA256_KDF 1093*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/sha256-kdf.o 1094*03f9172cSAndroid Build Coastguard Workerendif 1095*03f9172cSAndroid Build Coastguard Workerifdef NEED_HMAC_SHA384_KDF 1096*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/sha384-kdf.o 1097*03f9172cSAndroid Build Coastguard Workerendif 1098*03f9172cSAndroid Build Coastguard Workerifdef NEED_HMAC_SHA512_KDF 1099*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/sha512-kdf.o 1100*03f9172cSAndroid Build Coastguard Workerendif 1101*03f9172cSAndroid Build Coastguard Workerifdef NEED_SHA384 1102*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_SHA384 1103*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), openssl) 1104*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), linux) 1105*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), gnutls) 1106*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), wolfssl) 1107*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/sha384.o 1108*03f9172cSAndroid Build Coastguard Workerendif 1109*03f9172cSAndroid Build Coastguard Workerendif 1110*03f9172cSAndroid Build Coastguard Workerendif 1111*03f9172cSAndroid Build Coastguard Workerendif 1112*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/sha384-prf.o 1113*03f9172cSAndroid Build Coastguard Workerendif 1114*03f9172cSAndroid Build Coastguard Workerifdef NEED_SHA512 1115*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_SHA512 1116*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), openssl) 1117*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), linux) 1118*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), gnutls) 1119*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), wolfssl) 1120*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/sha512.o 1121*03f9172cSAndroid Build Coastguard Workerendif 1122*03f9172cSAndroid Build Coastguard Workerendif 1123*03f9172cSAndroid Build Coastguard Workerendif 1124*03f9172cSAndroid Build Coastguard Workerendif 1125*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/sha512-prf.o 1126*03f9172cSAndroid Build Coastguard Workerendif 1127*03f9172cSAndroid Build Coastguard Worker 1128*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_INTERNAL_SHA384 1129*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_INTERNAL_SHA384 1130*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/sha384-internal.o 1131*03f9172cSAndroid Build Coastguard Workerendif 1132*03f9172cSAndroid Build Coastguard Worker 1133*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_INTERNAL_SHA512 1134*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_INTERNAL_SHA512 1135*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/sha512-internal.o 1136*03f9172cSAndroid Build Coastguard Workerendif 1137*03f9172cSAndroid Build Coastguard Worker 1138*03f9172cSAndroid Build Coastguard Workerifdef NEED_ASN1 1139*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/tls/asn1.o 1140*03f9172cSAndroid Build Coastguard Workerendif 1141*03f9172cSAndroid Build Coastguard Worker 1142*03f9172cSAndroid Build Coastguard Workerifdef NEED_DH_GROUPS 1143*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/dh_groups.o 1144*03f9172cSAndroid Build Coastguard Workerendif 1145*03f9172cSAndroid Build Coastguard Workerifdef NEED_DH_GROUPS_ALL 1146*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DALL_DH_GROUPS 1147*03f9172cSAndroid Build Coastguard Workerendif 1148*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_INTERNAL_DH_GROUP5 1149*03f9172cSAndroid Build Coastguard Workerifdef NEED_DH_GROUPS 1150*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/dh_group5.o 1151*03f9172cSAndroid Build Coastguard Workerendif 1152*03f9172cSAndroid Build Coastguard Workerendif 1153*03f9172cSAndroid Build Coastguard Worker 1154*03f9172cSAndroid Build Coastguard Workerifdef NEED_ECC 1155*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_ECC 1156*03f9172cSAndroid Build Coastguard Workerendif 1157*03f9172cSAndroid Build Coastguard Worker 1158*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_NO_RANDOM_POOL 1159*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_NO_RANDOM_POOL 1160*03f9172cSAndroid Build Coastguard Workerelse 1161*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_GETRANDOM 1162*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_GETRANDOM 1163*03f9172cSAndroid Build Coastguard Workerendif 1164*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/crypto/random.o 1165*03f9172cSAndroid Build Coastguard WorkerHOBJS += ../src/crypto/random.o 1166*03f9172cSAndroid Build Coastguard WorkerHOBJS += ../src/utils/eloop.o 1167*03f9172cSAndroid Build Coastguard WorkerHOBJS += $(SHA1OBJS) 1168*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), openssl) 1169*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), linux) 1170*03f9172cSAndroid Build Coastguard Workerifneq ($(CONFIG_TLS), wolfssl) 1171*03f9172cSAndroid Build Coastguard WorkerHOBJS += ../src/crypto/md5.o 1172*03f9172cSAndroid Build Coastguard Workerendif 1173*03f9172cSAndroid Build Coastguard Workerendif 1174*03f9172cSAndroid Build Coastguard Workerendif 1175*03f9172cSAndroid Build Coastguard Workerendif 1176*03f9172cSAndroid Build Coastguard Worker 1177*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_RADIUS_SERVER 1178*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DRADIUS_SERVER 1179*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/radius/radius_server.o 1180*03f9172cSAndroid Build Coastguard Workerendif 1181*03f9172cSAndroid Build Coastguard Worker 1182*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_IPV6 1183*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_IPV6 1184*03f9172cSAndroid Build Coastguard Workerendif 1185*03f9172cSAndroid Build Coastguard Worker 1186*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_DRIVER_RADIUS_ACL 1187*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_DRIVER_RADIUS_ACL 1188*03f9172cSAndroid Build Coastguard Workerendif 1189*03f9172cSAndroid Build Coastguard Worker 1190*03f9172cSAndroid Build Coastguard Workerifdef NEED_BASE64 1191*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/utils/base64.o 1192*03f9172cSAndroid Build Coastguard Workerendif 1193*03f9172cSAndroid Build Coastguard Worker 1194*03f9172cSAndroid Build Coastguard Workerifdef NEED_JSON 1195*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/utils/json.o 1196*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_JSON 1197*03f9172cSAndroid Build Coastguard Workerendif 1198*03f9172cSAndroid Build Coastguard Worker 1199*03f9172cSAndroid Build Coastguard Workerifdef NEED_AP_MLME 1200*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/wmm.o 1201*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/ap_list.o 1202*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/comeback_token.o 1203*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/pasn/pasn_responder.o 1204*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/pasn/pasn_common.o 1205*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/ieee802_11.o 1206*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/hw_features.o 1207*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/dfs.o 1208*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DNEED_AP_MLME 1209*03f9172cSAndroid Build Coastguard Workerendif 1210*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/ieee802_11_ht.o 1211*03f9172cSAndroid Build Coastguard Worker 1212*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_IEEE80211AC 1213*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/ieee802_11_vht.o 1214*03f9172cSAndroid Build Coastguard Workerendif 1215*03f9172cSAndroid Build Coastguard Worker 1216*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_P2P_MANAGER 1217*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_P2P_MANAGER 1218*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/p2p_hostapd.o 1219*03f9172cSAndroid Build Coastguard Workerendif 1220*03f9172cSAndroid Build Coastguard Worker 1221*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_HS20 1222*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_HS20 1223*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/hs20.o 1224*03f9172cSAndroid Build Coastguard WorkerCONFIG_INTERWORKING=y 1225*03f9172cSAndroid Build Coastguard Workerendif 1226*03f9172cSAndroid Build Coastguard Worker 1227*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_INTERWORKING 1228*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_INTERWORKING 1229*03f9172cSAndroid Build Coastguard WorkerNEED_GAS=y 1230*03f9172cSAndroid Build Coastguard Workerendif 1231*03f9172cSAndroid Build Coastguard Worker 1232*03f9172cSAndroid Build Coastguard Workerifdef NEED_GAS 1233*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/common/gas.o 1234*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/gas_serv.o 1235*03f9172cSAndroid Build Coastguard Workerendif 1236*03f9172cSAndroid Build Coastguard Worker 1237*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_PROXYARP 1238*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_PROXYARP 1239*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/x_snoop.o 1240*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/dhcp_snoop.o 1241*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_IPV6 1242*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/ndisc_snoop.o 1243*03f9172cSAndroid Build Coastguard Workerendif 1244*03f9172cSAndroid Build Coastguard Workerendif 1245*03f9172cSAndroid Build Coastguard Worker 1246*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/drivers/driver_common.o 1247*03f9172cSAndroid Build Coastguard Worker 1248*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_WPA_CLI_EDIT 1249*03f9172cSAndroid Build Coastguard WorkerOBJS_c += ../src/utils/edit.o 1250*03f9172cSAndroid Build Coastguard Workerelse 1251*03f9172cSAndroid Build Coastguard WorkerOBJS_c += ../src/utils/edit_simple.o 1252*03f9172cSAndroid Build Coastguard Workerendif 1253*03f9172cSAndroid Build Coastguard Worker 1254*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_ACS 1255*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_ACS 1256*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/ap/acs.o 1257*03f9172cSAndroid Build Coastguard WorkerLIBS += -lm 1258*03f9172cSAndroid Build Coastguard Workerendif 1259*03f9172cSAndroid Build Coastguard Worker 1260*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_NO_STDOUT_DEBUG 1261*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_NO_STDOUT_DEBUG 1262*03f9172cSAndroid Build Coastguard Workerendif 1263*03f9172cSAndroid Build Coastguard Worker 1264*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_DEBUG_SYSLOG 1265*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_DEBUG_SYSLOG 1266*03f9172cSAndroid Build Coastguard Workerendif 1267*03f9172cSAndroid Build Coastguard Worker 1268*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_DEBUG_LINUX_TRACING 1269*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_DEBUG_LINUX_TRACING 1270*03f9172cSAndroid Build Coastguard Workerendif 1271*03f9172cSAndroid Build Coastguard Worker 1272*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_DEBUG_FILE 1273*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_DEBUG_FILE 1274*03f9172cSAndroid Build Coastguard Workerendif 1275*03f9172cSAndroid Build Coastguard Worker 1276*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_SQLITE 1277*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_SQLITE 1278*03f9172cSAndroid Build Coastguard WorkerLIBS += -lsqlite3 1279*03f9172cSAndroid Build Coastguard WorkerLIBS_h += -lsqlite3 1280*03f9172cSAndroid Build Coastguard Workerendif 1281*03f9172cSAndroid Build Coastguard Worker 1282*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_FST 1283*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_FST 1284*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/fst/fst.o 1285*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/fst/fst_group.o 1286*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/fst/fst_iface.o 1287*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/fst/fst_session.o 1288*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/fst/fst_ctrl_aux.o 1289*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_FST_TEST 1290*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_FST_TEST 1291*03f9172cSAndroid Build Coastguard Workerendif 1292*03f9172cSAndroid Build Coastguard Workerifndef CONFIG_NO_CTRL_IFACE 1293*03f9172cSAndroid Build Coastguard WorkerOBJS += ../src/fst/fst_ctrl_iface.o 1294*03f9172cSAndroid Build Coastguard Workerendif 1295*03f9172cSAndroid Build Coastguard Workerendif 1296*03f9172cSAndroid Build Coastguard Worker 1297*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_WEP 1298*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_WEP 1299*03f9172cSAndroid Build Coastguard Workerendif 1300*03f9172cSAndroid Build Coastguard Worker 1301*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_NO_TKIP 1302*03f9172cSAndroid Build Coastguard WorkerCFLAGS += -DCONFIG_NO_TKIP 1303*03f9172cSAndroid Build Coastguard Workerendif 1304*03f9172cSAndroid Build Coastguard Worker 1305*03f9172cSAndroid Build Coastguard Worker$(DESTDIR)$(BINDIR)/%: % 1306*03f9172cSAndroid Build Coastguard Worker install -D $(<) $(@) 1307*03f9172cSAndroid Build Coastguard Worker 1308*03f9172cSAndroid Build Coastguard Workerinstall: $(addprefix $(DESTDIR)$(BINDIR)/,$(ALL)) 1309*03f9172cSAndroid Build Coastguard Worker 1310*03f9172cSAndroid Build Coastguard Worker_OBJS_VAR := OBJS 1311*03f9172cSAndroid Build Coastguard Workerinclude ../src/objs.mk 1312*03f9172cSAndroid Build Coastguard Worker 1313*03f9172cSAndroid Build Coastguard Workerhostapd: $(OBJS) 1314*03f9172cSAndroid Build Coastguard Worker $(Q)$(CC) $(LDFLAGS) -o hostapd $(OBJS) $(LIBS) 1315*03f9172cSAndroid Build Coastguard Worker @$(E) " LD " $@ 1316*03f9172cSAndroid Build Coastguard Worker 1317*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_WPA_TRACE 1318*03f9172cSAndroid Build Coastguard WorkerOBJS_c += ../src/utils/trace.o 1319*03f9172cSAndroid Build Coastguard Workerendif 1320*03f9172cSAndroid Build Coastguard Worker 1321*03f9172cSAndroid Build Coastguard Worker_OBJS_VAR := OBJS_c 1322*03f9172cSAndroid Build Coastguard Workerinclude ../src/objs.mk 1323*03f9172cSAndroid Build Coastguard Worker 1324*03f9172cSAndroid Build Coastguard Workerhostapd_cli: $(OBJS_c) 1325*03f9172cSAndroid Build Coastguard Worker $(Q)$(CC) $(LDFLAGS) -o hostapd_cli $(OBJS_c) $(LIBS_c) 1326*03f9172cSAndroid Build Coastguard Worker @$(E) " LD " $@ 1327*03f9172cSAndroid Build Coastguard Worker 1328*03f9172cSAndroid Build Coastguard WorkerNOBJS = nt_password_hash.o ../src/crypto/ms_funcs.o $(SHA1OBJS) 1329*03f9172cSAndroid Build Coastguard WorkerNOBJS += ../src/utils/common.o 1330*03f9172cSAndroid Build Coastguard Workerifdef NEED_RC4 1331*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_INTERNAL_RC4 1332*03f9172cSAndroid Build Coastguard Workerifndef CONFIG_NO_RC4 1333*03f9172cSAndroid Build Coastguard WorkerNOBJS += ../src/crypto/rc4.o 1334*03f9172cSAndroid Build Coastguard Workerendif 1335*03f9172cSAndroid Build Coastguard Workerendif 1336*03f9172cSAndroid Build Coastguard Workerendif 1337*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_INTERNAL_MD5 1338*03f9172cSAndroid Build Coastguard WorkerNOBJS += ../src/crypto/md5-internal.o 1339*03f9172cSAndroid Build Coastguard Workerendif 1340*03f9172cSAndroid Build Coastguard WorkerNOBJS += ../src/crypto/crypto_$(CONFIG_CRYPTO).o 1341*03f9172cSAndroid Build Coastguard WorkerNOBJS += ../src/utils/os_$(CONFIG_OS).o 1342*03f9172cSAndroid Build Coastguard WorkerNOBJS += ../src/utils/wpa_debug.o 1343*03f9172cSAndroid Build Coastguard WorkerNOBJS += ../src/utils/wpabuf.o 1344*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_WPA_TRACE 1345*03f9172cSAndroid Build Coastguard WorkerNOBJS += ../src/utils/trace.o 1346*03f9172cSAndroid Build Coastguard Workerendif 1347*03f9172cSAndroid Build Coastguard Worker 1348*03f9172cSAndroid Build Coastguard WorkerHOBJS += hlr_auc_gw.o ../src/utils/common.o ../src/utils/wpa_debug.o ../src/utils/os_$(CONFIG_OS).o ../src/utils/wpabuf.o ../src/crypto/milenage.o 1349*03f9172cSAndroid Build Coastguard WorkerHOBJS += ../src/crypto/aes-encblock.o 1350*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_INTERNAL_AES 1351*03f9172cSAndroid Build Coastguard WorkerHOBJS += ../src/crypto/aes-internal.o 1352*03f9172cSAndroid Build Coastguard WorkerHOBJS += ../src/crypto/aes-internal-enc.o 1353*03f9172cSAndroid Build Coastguard Workerendif 1354*03f9172cSAndroid Build Coastguard Workerifeq ($(CONFIG_TLS), linux) 1355*03f9172cSAndroid Build Coastguard WorkerHOBJS += ../src/crypto/crypto_linux.o 1356*03f9172cSAndroid Build Coastguard Workerendif 1357*03f9172cSAndroid Build Coastguard Worker 1358*03f9172cSAndroid Build Coastguard WorkerSOBJS += sae_pk_gen.o 1359*03f9172cSAndroid Build Coastguard WorkerSOBJS += ../src/utils/common.o 1360*03f9172cSAndroid Build Coastguard WorkerSOBJS += ../src/utils/os_$(CONFIG_OS).o 1361*03f9172cSAndroid Build Coastguard WorkerSOBJS += ../src/utils/base64.o 1362*03f9172cSAndroid Build Coastguard WorkerSOBJS += ../src/utils/wpa_debug.o 1363*03f9172cSAndroid Build Coastguard WorkerSOBJS += ../src/utils/wpabuf.o 1364*03f9172cSAndroid Build Coastguard Workerifdef CONFIG_WPA_TRACE 1365*03f9172cSAndroid Build Coastguard WorkerSOBJS += ../src/utils/trace.o 1366*03f9172cSAndroid Build Coastguard Workerendif 1367*03f9172cSAndroid Build Coastguard WorkerSOBJS += ../src/common/ieee802_11_common.o 1368*03f9172cSAndroid Build Coastguard WorkerSOBJS += ../src/common/sae.o 1369*03f9172cSAndroid Build Coastguard WorkerSOBJS += ../src/common/sae_pk.o 1370*03f9172cSAndroid Build Coastguard WorkerSOBJS += ../src/common/dragonfly.o 1371*03f9172cSAndroid Build Coastguard WorkerSOBJS += $(AESOBJS) 1372*03f9172cSAndroid Build Coastguard WorkerSOBJS += ../src/crypto/sha256-prf.o 1373*03f9172cSAndroid Build Coastguard WorkerSOBJS += ../src/crypto/sha384-prf.o 1374*03f9172cSAndroid Build Coastguard WorkerSOBJS += ../src/crypto/sha512-prf.o 1375*03f9172cSAndroid Build Coastguard WorkerSOBJS += ../src/crypto/dh_groups.o 1376*03f9172cSAndroid Build Coastguard WorkerSOBJS += ../src/crypto/sha256-kdf.o 1377*03f9172cSAndroid Build Coastguard WorkerSOBJS += ../src/crypto/sha384-kdf.o 1378*03f9172cSAndroid Build Coastguard WorkerSOBJS += ../src/crypto/sha512-kdf.o 1379*03f9172cSAndroid Build Coastguard Worker 1380*03f9172cSAndroid Build Coastguard Worker_OBJS_VAR := NOBJS 1381*03f9172cSAndroid Build Coastguard Workerinclude ../src/objs.mk 1382*03f9172cSAndroid Build Coastguard Worker_OBJS_VAR := HOBJS 1383*03f9172cSAndroid Build Coastguard Workerinclude ../src/objs.mk 1384*03f9172cSAndroid Build Coastguard Worker_OBJS_VAR := SOBJS 1385*03f9172cSAndroid Build Coastguard Workerinclude ../src/objs.mk 1386*03f9172cSAndroid Build Coastguard Worker 1387*03f9172cSAndroid Build Coastguard Workernt_password_hash: $(NOBJS) 1388*03f9172cSAndroid Build Coastguard Worker $(Q)$(CC) $(LDFLAGS) -o nt_password_hash $(NOBJS) $(LIBS_n) 1389*03f9172cSAndroid Build Coastguard Worker @$(E) " LD " $@ 1390*03f9172cSAndroid Build Coastguard Worker 1391*03f9172cSAndroid Build Coastguard Workerhlr_auc_gw: $(HOBJS) 1392*03f9172cSAndroid Build Coastguard Worker $(Q)$(CC) $(LDFLAGS) -o hlr_auc_gw $(HOBJS) $(LIBS_h) 1393*03f9172cSAndroid Build Coastguard Worker @$(E) " LD " $@ 1394*03f9172cSAndroid Build Coastguard Worker 1395*03f9172cSAndroid Build Coastguard Workersae_pk_gen: $(SOBJS) 1396*03f9172cSAndroid Build Coastguard Worker $(Q)$(CC) $(LDFLAGS) -o sae_pk_gen $(SOBJS) $(LIBS_s) 1397*03f9172cSAndroid Build Coastguard Worker @$(E) " LD " $@ 1398*03f9172cSAndroid Build Coastguard Worker 1399*03f9172cSAndroid Build Coastguard Worker.PHONY: lcov-html 1400*03f9172cSAndroid Build Coastguard Workerlcov-html: 1401*03f9172cSAndroid Build Coastguard Worker lcov -c -d $(BUILDDIR) > lcov.info 1402*03f9172cSAndroid Build Coastguard Worker genhtml lcov.info --output-directory lcov-html 1403*03f9172cSAndroid Build Coastguard Worker 1404*03f9172cSAndroid Build Coastguard Workerclean: common-clean 1405*03f9172cSAndroid Build Coastguard Worker rm -f core *~ nt_password_hash hlr_auc_gw 1406*03f9172cSAndroid Build Coastguard Worker rm -f sae_pk_gen 1407*03f9172cSAndroid Build Coastguard Worker rm -f lcov.info 1408*03f9172cSAndroid Build Coastguard Worker rm -rf lcov-html 1409