From 63911551405d4f30ebb4ea5c9a672994925f8786 Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 28 Jan 2011 08:21:24 -0800 Subject: Having debug symbols in. --- target-rules.mk | 6 +++--- 1 file 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) -- cgit v1.2.3