Makefile 619 B

123456789101112131415161718192021
  1. PROJECT_ROOT = $(abspath $(dir $(abspath $(firstword $(MAKEFILE_LIST))))..)
  2. PROJECT = firmware
  3. CFLAGS += -Werror
  4. CPPFLAGS += -Werror
  5. include $(PROJECT_ROOT)/make/base.mk
  6. include $(PROJECT_ROOT)/assets/assets.mk
  7. include $(PROJECT_ROOT)/core/core.mk
  8. include $(PROJECT_ROOT)/make/git.mk
  9. include $(PROJECT_ROOT)/applications/applications.mk
  10. include $(PROJECT_ROOT)/lib/lib.mk
  11. TARGET ?= f2
  12. TARGET_DIR = targets/$(TARGET)
  13. include $(TARGET_DIR)/target.mk
  14. CFLAGS += -Itargets/Inc
  15. include $(PROJECT_ROOT)/make/git.mk
  16. include $(PROJECT_ROOT)/make/toolchain.mk
  17. include $(PROJECT_ROOT)/make/rules.mk