1+2
This commit is contained in:
15
Makefile
15
Makefile
@@ -25,11 +25,12 @@ 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
|
||||
@@ -42,16 +43,18 @@ LDSCRIPT = -T$(TARGET_DIR)/linker/lscript.ld
|
||||
endif
|
||||
|
||||
#Include source-files:
|
||||
SRC =
|
||||
-include $(TARGET_DIR)/build/Sources.mk
|
||||
$(info TARGET_DIR : ${TARGET_DIR})
|
||||
INC = -I.
|
||||
include $(TARGET_DIR)/build/includes.mk
|
||||
|
||||
SRC =
|
||||
include $(TARGET_DIR)/build/sources.mk
|
||||
|
||||
INC = -I./
|
||||
-include $(TARGET_DIR)/build/includes.mk
|
||||
|
||||
# C source files
|
||||
CFILES = $(filter %.c, $(SRC))
|
||||
# Assembly source files
|
||||
ASMFILES = $(filter %.s, $(SRC))
|
||||
ASMFILES = $(filter %.S, $(SRC))
|
||||
# Object files
|
||||
COBJ = $(CFILES:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o)
|
||||
SOBJ = $(ASMFILES:$(SRC_DIR)/%.S=$(OBJ_DIR)/%.o)
|
||||
|
||||
Reference in New Issue
Block a user