diff options
author | Pixel <pixel@nobis-crew.org> | 2011-01-28 08:21:24 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-01-28 08:21:24 -0800 |
commit | 63911551405d4f30ebb4ea5c9a672994925f8786 (patch) | |
tree | 462dafb6b25df02cb238e5eb0a3ace2cbc95cc6f | |
parent | c8a010ba85e8325fdbf7468ef49744ff1f09f213 (diff) |
Having debug symbols in.
-rw-r--r-- | target-rules.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target-rules.mk b/target-rules.mk index e7e3be6..d40f573 100644 --- a/target-rules.mk +++ b/target-rules.mk @@ -1,10 +1,10 @@ %.o: %.c $(E) "[TC] Compiling $<" - $(Q)$(TARGET_CC) -ffunction-sections -Wall -Werror $(addprefix -I, $(TARGET_INCLUDES)) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -c -o $@ $< + $(Q)$(TARGET_CC) -ffunction-sections -Wall -Werror $(addprefix -I, $(TARGET_INCLUDES)) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -g -c -o $@ $< %.o: %.s $(E) "[TS] Compiling $<" - $(Q)$(TARGET_AS) $(addprefix -I, $(TARGET_INCLUDES)) $(TARGET_ASFLAGS) $(TARGET_CPPFLAGS) -c -o $@ $< + $(Q)$(TARGET_AS) $(addprefix -I, $(TARGET_INCLUDES)) $(TARGET_ASFLAGS) $(TARGET_CPPFLAGS) -g -c -o $@ $< TARGET_OBJS = $(addsuffix .o, $(basename $(TARGET_SRCS))) @@ -17,7 +17,7 @@ endif $(TARGET_ELF): $(TARGET_OBJS) $(LIBDEPS) $(LDSCRIPT) $(E) "[TL] Linking $@" - $(Q)$(TARGET_LD) -Wl,--gc-sections -Wl,-O3 -Wl,-Map=$(TARGET_MAP) -o $@ $(TARGET_OBJS) -T$(LDSCRIPT) $(LIBS) + $(Q)$(TARGET_LD) -Wl,--gc-sections -Wl,-O3 -Wl,-Map=$(TARGET_MAP) -o $@ $(TARGET_OBJS) -g -T$(LDSCRIPT) $(LIBS) $(TARGET_MAP): $(TARGET_ELF) |