Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 = libframework.a
  16. SUBDIRS= \
  17. gateway \
  18. gateway/mqtt \
  19. lib \
  20. lib/json \
  21. platform \
  22. platform/src \
  23. platform/src/esp8266 \
  24. protocol \
  25. subdevice
  26. endif
  27. #############################################################
  28. # Configuration i.e. compile options etc.
  29. # Target specific stuff (defines etc.) goes in here!
  30. # Generally values applying to a tree are captured in the
  31. # makefile at its root level - these are then overridden
  32. # for a subtree within the makefile rooted therein
  33. #
  34. #UNIVERSAL_TARGET_DEFINES = \
  35. # Other potential configuration flags include:
  36. # -DTXRX_TXBUF_DEBUG
  37. # -DTXRX_RXBUF_DEBUG
  38. # -DWLAN_CONFIG_CCX
  39. #############################################################
  40. # Recursion Magic - Don't touch this!!
  41. #
  42. # Each subtree potentially has an include directory
  43. # corresponding to the common APIs applicable to modules
  44. # rooted at that subtree. Accordingly, the INCLUDE PATH
  45. # of a module can only contain the include directories up
  46. # its parent path, and not its siblings
  47. #
  48. # Required for each makefile to inherit from the parent
  49. #
  50. INCLUDES := $(INCLUDES) -I $(PDIR)include
  51. PDIR := ../$(PDIR)
  52. sinclude $(PDIR)Makefile
  53. .PHONY: FORCE
  54. FORCE: