diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-09-26 20:51:23 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-09-26 20:51:23 +0000 |
commit | c7c657ca9264b1bc7dc313a92e285128fc9ffea3 (patch) | |
tree | f88968ce38fb14c7f458d5f1d1cfff23e93d4a22 /rbutil/mkmpioboot/Makefile | |
parent | ccc5f4c4e1687cd7cf515f26da0f5ab918090736 (diff) | |
download | rockbox-c7c657ca9264b1bc7dc313a92e285128fc9ffea3.tar.gz rockbox-c7c657ca9264b1bc7dc313a92e285128fc9ffea3.zip |
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
Diffstat (limited to 'rbutil/mkmpioboot/Makefile')
-rw-r--r-- | rbutil/mkmpioboot/Makefile | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/rbutil/mkmpioboot/Makefile b/rbutil/mkmpioboot/Makefile index 5e138b6f12..8077bdceb6 100644 --- a/rbutil/mkmpioboot/Makefile +++ b/rbutil/mkmpioboot/Makefile | |||
@@ -1,3 +1,9 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
1 | 7 | ||
2 | #change for releases | 8 | #change for releases |
3 | ifndef APPVERSION | 9 | ifndef APPVERSION |
@@ -33,6 +39,7 @@ else | |||
33 | OBJDIR = $(TARGET_DIR)build/ | 39 | OBJDIR = $(TARGET_DIR)build/ |
34 | endif | 40 | endif |
35 | 41 | ||
42 | TARGET_DIR ?= $(shell pwd) | ||
36 | 43 | ||
37 | all: $(OUTPUT) | 44 | all: $(OUTPUT) |
38 | 45 | ||
@@ -52,9 +59,11 @@ $(OBJDIR)%.o: %.c | |||
52 | $(SILENT)mkdir -p $(dir $@) | 59 | $(SILENT)mkdir -p $(dir $@) |
53 | $(SILENT)$(CC) $(CFLAGS) -c -o $@ $< | 60 | $(SILENT)$(CC) $(CFLAGS) -c -o $@ $< |
54 | 61 | ||
55 | libmkmpioboot$(RBARCH).a: $(LIBOBJS) | 62 | libmkmpioboot$(RBARCH).a: $(TARGET_DIR)libmkmpioboot$(RBARCH).a |
56 | @echo AR $@ | 63 | |
57 | $(SILENT)$(AR) rucs $(TARGET_DIR)$@ $^ | 64 | $(TARGET_DIR)libmkmpioboot$(RBARCH).a: $(LIBOBJS) |
65 | @echo AR $(notdir $@) | ||
66 | $(SILENT)$(AR) rucs $@ $^ | ||
58 | 67 | ||
59 | # building the standalone executable | 68 | # building the standalone executable |
60 | $(OUTPUT): $(OBJS) $(EXTRADEPS) | 69 | $(OUTPUT): $(OBJS) $(EXTRADEPS) |
@@ -68,7 +77,7 @@ $(TARGET_DIR)libmkmpiobooti386.a: | |||
68 | 77 | ||
69 | $(TARGET_DIR)libmkmpiobootppc.a: | 78 | $(TARGET_DIR)libmkmpiobootppc.a: |
70 | make RBARCH=ppc TARGET_DIR=$(TARGET_DIR) libmkmpiobootppc.a | 79 | make RBARCH=ppc TARGET_DIR=$(TARGET_DIR) libmkmpiobootppc.a |
71 | endif | 80 | endif |
72 | 81 | ||
73 | libmkmpioboot-universal: $(TARGET_DIR)libmkmpiobooti386.a $(TARGET_DIR)libmkmpiobootppc.a | 82 | libmkmpioboot-universal: $(TARGET_DIR)libmkmpiobooti386.a $(TARGET_DIR)libmkmpiobootppc.a |
74 | @echo lipo $(TARGET_DIR)libmkmpioboot.a | 83 | @echo lipo $(TARGET_DIR)libmkmpioboot.a |