Makefile 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. ifndef CC
  2. CC=gcc
  3. endif
  4. ifndef CFLAGS
  5. CFLAGS = -MMD -O2 -Wall -g
  6. endif
  7. # define HOSTAPD_DUMP_STATE to include SIGUSR1 handler for dumping state to
  8. # a file (undefine it, if you want to save in binary size)
  9. CFLAGS += -DHOSTAPD_DUMP_STATE
  10. CFLAGS += -I../src
  11. CFLAGS += -I../src/crypto
  12. CFLAGS += -I../src/utils
  13. CFLAGS += -I../src/common
  14. # Uncomment following line and set the path to your kernel tree include
  15. # directory if your C library does not include all header files.
  16. # CFLAGS += -DUSE_KERNEL_HEADERS -I/usr/src/linux/include
  17. -include .config
  18. ifndef CONFIG_OS
  19. ifdef CONFIG_NATIVE_WINDOWS
  20. CONFIG_OS=win32
  21. else
  22. CONFIG_OS=unix
  23. endif
  24. endif
  25. ifeq ($(CONFIG_OS), internal)
  26. CFLAGS += -DOS_NO_C_LIB_DEFINES
  27. endif
  28. ifdef CONFIG_NATIVE_WINDOWS
  29. CFLAGS += -DCONFIG_NATIVE_WINDOWS
  30. LIBS += -lws2_32
  31. endif
  32. OBJS = hostapd.o ieee802_1x.o eapol_sm.o \
  33. ieee802_11.o config.o ieee802_11_auth.o accounting.o \
  34. sta_info.o wpa.o ctrl_iface.o \
  35. drivers.o preauth.o pmksa_cache.o beacon.o \
  36. hw_features.o wme.o ap_list.o \
  37. mlme.o vlan_init.o wpa_auth_ie.o
  38. OBJS += ../src/utils/eloop.o
  39. OBJS += ../src/utils/common.o
  40. OBJS += ../src/utils/wpa_debug.o
  41. OBJS += ../src/utils/wpabuf.o
  42. OBJS += ../src/utils/os_$(CONFIG_OS).o
  43. OBJS += ../src/utils/ip_addr.o
  44. OBJS += ../src/common/ieee802_11_common.o
  45. OBJS += ../src/common/wpa_common.o
  46. OBJS += ../src/radius/radius.o
  47. OBJS += ../src/radius/radius_client.o
  48. OBJS += ../src/crypto/md5.o
  49. OBJS += ../src/crypto/rc4.o
  50. OBJS += ../src/crypto/md4.o
  51. OBJS += ../src/crypto/sha1.o
  52. OBJS += ../src/crypto/des.o
  53. OBJS += ../src/crypto/aes_wrap.o
  54. OBJS += ../src/crypto/aes.o
  55. HOBJS=../src/hlr_auc_gw/hlr_auc_gw.o ../src/utils/common.o ../src/utils/wpa_debug.o ../src/utils/os_$(CONFIG_OS).o ../src/hlr_auc_gw/milenage.o ../src/crypto/aes_wrap.o ../src/crypto/aes.o
  56. CFLAGS += -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX
  57. ifdef CONFIG_IAPP
  58. CFLAGS += -DCONFIG_IAPP
  59. OBJS += iapp.o
  60. endif
  61. ifdef CONFIG_RSN_PREAUTH
  62. CFLAGS += -DCONFIG_RSN_PREAUTH
  63. CONFIG_L2_PACKET=y
  64. endif
  65. ifdef CONFIG_PEERKEY
  66. CFLAGS += -DCONFIG_PEERKEY
  67. OBJS += peerkey.o
  68. endif
  69. ifdef CONFIG_IEEE80211W
  70. CFLAGS += -DCONFIG_IEEE80211W
  71. NEED_SHA256=y
  72. endif
  73. ifdef CONFIG_IEEE80211R
  74. CFLAGS += -DCONFIG_IEEE80211R
  75. OBJS += wpa_ft.o
  76. NEED_SHA256=y
  77. endif
  78. ifdef CONFIG_IEEE80211N
  79. CFLAGS += -DCONFIG_IEEE80211N
  80. endif
  81. ifdef CONFIG_DRIVER_HOSTAP
  82. CFLAGS += -DCONFIG_DRIVER_HOSTAP
  83. OBJS += driver_hostap.o
  84. endif
  85. ifdef CONFIG_DRIVER_WIRED
  86. CFLAGS += -DCONFIG_DRIVER_WIRED
  87. OBJS += driver_wired.o
  88. endif
  89. ifdef CONFIG_DRIVER_MADWIFI
  90. CFLAGS += -DCONFIG_DRIVER_MADWIFI
  91. OBJS += driver_madwifi.o
  92. CONFIG_L2_PACKET=y
  93. endif
  94. ifdef CONFIG_DRIVER_PRISM54
  95. CFLAGS += -DCONFIG_DRIVER_PRISM54
  96. OBJS += driver_prism54.o
  97. endif
  98. ifdef CONFIG_DRIVER_NL80211
  99. CFLAGS += -DCONFIG_DRIVER_NL80211
  100. OBJS += driver_nl80211.o radiotap.o
  101. LIBS += -lnl
  102. ifdef CONFIG_LIBNL20
  103. LIBS += -lnl-genl
  104. CFLAGS += -DCONFIG_LIBNL20
  105. endif
  106. endif
  107. ifdef CONFIG_DRIVER_BSD
  108. CFLAGS += -DCONFIG_DRIVER_BSD
  109. OBJS += driver_bsd.o
  110. CONFIG_L2_PACKET=y
  111. CONFIG_DNET_PCAP=y
  112. CONFIG_L2_FREEBSD=y
  113. endif
  114. ifdef CONFIG_DRIVER_TEST
  115. CFLAGS += -DCONFIG_DRIVER_TEST
  116. OBJS += driver_test.o
  117. endif
  118. ifdef CONFIG_DRIVER_NONE
  119. CFLAGS += -DCONFIG_DRIVER_NONE
  120. OBJS += driver_none.o
  121. endif
  122. ifdef CONFIG_L2_PACKET
  123. ifdef CONFIG_DNET_PCAP
  124. ifdef CONFIG_L2_FREEBSD
  125. LIBS += -lpcap
  126. OBJS += ../src/l2_packet/l2_packet_freebsd.o
  127. else
  128. LIBS += -ldnet -lpcap
  129. OBJS += ../src/l2_packet/l2_packet_pcap.o
  130. endif
  131. else
  132. OBJS += ../src/l2_packet/l2_packet_linux.o
  133. endif
  134. else
  135. OBJS += ../src/l2_packet/l2_packet_none.o
  136. endif
  137. ifdef CONFIG_EAP_MD5
  138. CFLAGS += -DEAP_MD5
  139. OBJS += ../src/eap_server/eap_md5.o
  140. CHAP=y
  141. endif
  142. ifdef CONFIG_EAP_TLS
  143. CFLAGS += -DEAP_TLS
  144. OBJS += ../src/eap_server/eap_tls.o
  145. TLS_FUNCS=y
  146. endif
  147. ifdef CONFIG_EAP_PEAP
  148. CFLAGS += -DEAP_PEAP
  149. OBJS += ../src/eap_server/eap_peap.o
  150. OBJS += ../src/eap_common/eap_peap_common.o
  151. TLS_FUNCS=y
  152. CONFIG_EAP_MSCHAPV2=y
  153. endif
  154. ifdef CONFIG_EAP_TTLS
  155. CFLAGS += -DEAP_TTLS
  156. OBJS += ../src/eap_server/eap_ttls.o
  157. TLS_FUNCS=y
  158. CHAP=y
  159. endif
  160. ifdef CONFIG_EAP_MSCHAPV2
  161. CFLAGS += -DEAP_MSCHAPv2
  162. OBJS += ../src/eap_server/eap_mschapv2.o
  163. MS_FUNCS=y
  164. endif
  165. ifdef CONFIG_EAP_GTC
  166. CFLAGS += -DEAP_GTC
  167. OBJS += ../src/eap_server/eap_gtc.o
  168. endif
  169. ifdef CONFIG_EAP_SIM
  170. CFLAGS += -DEAP_SIM
  171. OBJS += ../src/eap_server/eap_sim.o
  172. CONFIG_EAP_SIM_COMMON=y
  173. endif
  174. ifdef CONFIG_EAP_AKA
  175. CFLAGS += -DEAP_AKA
  176. OBJS += ../src/eap_server/eap_aka.o
  177. CONFIG_EAP_SIM_COMMON=y
  178. endif
  179. ifdef CONFIG_EAP_AKA_PRIME
  180. CFLAGS += -DEAP_AKA_PRIME
  181. endif
  182. ifdef CONFIG_EAP_SIM_COMMON
  183. OBJS += ../src/eap_common/eap_sim_common.o
  184. # Example EAP-SIM/AKA interface for GSM/UMTS authentication. This can be
  185. # replaced with another file implementating the interface specified in
  186. # eap_sim_db.h.
  187. OBJS += ../src/eap_server/eap_sim_db.o
  188. NEED_FIPS186_2_PRF=y
  189. endif
  190. ifdef CONFIG_EAP_PAX
  191. CFLAGS += -DEAP_PAX
  192. OBJS += ../src/eap_server/eap_pax.o ../src/eap_common/eap_pax_common.o
  193. endif
  194. ifdef CONFIG_EAP_PSK
  195. CFLAGS += -DEAP_PSK
  196. OBJS += ../src/eap_server/eap_psk.o ../src/eap_common/eap_psk_common.o
  197. endif
  198. ifdef CONFIG_EAP_SAKE
  199. CFLAGS += -DEAP_SAKE
  200. OBJS += ../src/eap_server/eap_sake.o ../src/eap_common/eap_sake_common.o
  201. endif
  202. ifdef CONFIG_EAP_GPSK
  203. CFLAGS += -DEAP_GPSK
  204. OBJS += ../src/eap_server/eap_gpsk.o ../src/eap_common/eap_gpsk_common.o
  205. ifdef CONFIG_EAP_GPSK_SHA256
  206. CFLAGS += -DEAP_GPSK_SHA256
  207. endif
  208. NEED_SHA256=y
  209. endif
  210. ifdef CONFIG_EAP_VENDOR_TEST
  211. CFLAGS += -DEAP_VENDOR_TEST
  212. OBJS += ../src/eap_server/eap_vendor_test.o
  213. endif
  214. ifdef CONFIG_EAP_FAST
  215. CFLAGS += -DEAP_FAST
  216. OBJS += ../src/eap_server/eap_fast.o
  217. OBJS += ../src/eap_common/eap_fast_common.o
  218. TLS_FUNCS=y
  219. NEED_T_PRF=y
  220. endif
  221. ifdef CONFIG_WPS
  222. CFLAGS += -DCONFIG_WPS -DEAP_WSC
  223. OBJS += ../src/utils/uuid.o
  224. OBJS += wps_hostapd.o
  225. OBJS += ../src/eap_server/eap_wsc.o ../src/eap_common/eap_wsc_common.o
  226. OBJS += ../src/wps/wps.o
  227. OBJS += ../src/wps/wps_common.o
  228. OBJS += ../src/wps/wps_attr_parse.o
  229. OBJS += ../src/wps/wps_attr_build.o
  230. OBJS += ../src/wps/wps_attr_process.o
  231. OBJS += ../src/wps/wps_dev_attr.o
  232. OBJS += ../src/wps/wps_enrollee.o
  233. OBJS += ../src/wps/wps_registrar.o
  234. NEED_DH_GROUPS=y
  235. NEED_SHA256=y
  236. NEED_CRYPTO=y
  237. NEED_BASE64=y
  238. endif
  239. ifdef CONFIG_EAP_IKEV2
  240. CFLAGS += -DEAP_IKEV2
  241. OBJS += ../src/eap_server/eap_ikev2.o ../src/eap_server/ikev2.o
  242. OBJS += ../src/eap_common/eap_ikev2_common.o ../src/eap_common/ikev2_common.o
  243. NEED_DH_GROUPS=y
  244. endif
  245. ifdef CONFIG_EAP_TNC
  246. CFLAGS += -DEAP_TNC
  247. OBJS += ../src/eap_server/eap_tnc.o
  248. OBJS += ../src/eap_server/tncs.o
  249. NEED_BASE64=y
  250. endif
  251. # Basic EAP functionality is needed for EAPOL
  252. OBJS += ../src/eap_server/eap.o
  253. OBJS += ../src/eap_common/eap_common.o
  254. OBJS += ../src/eap_server/eap_methods.o
  255. OBJS += ../src/eap_server/eap_identity.o
  256. ifdef CONFIG_EAP
  257. CFLAGS += -DEAP_SERVER
  258. endif
  259. ifndef CONFIG_TLS
  260. CONFIG_TLS=openssl
  261. endif
  262. ifeq ($(CONFIG_TLS), internal)
  263. ifndef CONFIG_CRYPTO
  264. CONFIG_CRYPTO=internal
  265. endif
  266. endif
  267. ifeq ($(CONFIG_CRYPTO), libtomcrypt)
  268. CFLAGS += -DCONFIG_INTERNAL_X509
  269. endif
  270. ifeq ($(CONFIG_CRYPTO), internal)
  271. CFLAGS += -DCONFIG_INTERNAL_X509
  272. endif
  273. ifdef TLS_FUNCS
  274. # Shared TLS functions (needed for EAP_TLS, EAP_PEAP, and EAP_TTLS)
  275. CFLAGS += -DEAP_TLS_FUNCS
  276. OBJS += ../src/eap_server/eap_tls_common.o
  277. ifeq ($(CONFIG_TLS), openssl)
  278. OBJS += ../src/crypto/tls_openssl.o
  279. LIBS += -lssl -lcrypto
  280. LIBS_p += -lcrypto
  281. LIBS_h += -lcrypto
  282. endif
  283. ifeq ($(CONFIG_TLS), gnutls)
  284. OBJS += ../src/crypto/tls_gnutls.o
  285. LIBS += -lgnutls -lgcrypt -lgpg-error
  286. LIBS_p += -lgcrypt
  287. LIBS_h += -lgcrypt
  288. endif
  289. ifdef CONFIG_GNUTLS_EXTRA
  290. CFLAGS += -DCONFIG_GNUTLS_EXTRA
  291. LIBS += -lgnutls-extra
  292. endif
  293. ifeq ($(CONFIG_TLS), internal)
  294. OBJS += ../src/crypto/tls_internal.o
  295. OBJS += ../src/tls/tlsv1_common.o ../src/tls/tlsv1_record.o
  296. OBJS += ../src/tls/tlsv1_cred.o ../src/tls/tlsv1_server.o
  297. OBJS += ../src/tls/tlsv1_server_write.o ../src/tls/tlsv1_server_read.o
  298. OBJS += ../src/tls/asn1.o ../src/tls/x509v3.o
  299. OBJS_p += ../src/tls/asn1.o
  300. OBJS_p += ../src/crypto/rc4.o ../src/crypto/aes_wrap.o ../src/crypto/aes.o
  301. NEED_BASE64=y
  302. CFLAGS += -DCONFIG_TLS_INTERNAL
  303. CFLAGS += -DCONFIG_TLS_INTERNAL_SERVER
  304. ifeq ($(CONFIG_CRYPTO), internal)
  305. ifdef CONFIG_INTERNAL_LIBTOMMATH
  306. CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
  307. else
  308. LIBS += -ltommath
  309. LIBS_p += -ltommath
  310. endif
  311. endif
  312. ifeq ($(CONFIG_CRYPTO), libtomcrypt)
  313. LIBS += -ltomcrypt -ltfm
  314. LIBS_p += -ltomcrypt -ltfm
  315. endif
  316. endif
  317. NEED_CRYPTO=y
  318. else
  319. OBJS += ../src/crypto/tls_none.o
  320. endif
  321. ifdef CONFIG_PKCS12
  322. CFLAGS += -DPKCS12_FUNCS
  323. endif
  324. ifdef MS_FUNCS
  325. OBJS += ../src/crypto/ms_funcs.o
  326. NEED_CRYPTO=y
  327. endif
  328. ifdef CHAP
  329. OBJS += ../src/eap_common/chap.o
  330. endif
  331. ifdef NEED_CRYPTO
  332. ifndef TLS_FUNCS
  333. ifeq ($(CONFIG_TLS), openssl)
  334. LIBS += -lcrypto
  335. LIBS_p += -lcrypto
  336. LIBS_h += -lcrypto
  337. endif
  338. ifeq ($(CONFIG_TLS), gnutls)
  339. LIBS += -lgcrypt
  340. LIBS_p += -lgcrypt
  341. LIBS_h += -lgcrypt
  342. endif
  343. ifeq ($(CONFIG_TLS), internal)
  344. ifeq ($(CONFIG_CRYPTO), libtomcrypt)
  345. LIBS += -ltomcrypt -ltfm
  346. LIBS_p += -ltomcrypt -ltfm
  347. endif
  348. endif
  349. endif
  350. ifeq ($(CONFIG_TLS), openssl)
  351. OBJS += ../src/crypto/crypto_openssl.o
  352. OBJS_p += ../src/crypto/crypto_openssl.o
  353. HOBJS += ../src/crypto/crypto_openssl.o
  354. CONFIG_INTERNAL_SHA256=y
  355. endif
  356. ifeq ($(CONFIG_TLS), gnutls)
  357. OBJS += ../src/crypto/crypto_gnutls.o
  358. OBJS_p += ../src/crypto/crypto_gnutls.o
  359. HOBJS += ../src/crypto/crypto_gnutls.o
  360. CONFIG_INTERNAL_SHA256=y
  361. endif
  362. ifeq ($(CONFIG_TLS), internal)
  363. ifeq ($(CONFIG_CRYPTO), libtomcrypt)
  364. OBJS += ../src/crypto/crypto_libtomcrypt.o
  365. OBJS_p += ../src/crypto/crypto_libtomcrypt.o
  366. CONFIG_INTERNAL_SHA256=y
  367. endif
  368. ifeq ($(CONFIG_CRYPTO), internal)
  369. OBJS += ../src/crypto/crypto_internal.o ../src/tls/rsa.o ../src/tls/bignum.o
  370. OBJS_p += ../src/crypto/crypto_internal.o ../src/tls/rsa.o ../src/tls/bignum.o
  371. CFLAGS += -DCONFIG_CRYPTO_INTERNAL
  372. CONFIG_INTERNAL_AES=y
  373. CONFIG_INTERNAL_DES=y
  374. CONFIG_INTERNAL_SHA1=y
  375. CONFIG_INTERNAL_MD4=y
  376. CONFIG_INTERNAL_MD5=y
  377. CONFIG_INTERNAL_SHA256=y
  378. endif
  379. endif
  380. else
  381. CONFIG_INTERNAL_AES=y
  382. CONFIG_INTERNAL_SHA1=y
  383. CONFIG_INTERNAL_MD5=y
  384. CONFIG_INTERNAL_SHA256=y
  385. endif
  386. ifdef CONFIG_INTERNAL_AES
  387. CFLAGS += -DINTERNAL_AES
  388. endif
  389. ifdef CONFIG_INTERNAL_SHA1
  390. CFLAGS += -DINTERNAL_SHA1
  391. endif
  392. ifdef CONFIG_INTERNAL_SHA256
  393. CFLAGS += -DINTERNAL_SHA256
  394. endif
  395. ifdef CONFIG_INTERNAL_MD5
  396. CFLAGS += -DINTERNAL_MD5
  397. endif
  398. ifdef CONFIG_INTERNAL_MD4
  399. CFLAGS += -DINTERNAL_MD4
  400. endif
  401. ifdef CONFIG_INTERNAL_DES
  402. CFLAGS += -DINTERNAL_DES
  403. endif
  404. ifdef NEED_SHA256
  405. OBJS += ../src/crypto/sha256.o
  406. endif
  407. ifdef NEED_DH_GROUPS
  408. OBJS += ../src/crypto/dh_groups.o
  409. endif
  410. ifndef NEED_FIPS186_2_PRF
  411. CFLAGS += -DCONFIG_NO_FIPS186_2_PRF
  412. endif
  413. ifndef NEED_T_PRF
  414. CFLAGS += -DCONFIG_NO_T_PRF
  415. endif
  416. ifdef CONFIG_RADIUS_SERVER
  417. CFLAGS += -DRADIUS_SERVER
  418. OBJS += ../src/radius/radius_server.o
  419. endif
  420. ifdef CONFIG_IPV6
  421. CFLAGS += -DCONFIG_IPV6
  422. endif
  423. ifdef CONFIG_DRIVER_RADIUS_ACL
  424. CFLAGS += -DCONFIG_DRIVER_RADIUS_ACL
  425. endif
  426. ifdef CONFIG_FULL_DYNAMIC_VLAN
  427. # define CONFIG_FULL_DYNAMIC_VLAN to have hostapd manipulate bridges
  428. # and vlan interfaces for the vlan feature.
  429. CFLAGS += -DCONFIG_FULL_DYNAMIC_VLAN
  430. endif
  431. ifdef NEED_BASE64
  432. OBJS += ../src/utils/base64.o
  433. endif
  434. ALL=hostapd hostapd_cli
  435. all: verify_config $(ALL)
  436. verify_config:
  437. @if [ ! -r .config ]; then \
  438. echo 'Building hostapd requires a configuration file'; \
  439. echo '(.config). See README for more instructions. You can'; \
  440. echo 'run "cp defconfig .config" to create an example'; \
  441. echo 'configuration.'; \
  442. exit 1; \
  443. fi
  444. install: all
  445. for i in $(ALL); do cp $$i /usr/local/bin/$$i; done
  446. hostapd: $(OBJS)
  447. $(CC) -o hostapd $(OBJS) $(LIBS)
  448. OBJS_c = hostapd_cli.o ../src/common/wpa_ctrl.o ../src/utils/os_$(CONFIG_OS).o
  449. hostapd_cli: $(OBJS_c)
  450. $(CC) -o hostapd_cli $(OBJS_c)
  451. NOBJS = nt_password_hash.o ../src/crypto/ms_funcs.o ../src/crypto/sha1.o ../src/crypto/rc4.o ../src/crypto/md5.o
  452. NOBJS += ../src/crypto/crypto_openssl.o ../src/utils/os_$(CONFIG_OS).o
  453. ifdef TLS_FUNCS
  454. LIBS_n += -lcrypto
  455. endif
  456. nt_password_hash: $(NOBJS)
  457. $(CC) -o nt_password_hash $(NOBJS) $(LIBS_n)
  458. hlr_auc_gw: $(HOBJS)
  459. $(CC) -o hlr_auc_gw $(HOBJS) $(LIBS_h)
  460. clean:
  461. $(MAKE) -C ../src clean
  462. rm -f core *~ *.o hostapd hostapd_cli nt_password_hash hlr_auc_gw
  463. rm -f *.d
  464. %.eps: %.fig
  465. fig2dev -L eps $*.fig $*.eps
  466. %.png: %.fig
  467. fig2dev -L png -m 3 $*.fig | pngtopnm | pnmscale 0.4 | pnmtopng \
  468. > $*.png
  469. docs-pics: doc/hostapd.png doc/hostapd.eps
  470. docs: docs-pics
  471. (cd ..; doxygen hostapd/doc/doxygen.full; cd hostapd)
  472. $(MAKE) -C doc/latex
  473. cp doc/latex/refman.pdf hostapd-devel.pdf
  474. docs-fast: docs-pics
  475. (cd ..; doxygen hostapd/doc/doxygen.fast; cd hostapd)
  476. clean-docs:
  477. rm -rf doc/latex doc/html
  478. rm -f doc/hostapd.{eps,png} hostapd-devel.pdf
  479. TEST_SRC_MILENAGE = ../src/hlr_auc_gw/milenage.c ../src/crypto/aes_wrap.c ../src/crypto/aes.c ../src/utils/common.c ../src/utils/wpa_debug.o ../src/utils/os_$(CONFIG_OS).c
  480. test-milenage: $(TEST_SRC_MILENAGE)
  481. $(CC) -o test-milenage -Wall -Werror $(TEST_SRC_MILENAGE) \
  482. -DTEST_MAIN_MILENAGE -I. -DINTERNAL_AES \
  483. -I../src/crypto -I../src/utils
  484. ./test-milenage
  485. rm test-milenage
  486. hostapd-sparse: $(OBJS)
  487. @echo Sparse run completed
  488. run-sparse:
  489. CC="sparse -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -D__INT_MAX__=2147483647 -D__SHRT_MAX__=32767 -D__LONG_MAX__=2147483647 -D__SCHAR_MAX__=127 -Wbitwise" $(MAKE) hostapd-sparse
  490. -include $(OBJS:%.o=%.d)