summaryrefslogtreecommitdiff
path: root/firmware/decompressor/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/decompressor/Makefile')
-rw-r--r--firmware/decompressor/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/decompressor/Makefile b/firmware/decompressor/Makefile
index 5e4e73912e..263c3111a2 100644
--- a/firmware/decompressor/Makefile
+++ b/firmware/decompressor/Makefile
@@ -22,10 +22,13 @@ $(OBJDIR)/compressed.bin : $(OBJDIR)/compressed.elf
@echo "OBJCOPY "`basename $@`
$(SILENT)$(OC) -O binary $< $@
-$(OBJDIR)/compressed.elf : $(OBJS) $(LINKFILE)
+$(OBJDIR)/compressed.elf : $(LINKFILE)
@echo "LD `basename $@`"
$(SILENT)$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/compressed.map
+$(LDS): $(OBJS)
+
+
$(LINKFILE): $(LDS)
@echo "Build LDS file"
$(SILENT)cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@