Adapted more Makefiles to the more efficient info printing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11390 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5421e86969
commit
f40f0debcb
4 changed files with 27 additions and 45 deletions
|
@ -30,15 +30,13 @@ DIRS =
|
||||||
all: $(OUTPUT)
|
all: $(OUTPUT)
|
||||||
|
|
||||||
$(OUTPUT): $(OBJS)
|
$(OUTPUT): $(OBJS)
|
||||||
@echo "AR+RANLIB $(notdir $@)"
|
$(call PRINTS,AR+RANLIB $(@F))$(AR) ruv $@ $+ >/dev/null 2>&1
|
||||||
@$(AR) ruv $@ $+ >/dev/null 2>&1
|
$(SILENT)$(RANLIB) $@
|
||||||
@$(RANLIB) $@
|
|
||||||
|
|
||||||
include $(TOOLSDIR)/make.inc
|
include $(TOOLSDIR)/make.inc
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo "cleaning libwavpack"
|
$(call PRINTS,cleaning libwavpack)rm -f $(OBJS) $(OUTPUT) $(DEPFILE)
|
||||||
@rm -f $(OBJS) $(OUTPUT) $(DEPFILE)
|
|
||||||
|
|
||||||
ifneq ($(MAKECMDGOALS),clean)
|
ifneq ($(MAKECMDGOALS),clean)
|
||||||
-include $(DEPFILE)
|
-include $(DEPFILE)
|
||||||
|
|
|
@ -50,35 +50,30 @@ endif
|
||||||
dep: $(DEPFILE)
|
dep: $(DEPFILE)
|
||||||
|
|
||||||
$(LINKFILE): $(LDS)
|
$(LINKFILE): $(LDS)
|
||||||
@echo "Build LDS file"
|
$(call PRINTS,Build $(@F))cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@
|
||||||
@cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@
|
|
||||||
|
|
||||||
$(MAXOUTFILE):
|
$(MAXOUTFILE):
|
||||||
@echo '#include "config.h"' > $(MAXINFILE)
|
$(SILENT)echo '#include "config.h"' > $(MAXINFILE)
|
||||||
@echo "ROM_START" >> $(MAXINFILE)
|
$(SILENT)echo "ROM_START" >> $(MAXINFILE)
|
||||||
@cat $(MAXINFILE) | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - > $(MAXOUTFILE)
|
$(SILENT)cat $(MAXINFILE) | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - > $(MAXOUTFILE)
|
||||||
@rm $(MAXINFILE)
|
$(SILENT)rm $(MAXINFILE)
|
||||||
|
|
||||||
$(OBJDIR)/bootloader.elf : $(OBJS) $(LINKFILE) $(DEPFILE) $(LIBROCKBOX)
|
$(OBJDIR)/bootloader.elf : $(OBJS) $(LINKFILE) $(DEPFILE) $(LIBROCKBOX)
|
||||||
@echo "LD bootloader.elf"
|
$(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -L$(BUILDDIR)/firmware -lrockbox -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/bootloader.map
|
||||||
$(SILENT)$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -L$(BUILDDIR)/firmware -lrockbox -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/bootloader.map
|
|
||||||
|
|
||||||
$(OBJDIR)/bootloader.bin : $(OBJDIR)/bootloader.elf
|
$(OBJDIR)/bootloader.bin : $(OBJDIR)/bootloader.elf
|
||||||
@echo "OBJCOPY $<"
|
$(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@
|
||||||
$(SILENT)$(OC) -O binary $< $@
|
|
||||||
|
|
||||||
$(OBJDIR)/bootloader.asm: $(OBJDIR)/bootloader.bin
|
$(OBJDIR)/bootloader.asm: $(OBJDIR)/bootloader.bin
|
||||||
$(TOOLSDIR)/sh2d -sh1 $< > $@
|
$(TOOLSDIR)/sh2d -sh1 $< > $@
|
||||||
|
|
||||||
$(BUILDDIR)/$(BINARY) : $(OBJDIR)/bootloader.bin
|
$(BUILDDIR)/$(BINARY) : $(OBJDIR)/bootloader.bin
|
||||||
@echo "Build bootloader file"
|
$(call PRINTS,Build bootloader file)$(MKFIRMWARE) $< $@
|
||||||
$(SILENT)$(MKFIRMWARE) $< $@
|
|
||||||
|
|
||||||
include $(TOOLSDIR)/make.inc
|
include $(TOOLSDIR)/make.inc
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo "cleaning bootloader"
|
$(call PRINTS,cleaning bootloader)-rm -f $(OBJS) $(BUILDDIR)/$(BINARY) $(OBJDIR)/bootloader.asm \
|
||||||
@-rm -f $(OBJS) $(BUILDDIR)/$(BINARY) $(OBJDIR)/bootloader.asm \
|
|
||||||
$(OBJDIR)/bootloader.bin $(OBJDIR)/bootloader.elf $(OBJDIR)/*.map \
|
$(OBJDIR)/bootloader.bin $(OBJDIR)/bootloader.elf $(OBJDIR)/*.map \
|
||||||
$(LINKFILE) $(MAXOUTFILE) $(DEPFILE)
|
$(LINKFILE) $(MAXOUTFILE) $(DEPFILE)
|
||||||
|
|
||||||
|
|
|
@ -42,39 +42,33 @@ all: $(BUILDDIR)/$(BINARY) $(FLASHFILE)
|
||||||
dep: $(DEPFILE)
|
dep: $(DEPFILE)
|
||||||
|
|
||||||
$(LINKFILE): $(LDS)
|
$(LINKFILE): $(LDS)
|
||||||
@echo "Build LDS file"
|
$(call PRINTS,Build $(@F))cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@
|
||||||
@cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@
|
|
||||||
|
|
||||||
$(MAXOUTFILE):
|
$(MAXOUTFILE):
|
||||||
@echo '#include "config.h"' > $(MAXINFILE)
|
$(SILENT)echo '#include "config.h"' > $(MAXINFILE)
|
||||||
@echo "ROM_START" >> $(MAXINFILE)
|
$(SILENT)echo "ROM_START" >> $(MAXINFILE)
|
||||||
@cat $(MAXINFILE) | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - > $(MAXOUTFILE)
|
$(SILENT)cat $(MAXINFILE) | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - > $(MAXOUTFILE)
|
||||||
@rm $(MAXINFILE)
|
$(SILENT)rm $(MAXINFILE)
|
||||||
|
|
||||||
$(OBJDIR)/bootbox.elf : $(OBJS) $(LINKFILE) $(DEPFILE) $(LIBROCKBOX)
|
$(OBJDIR)/bootbox.elf : $(OBJS) $(LINKFILE) $(DEPFILE) $(LIBROCKBOX)
|
||||||
@echo "LD bootbox.elf"
|
$(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Wl,--gc-sections -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -L$(BUILDDIR)/firmware -lrockbox -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/bootbox.map
|
||||||
$(CC) $(GCCOPTS) -Wl,--gc-sections -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -L$(BUILDDIR)/firmware -lrockbox -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/bootbox.map
|
|
||||||
|
|
||||||
$(OBJDIR)/bootbox.bin : $(OBJDIR)/bootbox.elf
|
$(OBJDIR)/bootbox.bin : $(OBJDIR)/bootbox.elf
|
||||||
@echo "OBJCOPY $<"
|
$(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@
|
||||||
@$(OC) -O binary $< $@
|
|
||||||
|
|
||||||
$(OBJDIR)/bootbox.asm: $(OBJDIR)/bootbox.bin
|
$(OBJDIR)/bootbox.asm: $(OBJDIR)/bootbox.bin
|
||||||
$(TOOLSDIR)/sh2d -sh1 $< > $@
|
$(TOOLSDIR)/sh2d -sh1 $< > $@
|
||||||
|
|
||||||
$(BUILDDIR)/$(BINARY) : $(OBJDIR)/bootbox.bin
|
$(BUILDDIR)/$(BINARY) : $(OBJDIR)/bootbox.bin
|
||||||
@echo "Build bootbox file"
|
$(call PRINTS,Build bootbox file)$(MKFIRMWARE) $< $@
|
||||||
@$(MKFIRMWARE) $< $@
|
|
||||||
|
|
||||||
$(FLASHFILE): $(OBJDIR)/bootbox.bin
|
$(FLASHFILE): $(OBJDIR)/bootbox.bin
|
||||||
$(SILENT)(echo "UCLPACK bootbox" ; \
|
$(call PRINTS,UCLPACK bootbox)$(TOOLSDIR)/uclpack --best --2e $< $@ >/dev/null 2>&1;
|
||||||
$(TOOLSDIR)/uclpack --best --2e $< $@ >/dev/null 2>&1;)
|
|
||||||
|
|
||||||
include $(TOOLSDIR)/make.inc
|
include $(TOOLSDIR)/make.inc
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo "cleaning bootbox"
|
$(call PRINTS,cleaning bootbox)-rm -f $(OBJS) $(BUILDDIR)/$(BINARY) $(OBJDIR)/bootbox.asm $(OBJDIR)/rockbox.ucl \
|
||||||
@-rm -f $(OBJS) $(BUILDDIR)/$(BINARY) $(OBJDIR)/bootbox.asm $(OBJDIR)/rockbox.ucl \
|
|
||||||
$(OBJDIR)/bootbox.bin $(OBJDIR)/bootbox.elf $(OBJDIR)/*.map \
|
$(OBJDIR)/bootbox.bin $(OBJDIR)/bootbox.elf $(OBJDIR)/*.map \
|
||||||
$(LINKFILE) $(MAXOUTFILE) $(DEPFILE) $(FLASHFILE)
|
$(LINKFILE) $(MAXOUTFILE) $(DEPFILE) $(FLASHFILE)
|
||||||
|
|
||||||
|
|
15
gdb/Makefile
15
gdb/Makefile
|
@ -41,26 +41,21 @@ all: $(BUILDDIR)/$(BINARY) $(FLASHFILE)
|
||||||
dep: $(DEPFILE)
|
dep: $(DEPFILE)
|
||||||
|
|
||||||
$(LINKFILE): $(LDS)
|
$(LINKFILE): $(LDS)
|
||||||
@echo "Build LDS file"
|
$(call PRINTS,Build $(@F))cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@
|
||||||
@cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@
|
|
||||||
|
|
||||||
$(OBJDIR)/stub.elf : $(OBJS) $(LINKFILE) $(DEPFILE) $(LIBROCKBOX)
|
$(OBJDIR)/stub.elf : $(OBJS) $(LINKFILE) $(DEPFILE) $(LIBROCKBOX)
|
||||||
@echo "LD stub.elf"
|
$(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -L$(BUILDDIR)/firmware -lrockbox -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/stub.map
|
||||||
@$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -L$(BUILDDIR)/firmware -lrockbox -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/stub.map
|
|
||||||
|
|
||||||
$(OBJDIR)/stub.bin : $(OBJDIR)/stub.elf
|
$(OBJDIR)/stub.bin : $(OBJDIR)/stub.elf
|
||||||
@echo "OBJCOPY $<"
|
$(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@
|
||||||
@$(OC) -O binary $< $@
|
|
||||||
|
|
||||||
$(BUILDDIR)/$(BINARY) : $(OBJDIR)/stub.bin
|
$(BUILDDIR)/$(BINARY) : $(OBJDIR)/stub.bin
|
||||||
@echo "Build stub file"
|
$(call PRINTS,Build stub file)$(MKFIRMWARE) $< $@
|
||||||
$(MKFIRMWARE) $< $@
|
|
||||||
|
|
||||||
include $(TOOLSDIR)/make.inc
|
include $(TOOLSDIR)/make.inc
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo "cleaning stub"
|
$(call PRINTS,cleaning stub)-rm -f $(OBJS) $(BUILDDIR)/$(BINARY) \
|
||||||
@-rm -f $(OBJS) $(BUILDDIR)/$(BINARY) \
|
|
||||||
$(OBJDIR)/stub.bin $(OBJDIR)/stub.elf $(OBJDIR)/*.map \
|
$(OBJDIR)/stub.bin $(OBJDIR)/stub.elf $(OBJDIR)/*.map \
|
||||||
$(LINKFILE) $(DEPFILE)
|
$(LINKFILE) $(DEPFILE)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue