Home | History | Annotate | Line # | Download | only in wpa_supplicant
      1  1.14  riastrad # $NetBSD: Makefile,v 1.14 2025/10/19 00:59:59 riastradh Exp $
      2   1.1  christos 
      3   1.1  christos .include "${.CURDIR}/../Makefile.inc"
      4   1.1  christos 
      5   1.1  christos PROG=	wpa_supplicant
      6   1.1  christos SRCS= \
      7   1.1  christos bss.c \
      8  1.12  christos bssid_ignore.c \
      9   1.1  christos config.c \
     10   1.1  christos config_file.c \
     11   1.1  christos ctrl_iface.c \
     12  1.12  christos ctrl_iface_unix.c \
     13  1.12  christos eap_register.c \
     14  1.12  christos events.c \
     15  1.12  christos main.c \
     16  1.12  christos notify.c \
     17  1.12  christos op_classes.c \
     18  1.12  christos rrm.c \
     19  1.12  christos robust_av.c \
     20  1.12  christos scan.c \
     21  1.12  christos wmm_ac.c \
     22  1.12  christos wpa_supplicant.c \
     23  1.12  christos wpas_glue.c
     24  1.12  christos 
     25  1.12  christos # common
     26  1.12  christos SRCS+= \
     27   1.9  christos ctrl_iface_common.c \
     28  1.12  christos hw_features_common.c \
     29  1.12  christos ieee802_11_common.c \
     30  1.12  christos ptksa_cache.c \
     31  1.12  christos wpa_common.c \
     32  1.12  christos 
     33  1.12  christos # crypto
     34  1.12  christos SRCS+= \
     35  1.12  christos random.c \
     36  1.12  christos sha1-prf.c \
     37  1.12  christos sha256.c \
     38  1.12  christos sha256-prf.c \
     39  1.12  christos 
     40  1.12  christos # drivers
     41  1.12  christos SRCS+= \
     42  1.12  christos driver_bsd.c \
     43   1.2  christos driver_common.c \
     44  1.10  christos driver_wired_common.c \
     45   1.1  christos driver_wired.c \
     46   1.1  christos drivers.c \
     47  1.12  christos 
     48  1.12  christos # eap_common
     49  1.12  christos SRCS+= \
     50   1.1  christos eap_common.c \
     51  1.12  christos 
     52  1.12  christos # eap_peer
     53  1.12  christos SRCS+= \
     54   1.1  christos eap_methods.c \
     55  1.12  christos 
     56  1.12  christos # eapol_supp
     57  1.12  christos SRCS+= \
     58   1.1  christos eapol_supp_sm.c \
     59  1.12  christos 
     60  1.12  christos # l2_packet
     61  1.12  christos SRCS+= \
     62   1.1  christos l2_packet_freebsd.c \
     63  1.12  christos 
     64  1.12  christos # rsn_supp
     65  1.12  christos SRCS+= \
     66   1.1  christos pmksa_cache.c \
     67   1.1  christos preauth.c \
     68   1.1  christos wpa.c \
     69  1.12  christos wpa_ie.c \
     70  1.12  christos 
     71  1.12  christos 
     72  1.12  christos # util
     73  1.12  christos SRCS+= \
     74  1.12  christos base64.c \
     75  1.12  christos bitfield.c \
     76  1.12  christos common.c \
     77  1.12  christos config_line.c \
     78  1.12  christos eloop.c \
     79  1.12  christos os_unix.c \
     80   1.1  christos wpa_debug.c \
     81   1.1  christos wpabuf.c \
     82   1.1  christos 
     83  1.12  christos MAN=	wpa_supplicant.8 wpa_supplicant.conf.5
     84  1.12  christos 
     85  1.12  christos CLEANFILES+= config_line.c
     86   1.9  christos 
     87  1.12  christos config_line.c: ${WPA_DISTDIR}/src/utils/config.c
     88  1.12  christos 	${MKTARGET_CREATE}
     89  1.12  christos 	cp ${.ALLSRC} ${.TARGET}
     90   1.1  christos 
     91   1.1  christos .PATH.c:  \
     92   1.1  christos 	${WPA_SUPPLICANT_DISTDIR} \
     93   1.1  christos 	${WPA_DISTDIR}/src/drivers \
     94   1.1  christos 	${WPA_DISTDIR}/src/eap_peer \
     95  1.10  christos 	${WPA_DISTDIR}/src/rsn_supp \
     96  1.12  christos 	${COMMON_PATH} \
     97   1.1  christos 
     98   1.1  christos CPPFLAGS+= \
     99   1.1  christos 	-I${WPA_SUPPLICANT_DISTDIR} \
    100   1.1  christos 	-I${WPA_DISTDIR}/src/drivers \
    101   1.1  christos 	-I${WPA_DISTDIR}/src/rsn_supp
    102   1.1  christos 
    103   1.1  christos CPPFLAGS+=-DCONFIG_BACKEND_FILE
    104   1.1  christos CPPFLAGS+=-DCONFIG_PEERKEY
    105   1.7       roy CPPFLAGS+=-DCONFIG_MATCH_IFACE
    106   1.7       roy CPPFLAGS+=-DCONFIG_DRIVER_BSD
    107   1.1  christos CPPFLAGS+=-DCONFIG_DRIVER_WIRED
    108   1.1  christos CPPFLAGS+=-DCONFIG_CTRL_IFACE
    109   1.1  christos CPPFLAGS+=-DCONFIG_CTRL_IFACE_UNIX
    110   1.1  christos CPPFLAGS+=-DCONFIG_SMARTCARD
    111   1.1  christos CPPFLAGS+=-DCONFIG_DEBUG_FILE
    112   1.7       roy CPPFLAGS+=-DCONFIG_DEBUG_SYSLOG
    113   1.1  christos 
    114   1.9  christos #CPPFLAGS+=-DCONFIG_FST
    115   1.9  christos #SRCS+=fst.c \
    116   1.9  christos #fst_ctrl_aux.c \
    117   1.9  christos #fst_ctrl_iface.c \
    118   1.9  christos #fst_group.c \
    119   1.9  christos #fst_iface.c \
    120   1.9  christos #fst_session.c
    121   1.9  christos 
    122   1.9  christos #CPPFLAGS+=-DCONFIG_ACS
    123   1.9  christos #CPPFLAGS+=-DCONFIG_MBO
    124   1.9  christos #CPPFLAGS+=-DCONFIG_WNM 
    125   1.9  christos #CPPFLAGS+=-DCONFIG_AP
    126   1.9  christos #SRCS+=ap.c \
    127   1.9  christos #gas.c \
    128   1.9  christos #mbo.c 
    129   1.9  christos 
    130   1.1  christos DPADD+=	${LIBPCAP}
    131   1.1  christos LDADD+=	-lpcap
    132   1.1  christos 
    133   1.1  christos .if !defined(NO_ENABLE_WPA_SUPPLICANT_EAPOL)
    134   1.1  christos SRCS+=	eap.c
    135   1.1  christos CPPFLAGS+= -DIEEE8021X_EAPOL -DPKCS12_FUNCS
    136   1.1  christos 
    137   1.1  christos .if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH)
    138   1.1  christos CPPFLAGS+=-DEAP_TLS
    139   1.1  christos CPPFLAGS+=-DEAP_PEAP
    140   1.1  christos CPPFLAGS+=-DEAP_TTLS
    141   1.1  christos CPPFLAGS+=-DEAP_MD5
    142   1.1  christos CPPFLAGS+=-DEAP_MSCHAPv2
    143   1.1  christos CPPFLAGS+=-DEAP_GTC
    144   1.1  christos CPPFLAGS+=-DEAP_OTP
    145   1.1  christos CPPFLAGS+=-DEAP_LEAP
    146   1.1  christos CPPFLAGS+=-DEAP_PSK
    147   1.1  christos CPPFLAGS+=-DEAP_TLS_OPENSSL
    148   1.1  christos SRCS+= \
    149   1.1  christos chap.c \
    150   1.1  christos crypto_openssl.c \
    151   1.1  christos eap_gtc.c \
    152   1.1  christos eap_leap.c \
    153   1.1  christos eap_md5.c \
    154   1.1  christos eap_mschapv2.c \
    155   1.1  christos eap_otp.c \
    156   1.1  christos eap_peap.c \
    157   1.1  christos eap_peap_common.c \
    158   1.1  christos eap_psk.c \
    159   1.1  christos eap_psk_common.c \
    160   1.1  christos eap_tls.c \
    161   1.1  christos eap_tls_common.c \
    162   1.1  christos eap_ttls.c \
    163   1.1  christos ms_funcs.c \
    164   1.1  christos mschapv2.c \
    165   1.1  christos sha1-tlsprf.c \
    166   1.1  christos tls_openssl.c
    167   1.1  christos 
    168   1.1  christos SRCS+=aes-ctr.c \
    169   1.1  christos aes-eax.c \
    170   1.1  christos aes-encblock.c \
    171  1.12  christos 
    172  1.12  christos NOSRCS+= \
    173   1.1  christos aes-omac1.c \
    174   1.1  christos 
    175   1.1  christos # NB: requires patch to openssl
    176   1.1  christos #CPPFLAGS+= -DEAP_FAST
    177   1.1  christos #SRCS+=	eap_fast.c
    178   1.1  christos 
    179  1.14  riastrad DPADD+= ${LIBSSL} ${LIBCRYPTO} ${LIBDES}
    180  1.14  riastrad LDADD+= -lssl -lcrypto -ldes
    181   1.1  christos .else
    182   1.1  christos CPPFLAGS+= -DINTERNAL_AES -DINTERNAL_MD5 -DINTERNAL_SHA1 -DCONFIG_NO_PBKDF2
    183   1.5  christos SRCS+= tls_none.c sha1-internal.c md5-internal.c aes-xinternal.c rc4.c
    184   1.8  christos CPPFLAGS+= -DCONFIG_CRYPTO_INTERNAL
    185   1.8  christos #SRCS+= aes-unwrap.c md5.c
    186   1.8  christos SRCS+= sha1-pbkdf2.c sha1.c md5.c
    187   1.1  christos .endif
    188   1.1  christos 
    189   1.1  christos .endif
    190   1.1  christos 
    191  1.11  christos COPTS.crypto_openssl.c+= -Wno-error=deprecated-declarations
    192  1.11  christos COPTS.tls_openssl.c+= -Wno-error=deprecated-declarations
    193  1.11  christos 
    194   1.1  christos .include <bsd.prog.mk>
    195