Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 = libdriver.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. PDIR := ../$(PDIR)
  38. sinclude $(PDIR)Makefile