2020-10-07 12:37:43 +03:00
|
|
|
PROJECT_ROOT = $(abspath $(dir $(abspath $(firstword $(MAKEFILE_LIST))))..)
|
2020-10-01 02:05:04 +03:00
|
|
|
PROJECT = bootloader
|
|
|
|
|
2020-10-07 12:37:43 +03:00
|
|
|
include $(PROJECT_ROOT)/make/base.mk
|
2020-10-01 02:05:04 +03:00
|
|
|
|
2021-07-18 21:09:00 +03:00
|
|
|
CFLAGS += -I$(PROJECT_ROOT) -Itargets/api-hal-include
|
2020-10-07 12:37:43 +03:00
|
|
|
ASM_SOURCES += $(wildcard src/*.s)
|
|
|
|
C_SOURCES += $(wildcard src/*.c)
|
|
|
|
CPP_SOURCES += $(wildcard src/*.cpp)
|
2020-10-01 02:05:04 +03:00
|
|
|
|
2021-06-23 17:58:44 +03:00
|
|
|
TARGET ?= f6
|
2020-10-01 02:05:04 +03:00
|
|
|
TARGET_DIR = targets/$(TARGET)
|
|
|
|
include $(TARGET_DIR)/target.mk
|
|
|
|
|
2020-11-06 15:31:06 +06:00
|
|
|
include $(PROJECT_ROOT)/make/git.mk
|
2020-10-07 12:37:43 +03:00
|
|
|
include $(PROJECT_ROOT)/make/toolchain.mk
|
|
|
|
include $(PROJECT_ROOT)/make/rules.mk
|