Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 = host
  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. #
  22. #DEFINES += -DDEVELOPMENT_TOOLS -DDEVELOPMENT_USE_GDB -DDEVELOPMENT_BREAK_ON_STARTUP_PIN=1
  23. #EXTRA_CCFLAGS += -ggdb -O0
  24. #############################################################
  25. # Recursion Magic - Don't touch this!!
  26. #
  27. INCLUDES := $(INCLUDES) -I $(PDIR)include
  28. INCLUDES += -I ./
  29. INCLUDES += -I ../spiffs
  30. INCLUDES += -I ../libc
  31. INCLUDES += -I ../modules
  32. INCLUDES += -I ../platform
  33. INCLUDES += -I ../uzlib
  34. PDIR := ../$(PDIR)
  35. sinclude $(PDIR)Makefile