2020-10-07 09:37:43 +00:00
|
|
|
TOOLCHAIN = x86
|
|
|
|
|
|
|
|
# Sources
|
|
|
|
C_SOURCES += $(TARGET_DIR)/Src/main.c
|
|
|
|
C_SOURCES += $(TARGET_DIR)/Src/flipper_hal.c
|
|
|
|
C_SOURCES += $(TARGET_DIR)/Src/lo_os.c
|
|
|
|
C_SOURCES += $(TARGET_DIR)/Src/lo_hal.c
|
|
|
|
|
|
|
|
# CFLAGS += -DFURI_DEBUG
|
|
|
|
CFLAGS += -I$(TARGET_DIR)/Inc
|
|
|
|
CFLAGS += -Wall -fdata-sections -ffunction-sections -pthread
|
|
|
|
LDFLAGS += -pthread
|
|
|
|
|
2020-10-08 14:37:19 +00:00
|
|
|
# FatFs library
|
|
|
|
CFLAGS += -I$(TARGET_DIR)/fatfs
|
|
|
|
C_SOURCES += $(TARGET_DIR)/fatfs/syscall.c
|
|
|
|
|
2020-10-15 17:36:15 +00:00
|
|
|
# memory manager
|
|
|
|
C_SOURCES += $(TARGET_DIR)/Src/heap_4.c
|
|
|
|
|
2020-10-26 07:16:54 +00:00
|
|
|
CFLAGS += -I$(TARGET_DIR)/api-hal
|
|
|
|
C_SOURCES += $(wildcard $(TARGET_DIR)/api-hal/*.c)
|
|
|
|
|
2020-10-07 09:37:43 +00:00
|
|
|
run: all
|
|
|
|
$(OBJ_DIR)/$(PROJECT).elf
|