Makefile 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. all: wnm-fuzzer
  2. ifndef CC
  3. CC=gcc
  4. endif
  5. ifndef LDO
  6. LDO=$(CC)
  7. endif
  8. ifndef CFLAGS
  9. CFLAGS = -MMD -O2 -Wall -g
  10. endif
  11. SRC=../../src
  12. CFLAGS += -I$(SRC)
  13. CFLAGS += -DCONFIG_WNM
  14. CFLAGS += -DCONFIG_INTERWORKING
  15. CFLAGS += -DCONFIG_GAS
  16. CFLAGS += -DCONFIG_HS20
  17. CFLAGS += -DIEEE8021X_EAPOL
  18. $(SRC)/utils/libutils.a:
  19. $(MAKE) -C $(SRC)/utils
  20. $(SRC)/common/libcommon.a:
  21. $(MAKE) -C $(SRC)/common
  22. $(SRC)/crypto/libcrypto.a:
  23. $(MAKE) -C $(SRC)/crypto
  24. $(SRC)/tls/libtls.a:
  25. $(MAKE) -C $(SRC)/tls
  26. $(SRC)/rsn_supp/librsn_supp.a:
  27. $(MAKE) -C $(SRC)/rsn_supp
  28. $(SRC)/eapol_supp/libeapol_supp.a:
  29. $(MAKE) -C $(SRC)/eapol_supp
  30. $(SRC)/eap_peer/libeap_peer.a:
  31. $(MAKE) -C $(SRC)/eap_peer
  32. $(SRC)/eap_common/libeap_common.a:
  33. $(MAKE) -C $(SRC)/eap_common
  34. $(SRC)/l2_packet/libl2_packet.a:
  35. $(MAKE) -C $(SRC)/l2_packet
  36. LIBS += $(SRC)/common/libcommon.a
  37. LIBS += $(SRC)/crypto/libcrypto.a
  38. LIBS += $(SRC)/tls/libtls.a
  39. LIBS += $(SRC)/rsn_supp/librsn_supp.a
  40. LIBS += $(SRC)/eapol_supp/libeapol_supp.a
  41. LIBS += $(SRC)/eap_peer/libeap_peer.a
  42. LIBS += $(SRC)/eap_common/libeap_common.a
  43. LIBS += $(SRC)/l2_packet/libl2_packet.a
  44. LIBS += $(SRC)/utils/libutils.a
  45. ELIBS += $(SRC)/crypto/libcrypto.a
  46. ELIBS += $(SRC)/tls/libtls.a
  47. CFLAGS += -I$(SRC)/utils
  48. OBJS += ../../wpa_supplicant/wnm_sta.o
  49. OBJS += ../../wpa_supplicant/bss.o
  50. OBJS += ../../wpa_supplicant/scan.o
  51. OBJS += ../../wpa_supplicant/notify.o
  52. OBJS += ../../wpa_supplicant/wpa_supplicant.o
  53. OBJS += ../../wpa_supplicant/config.o
  54. OBJS += ../../wpa_supplicant/config_file.o
  55. OBJS += ../../wpa_supplicant/blacklist.o
  56. OBJS += ../../wpa_supplicant/events.o
  57. OBJS += ../../wpa_supplicant/wpas_glue.o
  58. OBJS += ../../wpa_supplicant/wmm_ac.o
  59. OBJS += ../../wpa_supplicant/eap_register.o
  60. OBJS += ../../wpa_supplicant/gas_query.o
  61. OBJS += ../../wpa_supplicant/offchannel.o
  62. OBJS += ../../wpa_supplicant/interworking.o
  63. OBJS += ../../wpa_supplicant/hs20_supplicant.o
  64. OBJS += ../../wpa_supplicant/rrm.o
  65. OBJS += ../../wpa_supplicant/op_classes.o
  66. OBJS += $(SRC)/drivers/drivers.o
  67. OBJS += $(SRC)/drivers/driver_common.o
  68. wnm-fuzzer: wnm-fuzzer.o $(OBJS) $(LIBS)
  69. $(LDO) $(LDFLAGS) -o $@ $^ $(LIBS) $(ELIBS)
  70. clean:
  71. $(MAKE) -C $(SRC) clean
  72. $(MAKE) -C ../../wpa_supplicant clean
  73. rm -f wnm-fuzzer *~ *.o *.d
  74. -include $(OBJS:%.o=%.d)