HardenedBSD src tree https://hardenedbsd.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

161 lines
3.4 KiB

  1. # $FreeBSD$
  2. .include <src.opts.mk>
  3. .include "../Makefile.inc"
  4. .PATH.c:${WPA_SUPPLICANT_DISTDIR} \
  5. ${WPA_DISTDIR}/src/eap_peer \
  6. ${WPA_DISTDIR}/src/drivers
  7. PACKAGE= wpa
  8. PROG= wpa_supplicant
  9. SRCS= base64.c bitfield.c blacklist.c bss.c cli.c common.c \
  10. config.c config_file.c \
  11. ctrl_iface.c ctrl_iface_common.c ctrl_iface_unix.c \
  12. dh_groups.c driver_bsd.c driver_common.c \
  13. driver_ndis.c driver_wired.c driver_wired_common.c drivers.c \
  14. eap_register.c eloop.c \
  15. events.c gas.c gas_query.c \
  16. http_client.c http_server.c \
  17. httpread.c hw_features_common.c \
  18. ieee802_11_common.c l2_packet_freebsd.c main.c \
  19. notify.c offchannel.c op_classes.c os_unix.c pmksa_cache.c preauth.c \
  20. rrm.c scan.c upnp_xml.c \
  21. wmm_ac.c wpa.c wpa_common.c wpa_ctrl.c \
  22. wpa_debug.c wpa_ft.c wpa_ie.c wpa_supplicant.c wpabuf.c wpas_glue.c \
  23. Packet32.c
  24. MAN= wpa_supplicant.8 wpa_supplicant.conf.5
  25. .if ${MK_EXAMPLES} != "no"
  26. FILESDIR= ${SHAREDIR}/examples/etc
  27. .PATH: ${WPA_SUPPLICANT_DISTDIR}
  28. FILES= wpa_supplicant.conf
  29. .endif
  30. CFLAGS+=-DCONFIG_BACKEND_FILE \
  31. -DCONFIG_DEBUG_SYSLOG \
  32. -DCONFIG_DRIVER_BSD \
  33. -DCONFIG_DRIVER_NDIS \
  34. -DCONFIG_DRIVER_WIRED \
  35. -DCONFIG_GAS \
  36. -DCONFIG_IEEE80211R \
  37. -DCONFIG_PEERKEY \
  38. -DCONFIG_PRIVSEP \
  39. -DCONFIG_SMARTCARD \
  40. -DCONFIG_TERMINATE_ONLASTIF \
  41. -DCONFIG_TLS=openssl \
  42. -DCONFIG_WPS2 \
  43. -DCONFIG_WPS_UPNP \
  44. -DPKCS12_FUNCS \
  45. -DCONFIG_MATCH_IFACE
  46. #CFLAGS+= -g
  47. LIBADD= pcap util
  48. # User customizations to the wpa_supplicant build environment
  49. CFLAGS+=${WPA_SUPPLICANT_CFLAGS}
  50. #DPADD+=${WPA_SUPPLICANT_DPADD}
  51. LDADD+=${WPA_SUPPLICANT_LDADD}
  52. #LDFLAGS+=${WPA_SUPPLICANT_LDFLAGS}
  53. .if ${MK_WPA_SUPPLICANT_EAPOL} != "no"
  54. CFLAGS+=-DCONFIG_WPS \
  55. -DCONFIG_HS20 \
  56. -DCONFIG_INTERWORKING \
  57. -DEAP_GTC \
  58. -DEAP_LEAP \
  59. -DEAP_MD5 \
  60. -DEAP_MSCHAPv2 \
  61. -DEAP_OTP \
  62. -DEAP_PEAP \
  63. -DEAP_PSK \
  64. -DEAP_TLS \
  65. -DEAP_TTLS \
  66. -DEAP_WSC \
  67. -DIEEE8021X_EAPOL
  68. SRCS+= chap.c \
  69. eap.c \
  70. eap_common.c \
  71. eap_gtc.c \
  72. eap_leap.c \
  73. eap_md5.c \
  74. eap_methods.c \
  75. eap_mschapv2.c \
  76. eap_otp.c \
  77. eap_peap.c \
  78. eap_peap_common.c \
  79. eap_psk.c \
  80. eap_psk_common.c \
  81. eap_tls.c \
  82. eap_tls_common.c \
  83. eap_ttls.c \
  84. eap_wsc.c \
  85. eapol_supp_sm.c \
  86. eap_wsc_common.c \
  87. hs20_supplicant.c \
  88. interworking.c \
  89. ms_funcs.c \
  90. mschapv2.c \
  91. uuid.c \
  92. wps.c wps_attr_build.c wps_attr_parse.c wps_attr_process.c \
  93. wps_common.c wps_dev_attr.c wps_enrollee.c wps_registrar.c \
  94. wps_supplicant.c wps_upnp.c wps_upnp_ap.c wps_upnp_event.c \
  95. wps_upnp_ssdp.c wps_upnp_web.c
  96. NEED_AES_EAX=y
  97. NEED_AES_ENCBLOCK=y
  98. NEED_AES_OMAC1=y
  99. .endif
  100. TLS_FUNCS=y
  101. .if !empty(CFLAGS:M*-DEAP_AKA)
  102. SRCS+= eap_aka.c
  103. NEED_SIM_COMMON=y
  104. NEED_AES_CBC=y
  105. .endif
  106. .if !empty(CFLAGS:M*-DEAP_SIM)
  107. SRCS+= eap_sim.c
  108. NEED_SIM_COMMON=y
  109. NEED_AES_CBC=y
  110. .endif
  111. .if defined(NEED_SIM_COMMON)
  112. SRCS+= eap_sim_common.c
  113. NEED_FIPS186_2_PRF=y
  114. .endif
  115. # PC/SC interface for smartcards (USIM, GSM SIM)
  116. # GSM/UMTS authentication algorithm (for EAP-SIM/EAP-AKA)
  117. # NB: requires devel/pcsc-lite
  118. #
  119. # WPA_SUPPLICANT_CFLAGS=-DEAP_AKA -DPCSC_FUNCS -I/usr/local/include/PCSC
  120. # WPA_SUPPLICANT_LDADD=-L/usr/local/lib
  121. #
  122. .if !empty(CFLAGS:M*-DPCSC_FUNCS)
  123. SRCS+= pcsc_funcs.c
  124. LIBADD+= pcslite pthread
  125. .endif
  126. .if !empty(CFLAGS:M*-DEAP_GPSK)
  127. CFLAGS+=-DEAP_GPSK_SHA256
  128. SRCS+= eap_gpsk.c \
  129. eap_gpsk_common.c
  130. NEED_AES_OMAC1=y
  131. .endif
  132. .if !empty(CFLAGS:M*-DEAP_PAX)
  133. SRCS+= eap_pax.c \
  134. eap_pax_common.c
  135. .endif
  136. .if !empty(CFLAGS:M*-DEAP_SAKE)
  137. SRCS+= eap_sake.c \
  138. eap_sake_common.c
  139. .endif
  140. .include "../Makefile.crypto"
  141. .include <bsd.prog.mk>