2020-10-07 09:37:43 +00:00
|
|
|
PROJECT_ROOT = $(abspath $(dir $(abspath $(firstword $(MAKEFILE_LIST))))..)
|
|
|
|
PROJECT = firmware
|
|
|
|
|
|
|
|
include $(PROJECT_ROOT)/make/base.mk
|
2020-10-26 17:00:17 +00:00
|
|
|
include $(PROJECT_ROOT)/assets/assets.mk
|
2020-10-07 09:37:43 +00:00
|
|
|
include $(PROJECT_ROOT)/core/core.mk
|
2020-11-11 06:17:53 +00:00
|
|
|
include $(PROJECT_ROOT)/make/git.mk
|
2020-10-07 09:37:43 +00:00
|
|
|
include $(PROJECT_ROOT)/applications/applications.mk
|
2020-10-20 12:25:01 +00:00
|
|
|
include $(PROJECT_ROOT)/lib/lib.mk
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2021-02-16 10:46:58 +00:00
|
|
|
CFLAGS += -Werror -Wno-address-of-packed-member
|
2021-02-01 07:51:22 +00:00
|
|
|
CPPFLAGS += -Werror
|
|
|
|
|
2020-12-14 16:36:07 +00:00
|
|
|
TARGET ?= f4
|
2020-12-02 13:40:06 +00:00
|
|
|
|
2020-10-07 09:37:43 +00:00
|
|
|
TARGET_DIR = targets/$(TARGET)
|
2020-12-02 13:40:06 +00:00
|
|
|
|
2020-10-07 09:37:43 +00:00
|
|
|
include $(TARGET_DIR)/target.mk
|
2020-11-25 07:25:13 +00:00
|
|
|
CFLAGS += -Itargets/api-hal-include
|
2020-10-07 09:37:43 +00:00
|
|
|
|
2020-11-06 09:31:06 +00:00
|
|
|
include $(PROJECT_ROOT)/make/git.mk
|
2020-10-07 09:37:43 +00:00
|
|
|
include $(PROJECT_ROOT)/make/toolchain.mk
|
|
|
|
include $(PROJECT_ROOT)/make/rules.mk
|