mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-03 17:59:16 +00:00
884dba647a
* update makefiles for f3-1 * add f3-1 files * fix mk for f3 * remap OK button * differ gpio invert * expose full duplex spi2 * remove duplicate bq drivers * remove bq inc
28 lines
731 B
Makefile
28 lines
731 B
Makefile
PROJECT_ROOT = $(abspath $(dir $(abspath $(firstword $(MAKEFILE_LIST))))..)
|
|
PROJECT = firmware
|
|
|
|
CFLAGS += -Werror
|
|
CPPFLAGS += -Werror
|
|
|
|
include $(PROJECT_ROOT)/make/base.mk
|
|
include $(PROJECT_ROOT)/assets/assets.mk
|
|
include $(PROJECT_ROOT)/core/core.mk
|
|
include $(PROJECT_ROOT)/make/git.mk
|
|
include $(PROJECT_ROOT)/applications/applications.mk
|
|
include $(PROJECT_ROOT)/lib/lib.mk
|
|
|
|
TARGET ?= f2
|
|
|
|
# TODO temporary for migrating f3.1 to f4
|
|
ifeq ($(TARGET), f4)
|
|
TARGET_DIR = targets/f3
|
|
else
|
|
TARGET_DIR = targets/$(TARGET)
|
|
endif
|
|
|
|
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
|