mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
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
15
gdb/Makefile
15
gdb/Makefile
|
@ -41,26 +41,21 @@ all: $(BUILDDIR)/$(BINARY) $(FLASHFILE)
|
|||
dep: $(DEPFILE)
|
||||
|
||||
$(LINKFILE): $(LDS)
|
||||
@echo "Build LDS file"
|
||||
@cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@
|
||||
$(call PRINTS,Build $(@F))cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@
|
||||
|
||||
$(OBJDIR)/stub.elf : $(OBJS) $(LINKFILE) $(DEPFILE) $(LIBROCKBOX)
|
||||
@echo "LD stub.elf"
|
||||
@$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -L$(BUILDDIR)/firmware -lrockbox -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/stub.map
|
||||
$(call PRINTS,LD $(@F))$(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
|
||||
@echo "OBJCOPY $<"
|
||||
@$(OC) -O binary $< $@
|
||||
$(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@
|
||||
|
||||
$(BUILDDIR)/$(BINARY) : $(OBJDIR)/stub.bin
|
||||
@echo "Build stub file"
|
||||
$(MKFIRMWARE) $< $@
|
||||
$(call PRINTS,Build stub file)$(MKFIRMWARE) $< $@
|
||||
|
||||
include $(TOOLSDIR)/make.inc
|
||||
|
||||
clean:
|
||||
@echo "cleaning stub"
|
||||
@-rm -f $(OBJS) $(BUILDDIR)/$(BINARY) \
|
||||
$(call PRINTS,cleaning stub)-rm -f $(OBJS) $(BUILDDIR)/$(BINARY) \
|
||||
$(OBJDIR)/stub.bin $(OBJDIR)/stub.elf $(OBJDIR)/*.map \
|
||||
$(LINKFILE) $(DEPFILE)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue