Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. all: eapol-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 += -DIEEE8021X_EAPOL
  14. $(SRC)/utils/libutils.a:
  15. $(MAKE) -C $(SRC)/utils
  16. $(SRC)/common/libcommon.a:
  17. $(MAKE) -C $(SRC)/common
  18. $(SRC)/crypto/libcrypto.a:
  19. $(MAKE) -C $(SRC)/crypto
  20. $(SRC)/tls/libtls.a:
  21. $(MAKE) -C $(SRC)/tls
  22. $(SRC)/rsn_supp/librsn_supp.a:
  23. $(MAKE) -C $(SRC)/rsn_supp
  24. $(SRC)/eapol_supp/libeapol_supp.a:
  25. $(MAKE) -C $(SRC)/eapol_supp
  26. $(SRC)/eap_peer/libeap_peer.a:
  27. $(MAKE) -C $(SRC)/eap_peer
  28. $(SRC)/eap_common/libeap_common.a:
  29. $(MAKE) -C $(SRC)/eap_common
  30. $(SRC)/l2_packet/libl2_packet.a:
  31. $(MAKE) -C $(SRC)/l2_packet
  32. LIBS += $(SRC)/common/libcommon.a
  33. LIBS += $(SRC)/crypto/libcrypto.a
  34. LIBS += $(SRC)/tls/libtls.a
  35. LIBS += $(SRC)/rsn_supp/librsn_supp.a
  36. LIBS += $(SRC)/eapol_supp/libeapol_supp.a
  37. LIBS += $(SRC)/eap_peer/libeap_peer.a
  38. LIBS += $(SRC)/eap_common/libeap_common.a
  39. LIBS += $(SRC)/l2_packet/libl2_packet.a
  40. LIBS += $(SRC)/utils/libutils.a
  41. eapol-fuzzer: eapol-fuzzer.o $(LIBS)
  42. $(LDO) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LIBS) -Wl,--end-group
  43. clean:
  44. $(MAKE) -C $(SRC) clean
  45. rm -f eapol-fuzzer *~ *.o *.d
  46. -include $(OBJS:%.o=%.d)