This commit is contained in:
sdes1
2026-01-27 16:38:04 +01:00
parent 559860f969
commit e0c1ce3e07
12 changed files with 52901 additions and 20 deletions

View File

@@ -25,12 +25,11 @@ OUT_DIR = ./out
TARGET := $(APP)_$(ARCH)_core$(CORE)
TARGET_DIR := $(SRC_DIR)/APP/$(APP)/$(ARCH)/core$(CORE)/
$(info TARGET_DIR : ${TARGET_DIR})
OBJ_DIR = ./$(OUT_DIR)/$(TARGET)
# Load specific config for compiler, linker, ...
include $(TARGET_DIR)/build/config.mk
-include $(TARGET_DIR)/build/config.mk
#Output files: elf, map and list-file
EXECUTABLE=$(OBJ_DIR)/../$(TARGET).elf
@@ -43,13 +42,11 @@ LDSCRIPT = -T$(TARGET_DIR)/linker/lscript.ld
endif
#Include source-files:
$(info TARGET_DIR : ${TARGET_DIR})
INC = -I.
include $(TARGET_DIR)/build/includes.mk
SRC =
include $(TARGET_DIR)/build/sources.mk
-include $(TARGET_DIR)/build/sources.mk
INC = -I./
-include $(TARGET_DIR)/build/includes.mk
# C source files
CFILES = $(filter %.c, $(SRC))
@@ -63,7 +60,7 @@ OBJ = $(SOBJ) $(COBJ)
$(info CFILES : ${CFILES})
# Flags
CFLAGS = $(MCFLAGS) $(DEBUG) $(OPTIMIZE) -MP -MMD -std=gnu11
CFLAGS = $(MCFLAGS) $(DEBUG) $(OPTIMIZE) -MP -MMD -std=gnu11 -DGT_CPU_CYCLE_SCALE=1.33
ASFLAGS = $(MCFLAGS) $(DEBUG) $(OPTIMIZE) -MP -MMD -x assembler-with-cpp
ODFLAGS = --source --all-headers --demangle --line-numbers --wide