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-11-11 09:17:53 +03:00
|
|
|
include $(PROJECT_ROOT)/make/git.mk
|
2020-10-01 02:05:04 +03:00
|
|
|
|
2020-10-07 12:37:43 +03:00
|
|
|
CFLAGS += -Itargets/include
|
|
|
|
ASM_SOURCES += $(wildcard src/*.s)
|
|
|
|
C_SOURCES += $(wildcard src/*.c)
|
|
|
|
CPP_SOURCES += $(wildcard src/*.cpp)
|
2020-10-01 02:05:04 +03:00
|
|
|
|
2020-12-14 19:36:07 +03:00
|
|
|
TARGET ?= f4
|
2020-10-01 02:05:04 +03:00
|
|
|
TARGET_DIR = targets/$(TARGET)
|
|
|
|
include $(TARGET_DIR)/target.mk
|
|
|
|
|
2020-11-06 12:31:06 +03: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
|