lib.mk 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. LIB_DIR = $(PROJECT_ROOT)/lib
  2. # TODO: some places use lib/header.h includes, is it ok?
  3. CFLAGS += -I$(LIB_DIR)
  4. # Mlib containers
  5. CFLAGS += -I$(LIB_DIR)/mlib
  6. # U8G2 display library
  7. U8G2_DIR = $(LIB_DIR)/u8g2
  8. CFLAGS += -I$(U8G2_DIR)
  9. C_SOURCES += $(U8G2_DIR)/u8x8_d_st7565.c
  10. C_SOURCES += $(U8G2_DIR)/u8g2_d_setup.c
  11. C_SOURCES += $(U8G2_DIR)/u8g2_intersection.c
  12. C_SOURCES += $(U8G2_DIR)/u8g2_setup.c
  13. C_SOURCES += $(U8G2_DIR)/u8g2_d_memory.c
  14. C_SOURCES += $(U8G2_DIR)/u8x8_cad.c
  15. C_SOURCES += $(U8G2_DIR)/u8x8_byte.c
  16. C_SOURCES += $(U8G2_DIR)/u8x8_gpio.c
  17. C_SOURCES += $(U8G2_DIR)/u8x8_display.c
  18. C_SOURCES += $(U8G2_DIR)/u8x8_setup.c
  19. C_SOURCES += $(U8G2_DIR)/u8g2_hvline.c
  20. C_SOURCES += $(U8G2_DIR)/u8g2_ll_hvline.c
  21. C_SOURCES += $(U8G2_DIR)/u8g2_circle.c
  22. C_SOURCES += $(U8G2_DIR)/u8g2_box.c
  23. C_SOURCES += $(U8G2_DIR)/u8g2_buffer.c
  24. C_SOURCES += $(U8G2_DIR)/u8g2_font.c
  25. C_SOURCES += $(U8G2_DIR)/u8g2_fonts.c
  26. C_SOURCES += $(U8G2_DIR)/u8x8_8x8.c
  27. C_SOURCES += $(U8G2_DIR)/u8g2_bitmap.c
  28. FATFS_DIR = $(LIB_DIR)/fatfs
  29. C_SOURCES += $(FATFS_DIR)/ff.c
  30. C_SOURCES += $(FATFS_DIR)/ff_gen_drv.c
  31. C_SOURCES += $(FATFS_DIR)/diskio.c
  32. C_SOURCES += $(FATFS_DIR)/option/unicode.c