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
|
|
|
|
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
|
|
|
|
|
|
|
TARGET ?= f2
|
|
|
|
TARGET_DIR = targets/$(TARGET)
|
|
|
|
include $(TARGET_DIR)/target.mk
|
|
|
|
|
2020-10-07 12:37:43 +03:00
|
|
|
include $(PROJECT_ROOT)/make/toolchain.mk
|
|
|
|
include $(PROJECT_ROOT)/make/rules.mk
|