mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -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,9 +1,15 @@
|
|||
# __________ __ ___.
|
||||
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
# \/ \/ \/ \/ \/
|
||||
|
||||
#change for releases
|
||||
ifndef APPVERSION
|
||||
APPVERSION=`../../tools/version.sh ../../`
|
||||
APPVERSION=$(shell ../../tools/version.sh ../../)
|
||||
endif
|
||||
|
||||
TARGET_DIR ?= $(shell pwd)/
|
||||
# We use the UCL code available in the Rockbox tools/ directory
|
||||
CFLAGS=-I../../tools/ucl/include -Wall -DVERSION=\"$(APPVERSION)\"
|
||||
|
||||
|
|
@ -37,10 +43,10 @@ endif
|
|||
all: $(OUTPUT)
|
||||
|
||||
# additional link dependencies for the standalone executable
|
||||
LIBUCL=../../tools/ucl/src/libucl$(RBARCH).a
|
||||
LIBUCL=$(OBJDIR)libucl$(RBARCH).a
|
||||
|
||||
$(LIBUCL):
|
||||
$(MAKE) -C ../../tools/ucl/src $(TARGET_DIR)libucl$(RBARCH).a
|
||||
$(SILENT)$(MAKE) -C ../../tools/ucl/src TARGET_DIR=$(OBJDIR) libucl$(RBARCH).a
|
||||
|
||||
# inputs
|
||||
LIBSOURCES := dualboot.c md5.c mkamsboot.c
|
||||
|
|
@ -58,9 +64,11 @@ $(OBJDIR)%.o: %.c
|
|||
$(SILENT)mkdir -p $(dir $@)
|
||||
$(SILENT)$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
libmkamsboot$(RBARCH).a: $(LIBOBJS)
|
||||
@echo AR $@
|
||||
$(SILENT)$(AR) rucs $(TARGET_DIR)$@ $^
|
||||
libmkamsboot$(RBARCH).a: $(TARGET_DIR)libmkamsboot$(RBARCH).a
|
||||
|
||||
$(TARGET_DIR)libmkamsboot$(RBARCH).a: $(LIBOBJS)
|
||||
@echo AR $(notdir $@)
|
||||
$(SILENT)$(AR) rucs $@ $^
|
||||
|
||||
# building the standalone executable
|
||||
$(OUTPUT): $(OBJS) $(EXTRADEPS)
|
||||
|
|
@ -74,7 +82,7 @@ $(TARGET_DIR)libmkamsbooti386.a:
|
|||
|
||||
$(TARGET_DIR)libmkamsbootppc.a:
|
||||
make RBARCH=ppc TARGET_DIR=$(TARGET_DIR) libmkamsbootppc.a
|
||||
endif
|
||||
endif
|
||||
|
||||
libmkamsboot-universal: $(TARGET_DIR)libmkamsbooti386.a $(TARGET_DIR)libmkamsbootppc.a
|
||||
@echo lipo $(TARGET_DIR)libmkamsboot.a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue