mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-26 23:05:05 +03:00
3671c68b79
* Makefile: enable space optimization with debug, cleanup double includes, explicitly define cpp runtime options * Toolchain: add printf support * Toolchain: explicit standard declaration
23 lines
625 B
Makefile
23 lines
625 B
Makefile
PROJECT_ROOT = $(abspath $(dir $(abspath $(firstword $(MAKEFILE_LIST))))..)
|
|
PROJECT = firmware
|
|
|
|
include $(PROJECT_ROOT)/make/base.mk
|
|
include $(PROJECT_ROOT)/assets/assets.mk
|
|
include $(PROJECT_ROOT)/core/core.mk
|
|
include $(PROJECT_ROOT)/applications/applications.mk
|
|
include $(PROJECT_ROOT)/lib/lib.mk
|
|
|
|
CFLAGS += -Werror -Wno-address-of-packed-member
|
|
CPPFLAGS += -Werror
|
|
|
|
TARGET ?= f5
|
|
|
|
TARGET_DIR = targets/$(TARGET)
|
|
|
|
include $(TARGET_DIR)/target.mk
|
|
CFLAGS += -Itargets/api-hal-include
|
|
|
|
include $(PROJECT_ROOT)/make/git.mk
|
|
include $(PROJECT_ROOT)/make/toolchain.mk
|
|
include $(PROJECT_ROOT)/make/rules.mk
|