forked from len0rd/rockbox
Speed up build process in general by using internal functions of make instead of spawning sub-shells where possible.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11307 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5db8081822
commit
0cc8b7113c
14 changed files with 60 additions and 57 deletions
|
@ -40,12 +40,12 @@ all: $(OUTPUT)
|
|||
|
||||
ifndef SIMVER
|
||||
$(OBJDIR)/chessbox.elf: $(OBJS) $(LINKFILE) $(BITMAPLIBS)
|
||||
@echo "LD "`basename $@`
|
||||
@echo "LD $(notdir $@)"
|
||||
@$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \
|
||||
$(LINKBITMAPS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/chessbox.map
|
||||
|
||||
$(OUTPUT): $(OBJDIR)/chessbox.elf
|
||||
@echo "OBJCOPY "`basename $@`
|
||||
@echo "OBJCOPY $(notdir $@)"
|
||||
@$(OC) -O binary $< $@
|
||||
else
|
||||
|
||||
|
@ -87,7 +87,7 @@ DLLTOOLFLAGS = --export-all
|
|||
DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin
|
||||
|
||||
$(OUTPUT): $(OBJS)
|
||||
@echo "DLL "`basename $@`
|
||||
@echo "DLL $(notdir $@)"
|
||||
@$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS)
|
||||
@$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \
|
||||
$(BUILDDIR)/libplugin.a $(BITMAPLIBS) -o $@
|
||||
|
@ -108,7 +108,7 @@ include $(TOOLSDIR)/make.inc
|
|||
# MEMORYSIZE should be passed on to this makefile with the chosen memory size
|
||||
# given in number of MB
|
||||
$(LINKFILE): $(LDS)
|
||||
@echo "build "`basename $@`
|
||||
@echo "build $(notdir $@)"
|
||||
@cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \
|
||||
$(DEFINES) -E -P - >$@
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue