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