mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Prevent unnecessary rebuilding of libs.
- When building for Rockbox Utility the called Makefiles would rebuild the libs every time. Change dependencies a bit to allow make to properly detect if the lib is already up to date. - Remove dependency on output folder in some cases to avoid unnecessary rebuilds. - Add standard Rockbox header to files lacking it. - Make make calls from qmake silent. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30608 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ccc5f4c4e1
commit
c7c657ca92
5 changed files with 66 additions and 47 deletions
|
|
@ -1,3 +1,9 @@
|
|||
# __________ __ ___.
|
||||
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
# \/ \/ \/ \/ \/
|
||||
|
||||
#change for releases
|
||||
ifndef APPVERSION
|
||||
|
|
@ -33,6 +39,7 @@ else
|
|||
OBJDIR = $(TARGET_DIR)build/
|
||||
endif
|
||||
|
||||
TARGET_DIR ?= $(shell pwd)
|
||||
|
||||
all: $(OUTPUT)
|
||||
|
||||
|
|
@ -52,9 +59,11 @@ $(OBJDIR)%.o: %.c
|
|||
$(SILENT)mkdir -p $(dir $@)
|
||||
$(SILENT)$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
libmkmpioboot$(RBARCH).a: $(LIBOBJS)
|
||||
@echo AR $@
|
||||
$(SILENT)$(AR) rucs $(TARGET_DIR)$@ $^
|
||||
libmkmpioboot$(RBARCH).a: $(TARGET_DIR)libmkmpioboot$(RBARCH).a
|
||||
|
||||
$(TARGET_DIR)libmkmpioboot$(RBARCH).a: $(LIBOBJS)
|
||||
@echo AR $(notdir $@)
|
||||
$(SILENT)$(AR) rucs $@ $^
|
||||
|
||||
# building the standalone executable
|
||||
$(OUTPUT): $(OBJS) $(EXTRADEPS)
|
||||
|
|
@ -68,7 +77,7 @@ $(TARGET_DIR)libmkmpiobooti386.a:
|
|||
|
||||
$(TARGET_DIR)libmkmpiobootppc.a:
|
||||
make RBARCH=ppc TARGET_DIR=$(TARGET_DIR) libmkmpiobootppc.a
|
||||
endif
|
||||
endif
|
||||
|
||||
libmkmpioboot-universal: $(TARGET_DIR)libmkmpiobooti386.a $(TARGET_DIR)libmkmpiobootppc.a
|
||||
@echo lipo $(TARGET_DIR)libmkmpioboot.a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue