diff options
Diffstat (limited to 'apps/Makefile')
-rw-r--r-- | apps/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/Makefile b/apps/Makefile index 2cbb42c0c7..e30cf5bc5c 100644 --- a/apps/Makefile +++ b/apps/Makefile | |||
@@ -7,8 +7,8 @@ | |||
7 | # $Id$ | 7 | # $Id$ |
8 | # | 8 | # |
9 | 9 | ||
10 | # $< is the name to the left of the colon | 10 | # $@ is the name to the left of the colon |
11 | # $@ is the first name to the right of the colon | 11 | # $> is the first name to the right of the colon |
12 | 12 | ||
13 | CC = sh-elf-gcc | 13 | CC = sh-elf-gcc |
14 | LD = sh-elf-ld | 14 | LD = sh-elf-ld |
@@ -90,22 +90,22 @@ $(LINKFILE): $(LDS) | |||
90 | cat $< | $(CC) -DMEMORYSIZE=$(MEM) $(DEFINES) -E -P - >$@ | 90 | cat $< | $(CC) -DMEMORYSIZE=$(MEM) $(DEFINES) -E -P - >$@ |
91 | 91 | ||
92 | $(OBJDIR)/rockbox.elf : $(OBJS) $(LINKFILE) $(OBJDIR)/librockbox.a | 92 | $(OBJDIR)/rockbox.elf : $(OBJS) $(LINKFILE) $(OBJDIR)/librockbox.a |
93 | $(CC) -Os -nostdlib -o $< $(OBJS) -L$(OBJDIR) -lrockbox -lgcc -L$(FIRMWARE) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockbox.map | 93 | $(CC) -Os -nostdlib -o $@ $(OBJS) -L$(OBJDIR) -lrockbox -lgcc -L$(FIRMWARE) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockbox.map |
94 | 94 | ||
95 | $(OBJDIR)/rockbox.bin : $(OBJDIR)/rockbox.elf | 95 | $(OBJDIR)/rockbox.bin : $(OBJDIR)/rockbox.elf |
96 | $(OC) -O binary $@ $< | 96 | $(OC) -O binary $< $@ |
97 | 97 | ||
98 | $(OBJDIR)/rockbox.asm: $(OBJDIR)/rockbox.bin | 98 | $(OBJDIR)/rockbox.asm: $(OBJDIR)/rockbox.bin |
99 | $(TOOLSDIR)/sh2d -sh1 $@ > $< | 99 | $(TOOLSDIR)/sh2d -sh1 $< > $@ |
100 | 100 | ||
101 | $(OBJDIR)/$(OUTNAME) : $(OBJDIR)/rockbox.bin | 101 | $(OBJDIR)/$(OUTNAME) : $(OBJDIR)/rockbox.bin |
102 | $(TOOLSDIR)/scramble $(SCRAMBLE_OPT) $@ $< | 102 | $(TOOLSDIR)/scramble $(SCRAMBLE_OPT) $< $@ |
103 | 103 | ||
104 | $(OBJDIR)/rockbox.ucl: $(OBJDIR)/rockbox.bin | 104 | $(OBJDIR)/rockbox.ucl: $(OBJDIR)/rockbox.bin |
105 | @a=`uclpack -h 2>/dev/null`; \ | 105 | @a=`uclpack -h 2>/dev/null`; \ |
106 | if test -n "$$a"; then \ | 106 | if test -n "$$a"; then \ |
107 | echo "runs uclpack"; \ | 107 | echo "runs uclpack"; \ |
108 | uclpack --best --2e $< $@ >/dev/null 2>&1; \ | 108 | uclpack --best --2e $< $< >/dev/null 2>&1; \ |
109 | else \ | 109 | else \ |
110 | echo "no uclpack command found, makes a fake UCL file"; \ | 110 | echo "no uclpack command found, makes a fake UCL file"; \ |
111 | echo "fake" > $@; \ | 111 | echo "fake" > $@; \ |