Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. SUBDIRS = luac_cross
  15. GEN_LIBS = liblua.a
  16. endif
  17. STD_CFLAGS=-std=gnu11 -Wimplicit -Wall
  18. #############################################################
  19. # Configuration i.e. compile options etc.
  20. # Target specific stuff (defines etc.) goes in here!
  21. # Generally values applying to a tree are captured in the
  22. # makefile at its root level - these are then overridden
  23. # for a subtree within the makefile rooted therein
  24. #
  25. #DEFINES += -DDEVELOPMENT_TOOLS -DDEVELOPMENT_USE_GDB -DDEVELOPMENT_BREAK_ON_STARTUP_PIN=1
  26. #EXTRA_CCFLAGS += -ggdb -O0
  27. #############################################################
  28. # Recursion Magic - Don't touch this!!
  29. #
  30. # Each subtree potentially has an include directory
  31. # corresponding to the common APIs applicable to modules
  32. # rooted at that subtree. Accordingly, the INCLUDE PATH
  33. # of a module can only contain the include directories up
  34. # its parent path, and not its siblings
  35. #
  36. # Required for each makefile to inherit from the parent
  37. #
  38. INCLUDES += -I ../uzlib
  39. PDIR := ../$(PDIR)
  40. sinclude $(PDIR)Makefile