Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #############################################################
  2. # Required variables for each makefile
  3. # Discard this section from all parent makefiles
  4. # Expected variables (with automatic defaults):
  5. # CSRCS (all "C" files in the dir)
  6. # SUBDIRS (all subdirs with a Makefile)
  7. # GEN_LIBS - list of libs to be generated ()
  8. # GEN_IMAGES - list of images to be generated ()
  9. # COMPONENTS_xxx - a list of libs/objs in the form
  10. # subdir/lib to be extracted and rolled up into
  11. # a generated lib/image xxx.a ()
  12. #
  13. ifndef PDIR
  14. UP_EXTRACT_DIR = ..
  15. GEN_LIBS = liblwip.a
  16. COMPONENTS_liblwip = api/liblwipapi.a \
  17. app/liblwipapp.a \
  18. core/liblwipcore.a \
  19. core/ipv4/liblwipipv4.a \
  20. netif/liblwipnetif.a
  21. endif
  22. #############################################################
  23. # Configuration i.e. compile options etc.
  24. # Target specific stuff (defines etc.) goes in here!
  25. # Generally values applying to a tree are captured in the
  26. # makefile at its root level - these are then overridden
  27. # for a subtree within the makefile rooted therein
  28. #
  29. # Other potential configuration flags include:
  30. # -DTXRX_TXBUF_DEBUG
  31. # -DTXRX_RXBUF_DEBUG
  32. # -DWLAN_CONFIG_CCX
  33. CONFIGURATION_DEFINES += -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP
  34. #############################################################
  35. # Recursion Magic - Don't touch this!!
  36. #
  37. # Each subtree potentially has an include directory
  38. # corresponding to the common APIs applicable to modules
  39. # rooted at that subtree. Accordingly, the INCLUDE PATH
  40. # of a module can only contain the include directories up
  41. # its parent path, and not its siblings
  42. #
  43. # Required for each makefile to inherit from the parent
  44. #
  45. PDIR := ../$(PDIR)
  46. sinclude $(PDIR)Makefile