Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. PROJECT_ROOT = $(abspath $(dir $(abspath $(firstword $(MAKEFILE_LIST))))..)
  2. PROJECT = bootloader
  3. include $(PROJECT_ROOT)/make/base.mk
  4. CFLAGS += -I$(PROJECT_ROOT) -Itargets/furi-hal-include
  5. ASM_SOURCES += $(wildcard src/*.s)
  6. C_SOURCES += $(wildcard src/*.c)
  7. CPP_SOURCES += $(wildcard src/*.cpp)
  8. include $(PROJECT_ROOT)/make/defaults.mk
  9. TARGET_DIR = targets/$(TARGET)
  10. include $(TARGET_DIR)/target.mk
  11. LIB_DIR = $(PROJECT_ROOT)/lib
  12. # U8G2 display library
  13. U8G2_DIR = $(LIB_DIR)/u8g2
  14. CFLAGS += -I$(U8G2_DIR)
  15. C_SOURCES += $(U8G2_DIR)/u8g2_glue.c
  16. C_SOURCES += $(U8G2_DIR)/u8g2_intersection.c
  17. C_SOURCES += $(U8G2_DIR)/u8g2_setup.c
  18. C_SOURCES += $(U8G2_DIR)/u8g2_d_memory.c
  19. C_SOURCES += $(U8G2_DIR)/u8x8_cad.c
  20. C_SOURCES += $(U8G2_DIR)/u8x8_byte.c
  21. C_SOURCES += $(U8G2_DIR)/u8x8_gpio.c
  22. C_SOURCES += $(U8G2_DIR)/u8x8_display.c
  23. C_SOURCES += $(U8G2_DIR)/u8x8_setup.c
  24. C_SOURCES += $(U8G2_DIR)/u8g2_hvline.c
  25. C_SOURCES += $(U8G2_DIR)/u8g2_line.c
  26. C_SOURCES += $(U8G2_DIR)/u8g2_ll_hvline.c
  27. C_SOURCES += $(U8G2_DIR)/u8g2_circle.c
  28. C_SOURCES += $(U8G2_DIR)/u8g2_box.c
  29. C_SOURCES += $(U8G2_DIR)/u8g2_buffer.c
  30. C_SOURCES += $(U8G2_DIR)/u8g2_font.c
  31. C_SOURCES += $(U8G2_DIR)/u8g2_fonts.c
  32. C_SOURCES += $(U8G2_DIR)/u8x8_8x8.c
  33. C_SOURCES += $(U8G2_DIR)/u8g2_bitmap.c
  34. include $(PROJECT_ROOT)/make/git.mk
  35. include $(PROJECT_ROOT)/make/toolchain.mk
  36. include $(PROJECT_ROOT)/make/rules.mk