mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 13:03:13 +00:00
eb2679b982
* add files from f3 * rollback lfs * Move assets from LFS * remove lfs from build Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
26 lines
551 B
Makefile
26 lines
551 B
Makefile
# Compiller
|
|
ifeq ($(TOOLCHAIN), arm)
|
|
PREFIX = arm-none-eabi-
|
|
ifdef GCC_PATH
|
|
PREFIX = $(GCC_PATH)/$(PREFIX)
|
|
endif
|
|
endif
|
|
|
|
CC = $(PREFIX)gcc
|
|
CPP = $(PREFIX)g++
|
|
AS = $(PREFIX)gcc -x assembler-with-cpp
|
|
CP = $(PREFIX)objcopy
|
|
SZ = $(PREFIX)size
|
|
HEX = $(CP) -O ihex
|
|
BIN = $(CP) -O binary -S
|
|
|
|
DEBUG ?= 1
|
|
ifeq ($(DEBUG), 1)
|
|
CFLAGS += -DDEBUG -g
|
|
else
|
|
CFLAGS += -DNDEBUG -Os
|
|
endif
|
|
|
|
CFLAGS += -MMD -MP -MF"$(@:%.o=%.d)"
|
|
CPPFLAGS += -fno-threadsafe-statics
|
|
LDFLAGS += -Wl,-Map=$(OBJ_DIR)/$(PROJECT).map,--cref -Wl,--gc-sections -Wl,--undefined=uxTopUsedPriority
|