|
|
@ -230,7 +230,7 @@ ASFLAGS = $(ADEFS)
|
|
|
|
# -Wl,...: tell GCC to pass this to linker.
|
|
|
|
# -Wl,...: tell GCC to pass this to linker.
|
|
|
|
# -Map: create map file
|
|
|
|
# -Map: create map file
|
|
|
|
# --cref: add cross reference to map file
|
|
|
|
# --cref: add cross reference to map file
|
|
|
|
LDFLAGS = -Wl,-Map=$(TARGET).map,--cref
|
|
|
|
#LDFLAGS = -Wl,-Map=$(TARGET).map,--cref
|
|
|
|
LDFLAGS += -Wl,--gc-sections --rodata-writable
|
|
|
|
LDFLAGS += -Wl,--gc-sections --rodata-writable
|
|
|
|
LDFLAGS += -Wl,--direct-data
|
|
|
|
LDFLAGS += -Wl,--direct-data
|
|
|
|
#LDFLAGS += -T linker_script.x
|
|
|
|
#LDFLAGS += -T linker_script.x
|
|
|
@ -283,7 +283,7 @@ LST = $(SRC:%.c=$(OBJDIR)/%.lst) $(CPPSRC:%.cpp=$(OBJDIR)/%.lst) $(ASRC:%.S=$(OB
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Compiler flags to generate dependency files.
|
|
|
|
# Compiler flags to generate dependency files.
|
|
|
|
GENDEPFLAGS = -MMD -MP -MF .dep/$(@F).d
|
|
|
|
#GENDEPFLAGS = -MMD -MP -MF .dep/$(@F).d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Combine all necessary flags and optional flags.
|
|
|
|
# Combine all necessary flags and optional flags.
|
|
|
|