summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-05-09 12:17:24 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-05-09 12:17:24 +0000
commita462b0caa39cf6464108c8269f4c5fc76fde1756 (patch)
treeb7de53cc3013335c7d6051c1e039b84660c95a57
parent714144bf542dd43683c0560d32292a1f1506b357 (diff)
downloadrockbox-a462b0caa39cf6464108c8269f4c5fc76fde1756.tar.gz
rockbox-a462b0caa39cf6464108c8269f4c5fc76fde1756.zip
rebuild the ELF files if the rockbox lib was updated
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6449 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/Makefile b/apps/Makefile
index b8db408a7e..ca2b427155 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -42,6 +42,8 @@ LINKROM = $(OBJDIR)/linkrom.lds
MAXINFILE = $(OBJDIR)/romstart.temp
MAXOUTFILE = $(OBJDIR)/romstart
+LIBROCKBOX = $(BUILDDIR)/librockbox.a
+
ifdef SIMVER
# this is a sim build
COMMONLIB = $(BUILDDIR)/comsim/libcomsim.a
@@ -79,13 +81,13 @@ $(MAXOUTFILE):
@cat $(MAXINFILE) | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - > $(MAXOUTFILE)
@rm $(MAXINFILE)
-$(OBJDIR)/rombox.elf : $(OBJS) $(LINKROM) $(DEPFILE)
+$(OBJDIR)/rombox.elf : $(OBJS) $(LINKROM) $(DEPFILE) $(LIBROCKBOX)
@echo "LD rombox.elf"
@$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lrockbox -lgcc -L$(BUILDDIR)/firmware -T$(LINKROM) -Wl,-Map,$(OBJDIR)/rombox.map
ifndef SIMVER
-$(OBJDIR)/rockbox.elf : $(OBJS) $(LINKFILE) $(DEPFILE)
+$(OBJDIR)/rockbox.elf : $(OBJS) $(LINKFILE) $(DEPFILE) $(LIBROCKBOX)
@echo "LD rockbox.elf"
@$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR)/firmware -L$(BUILDDIR) -lrockbox -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockbox.map