summaryrefslogtreecommitdiffstats
path: root/firmware/decompressor/Makefile
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-10-27 21:48:06 +0000
committerJens Arnold <amiconn@rockbox.org>2006-10-27 21:48:06 +0000
commita796260a6b9929f6aca844b4a788a2f55ef60d4b (patch)
tree21d3f983c2e618806cf6f160c67f7efd053061f0 /firmware/decompressor/Makefile
parent354770088e87c3aa8720f462fe3ac8368d7de5b5 (diff)
downloadrockbox-a796260a6b9929f6aca844b4a788a2f55ef60d4b.tar.gz
rockbox-a796260a6b9929f6aca844b4a788a2f55ef60d4b.tar.bz2
rockbox-a796260a6b9929f6aca844b4a788a2f55ef60d4b.zip
Next step of Makefile tuning: * Use 'make' internal commands for printing messages. Saves build time especially on cygwin. * SILENT variable used in more places. * Bitmap build system uses one Makefille less.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11369 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/decompressor/Makefile')
-rw-r--r--firmware/decompressor/Makefile22
1 files changed, 8 insertions, 14 deletions
diff --git a/firmware/decompressor/Makefile b/firmware/decompressor/Makefile
index 357b855c41..17ccf6da77 100644
--- a/firmware/decompressor/Makefile
+++ b/firmware/decompressor/Makefile
@@ -10,6 +10,7 @@
ifndef V
SILENT=@
endif
+PRINTS=$(info $(1))$(SILENT)
LDS := link.lds
LINKFILE = $(OBJDIR)/linkage.lds
@@ -19,37 +20,30 @@ CFLAGS = $(GCCOPTS)
all: $(OBJDIR)/compressed.bin
$(OBJDIR)/compressed.bin : $(OBJDIR)/compressed.elf
- @echo "OBJCOPY $(notdir $@)"
- $(SILENT)$(OC) -O binary $< $@
+ $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@
$(OBJDIR)/compressed.elf : $(OBJS) $(LINKFILE)
- @echo "LD $(notdir $@)"
- $(SILENT)$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/compressed.map
+ $(call PRINTS,LD $(@F))$(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) - >$@
+ $(call PRINTS,Build LDS file)cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@
$(OBJDIR)/decompressor.o : decompressor.c $(OBJDIR)/uclimage.c
$(SILENT)mkdir -p $(dir $@)
- @echo "CC $<"
- $(SILENT)$(CC) $(CFLAGS) -I$(OBJDIR) -c $< -o $@
+ $(call PRINTS,CC $<)$(CC) $(CFLAGS) -I$(OBJDIR) -c $< -o $@
$(OBJDIR)/startup.o : startup.S
$(SILENT)mkdir -p $(dir $@)
- @echo "AS $<"
- $(SILENT)$(CC) $(CFLAGS) -c $< -o $@
+ $(call PRINTS,AS $<)$(CC) $(CFLAGS) -c $< -o $@
$(OBJDIR)/uclimage.o : $(OBJDIR)/uclimage.c
$(SILENT)mkdir -p $(dir $@)
- @echo "CC $(notdir $<)"
- $(SILENT)$(CC) $(CFLAGS) -c $< -o $@
+ $(call PRINTS,CC $(<F))$(CC) $(CFLAGS) -c $< -o $@
$(OBJDIR)/uclimage.c : $(FLASHFILE) $(TOOLSDIR)/ucl2src.pl
$(SILENT)mkdir -p $(dir $@)
- @echo "UCL2SRC"
- $(SILENT)perl -s $(TOOLSDIR)/ucl2src.pl -p=$(OBJDIR)/uclimage $<
+ $(call PRINTS,UCL2SRC)perl -s $(TOOLSDIR)/ucl2src.pl -p=$(OBJDIR)/uclimage $<