Makefile 1.7 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 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. GEN_LIBS = libmodules.a
  15. endif
  16. #############################################################
  17. # Configuration i.e. compile options etc.
  18. # Target specific stuff (defines etc.) goes in here!
  19. # Generally values applying to a tree are captured in the
  20. # makefile at its root level - these are then overridden
  21. # for a subtree within the makefile rooted therein
  22. #
  23. #DEFINES +=
  24. #############################################################
  25. # Recursion Magic - Don't touch this!!
  26. #
  27. # Each subtree potentially has an include directory
  28. # corresponding to the common APIs applicable to modules
  29. # rooted at that subtree. Accordingly, the INCLUDE PATH
  30. # of a module can only contain the include directories up
  31. # its parent path, and not its siblings
  32. #
  33. # Required for each makefile to inherit from the parent
  34. #
  35. INCLUDES := $(INCLUDES) -I $(PDIR)include
  36. INCLUDES += -I ./
  37. INCLUDES += -I ../libc
  38. INCLUDES += -I ../coap
  39. INCLUDES += -I ../mqtt
  40. INCLUDES += -I ../u8glib
  41. INCLUDES += -I ../ucglib
  42. INCLUDES += -I ../lua
  43. INCLUDES += -I ../platform
  44. INCLUDES += -I ../wofs
  45. INCLUDES += -I ../spiffs
  46. INCLUDES += -I ../smart
  47. INCLUDES += -I ../cjson
  48. INCLUDES += -I ../dhtlib
  49. INCLUDES += -I ../http
  50. PDIR := ../$(PDIR)
  51. sinclude $(PDIR)Makefile