From b0c6276b40a53c5ca96474c6f76fa566d81cf1c6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 26 Feb 2003 16:05:30 +0000 Subject: Moved to one single .lds file for ALL builds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3347 a1c6a512-1295-4272-9138-f99709370657 --- apps/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'apps/Makefile') diff --git a/apps/Makefile b/apps/Makefile index 9c2b961a5a..dfd1ae2710 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -31,12 +31,11 @@ ifndef MEM MEM=2 endif +LDS := $(FIRMWARE)/app.lds + ifdef DEBUG DEFINES := -DDEBUG CFLAGS += -g - LDS := $(FIRMWARE)/gdb.lds -else - LDS := $(FIRMWARE)/app.lds endif SRC := $(wildcard *.c) @@ -76,7 +75,7 @@ $(OBJDIR)/librockbox.a: # MEM should be passed on to this makefile with the chosen memory size given # in number of MB $(LINKFILE): $(LDS) - cat $< | $(CC) -DMEMORYSIZE=$(MEM) -E -P - >$@ + cat $< | $(CC) -DMEMORYSIZE=$(MEM) $(DEFINES) -E -P - >$@ $(OBJDIR)/rockbox.elf : $(OBJS) $(LINKFILE) $(OBJDIR)/librockbox.a $(CC) -Os -nostdlib -o $(OBJDIR)/rockbox.elf $(OBJS) -L$(OBJDIR) -lrockbox -lgcc -L$(FIRMWARE) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockbox.map -- cgit v1.2.3