From a796260a6b9929f6aca844b4a788a2f55ef60d4b Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 27 Oct 2006 21:48:06 +0000 Subject: 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 --- firmware/decompressor/Makefile | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'firmware/decompressor') 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 $(