Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. all: ap-mgmt-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 += -I$(SRC)/utils
  14. CFLAGS += -DCONFIG_WNM
  15. CFLAGS += -DCONFIG_INTERWORKING
  16. CFLAGS += -DCONFIG_GAS
  17. CFLAGS += -DCONFIG_HS20
  18. CFLAGS += -DIEEE8021X_EAPOL
  19. CFLAGS += -DNEED_AP_MLME
  20. $(SRC)/utils/libutils.a:
  21. $(MAKE) -C $(SRC)/utils
  22. $(SRC)/common/libcommon.a:
  23. $(MAKE) -C $(SRC)/common
  24. $(SRC)/crypto/libcrypto.a:
  25. $(MAKE) -C $(SRC)/crypto
  26. $(SRC)/tls/libtls.a:
  27. $(MAKE) -C $(SRC)/tls
  28. $(SRC)/wps/libwps.a:
  29. $(MAKE) -C $(SRC)/wps
  30. $(SRC)/eap_common/libeap_common.a:
  31. $(MAKE) -C $(SRC)/eap_common
  32. $(SRC)/eap_server/libeap_server.a:
  33. $(MAKE) -C $(SRC)/eap_server
  34. $(SRC)/l2_packet/libl2_packet.a:
  35. $(MAKE) -C $(SRC)/l2_packet
  36. $(SRC)/eapol_auth/libeapol_auth.a:
  37. $(MAKE) -C $(SRC)/eapol_auth
  38. $(SRC)/ap/libap.a:
  39. $(MAKE) -C $(SRC)/ap
  40. $(SRC)/radius/libradius.a:
  41. $(MAKE) -C $(SRC)/radius
  42. LIBS += $(SRC)/common/libcommon.a
  43. LIBS += $(SRC)/crypto/libcrypto.a
  44. LIBS += $(SRC)/tls/libtls.a
  45. LIBS += $(SRC)/wps/libwps.a
  46. LIBS += $(SRC)/eap_server/libeap_server.a
  47. LIBS += $(SRC)/eap_common/libeap_common.a
  48. LIBS += $(SRC)/l2_packet/libl2_packet.a
  49. LIBS += $(SRC)/ap/libap.a
  50. LIBS += $(SRC)/eapol_auth/libeapol_auth.a
  51. LIBS += $(SRC)/radius/libradius.a
  52. LIBS += $(SRC)/utils/libutils.a
  53. ELIBS += $(SRC)/crypto/libcrypto.a
  54. ELIBS += $(SRC)/tls/libtls.a
  55. ap-mgmt-fuzzer: ap-mgmt-fuzzer.o $(OBJS) $(LIBS)
  56. $(LDO) $(LDFLAGS) -o $@ $^ $(LIBS) $(ELIBS)
  57. clean:
  58. $(MAKE) -C $(SRC) clean
  59. rm -f ap-mgmt-fuzzer *~ *.o *.d
  60. -include $(OBJS:%.o=%.d)