diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2008-11-21 22:00:35 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2008-11-21 22:00:35 +0000 |
| commit | 5e4a6824bb0ad1829a51e3b2a71a1d1d748eca37 (patch) | |
| tree | 17e890d241a584a9725a25e496ce4cf48f5d7df0 /apps/plugins/chessbox | |
| parent | fea18742a2911c5882f7f98c58be146cc631b68c (diff) | |
| download | rockbox-5e4a6824bb0ad1829a51e3b2a71a1d1d748eca37.zip rockbox-5e4a6824bb0ad1829a51e3b2a71a1d1d748eca37.tar.gz rockbox-5e4a6824bb0ad1829a51e3b2a71a1d1d748eca37.tar.bz2 rockbox-5e4a6824bb0ad1829a51e3b2a71a1d1d748eca37.tar.xz | |
$* doesn't work if the target doesn't use a wildcard. Furthermore the GNU make manual discourages its use. Using works, and automatically ensures the correct directory. zxbox.map and chessbox.map were put into the wrong dir (build dir) and overwrote each other.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19176 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/chessbox')
| -rw-r--r-- | apps/plugins/chessbox/chessbox.make | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/chessbox/chessbox.make b/apps/plugins/chessbox/chessbox.make index d42984c..432f309 100644 --- a/apps/plugins/chessbox/chessbox.make +++ b/apps/plugins/chessbox/chessbox.make @@ -25,7 +25,7 @@ else CHESSBOX_INLDS := $(APPSDIR)/plugins/plugin.lds ROCKS += $(CHESSBOX_OBJDIR)/chessbox.rock endif - CHESSBOX_OVLFLAGS = -T$(CHESSBOX_OUTLDS) -Wl,--gc-sections -Wl,-Map,$*.map + CHESSBOX_OVLFLAGS = -T$(CHESSBOX_OUTLDS) -Wl,--gc-sections -Wl,-Map,$(basename $@).map CHESSBOX_OUTLDS = $(CHESSBOX_OBJDIR)/chessbox.lds else ### simulator @@ -46,11 +46,11 @@ $(CHESSBOX_OUTLDS): $(CHESSBOX_INLDS) $(CHESSBOX_OBJ) $(CHESSBOX_OBJDIR)/chessbox.rock: $(CHESSBOX_OBJ) $(CHESSBOX_OUTLDS) $(PLUGINBITMAPLIB) $(CHESSBOX_OBJDIR)/chessbox.ovl: $(CHESSBOX_OBJ) $(CHESSBOX_OUTLDS) $(PLUGINBITMAPLIB) - $(SILENT)$(CC) $(PLUGINFLAGS) -o $(CHESSBOX_OBJDIR)/$*.elf \ + $(SILENT)$(CC) $(PLUGINFLAGS) -o $(basename $@).elf \ $(filter %.o, $^) \ $(filter %.a, $^) \ -lgcc $(CHESSBOX_OVLFLAGS) - $(call PRINTS,LD $(@F))$(OC) -O binary $(CHESSBOX_OBJDIR)/$*.elf $@ + $(call PRINTS,LD $(@F))$(OC) -O binary $(basename $@).elf $@ # special pattern rule for compiling chessbox with extra flags $(CHESSBOX_OBJDIR)/%.o: $(CHESSBOX_SRCDIR)/%.c $(PLUGINBITMAPLIB) $(CHESSBOX_SRCDIR)/chessbox.make |