Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 object file images to be generated ()
  9. # GEN_BINS - list of binaries to be generated ()
  10. # COMPONENTS_xxx - a list of libs/objs in the form
  11. # subdir/lib to be extracted and rolled up into
  12. # a generated lib/image xxx.a ()
  13. #
  14. ifndef PDIR
  15. GEN_LIBS = libplatform.a
  16. SUBDIRS= \
  17. src \
  18. src/esp8266
  19. endif
  20. #############################################################
  21. # Configuration i.e. compile options etc.
  22. # Target specific stuff (defines etc.) goes in here!
  23. # Generally values applying to a tree are captured in the
  24. # makefile at its root level - these are then overridden
  25. # for a subtree within the makefile rooted therein
  26. #
  27. #UNIVERSAL_TARGET_DEFINES = \
  28. # Other potential configuration flags include:
  29. # -DTXRX_TXBUF_DEBUG
  30. # -DTXRX_RXBUF_DEBUG
  31. # -DWLAN_CONFIG_CCX
  32. #############################################################
  33. # Recursion Magic - Don't touch this!!
  34. #
  35. # Each subtree potentially has an include directory
  36. # corresponding to the common APIs applicable to modules
  37. # rooted at that subtree. Accordingly, the INCLUDE PATH
  38. # of a module can only contain the include directories up
  39. # its parent path, and not its siblings
  40. #
  41. # Required for each makefile to inherit from the parent
  42. #
  43. INCLUDES := $(INCLUDES) -I $(PDIR)include
  44. PDIR := ../$(PDIR)
  45. sinclude $(PDIR)Makefile
  46. .PHONY: FORCE
  47. FORCE: