diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-10-27 21:48:06 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-10-27 21:48:06 +0000 |
commit | a796260a6b9929f6aca844b4a788a2f55ef60d4b (patch) | |
tree | 21d3f983c2e618806cf6f160c67f7efd053061f0 /tools | |
parent | 354770088e87c3aa8720f462fe3ac8368d7de5b5 (diff) | |
download | rockbox-a796260a6b9929f6aca844b4a788a2f55ef60d4b.tar.gz rockbox-a796260a6b9929f6aca844b4a788a2f55ef60d4b.zip |
Next step of Makefile tuning: * Use 'make' internal commands for printing messages. Saves build time especially on cygwin. * SILENT variable used in more places. * Bitmap build system uses one Makefille less.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11369 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/configure | 4 | ||||
-rw-r--r-- | tools/make.inc | 7 | ||||
-rw-r--r-- | tools/makebmp.inc | 12 |
3 files changed, 10 insertions, 13 deletions
diff --git a/tools/configure b/tools/configure index 3d457881ad..66636b55b4 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -1355,8 +1355,8 @@ fi | |||
1355 | 1355 | ||
1356 | if test "$simulator" = "yes"; then | 1356 | if test "$simulator" = "yes"; then |
1357 | # add simul make stuff on the #SIMUL# line | 1357 | # add simul make stuff on the #SIMUL# line |
1358 | simmagic1="s,@SIMUL1@,@\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim," | 1358 | simmagic1="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim," |
1359 | simmagic2="s,@SIMUL2@,@\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim," | 1359 | simmagic2="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim," |
1360 | else | 1360 | else |
1361 | # delete the lines that match | 1361 | # delete the lines that match |
1362 | simmagic1='/@SIMUL1@/D' | 1362 | simmagic1='/@SIMUL1@/D' |
diff --git a/tools/make.inc b/tools/make.inc index e2430a2b6b..8d75326bf0 100644 --- a/tools/make.inc +++ b/tools/make.inc | |||
@@ -3,16 +3,15 @@ | |||
3 | ifndef V | 3 | ifndef V |
4 | SILENT=@ | 4 | SILENT=@ |
5 | endif | 5 | endif |
6 | PRINTS=$(info $(1))$(SILENT) | ||
6 | 7 | ||
7 | $(OBJDIR)/%.o: %.c | 8 | $(OBJDIR)/%.o: %.c |
8 | $(SILENT)mkdir -p $(dir $@) | 9 | $(SILENT)mkdir -p $(dir $@) |
9 | @echo "CC $<" | 10 | $(call PRINTS,CC $<)$(CC) $(CFLAGS) -c $< -o $@ |
10 | $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ | ||
11 | 11 | ||
12 | $(OBJDIR)/%.o: %.S | 12 | $(OBJDIR)/%.o: %.S |
13 | $(SILENT)mkdir -p $(dir $@) | 13 | $(SILENT)mkdir -p $(dir $@) |
14 | @echo "CC $<" | 14 | $(call PRINTS,CC $<)$(CC) $(CFLAGS) -c $< -o $@ |
15 | $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ | ||
16 | 15 | ||
17 | # The echo stuff last in the dep update shell magic is to prevent any compiler | 16 | # The echo stuff last in the dep update shell magic is to prevent any compiler |
18 | # errors/warnings to cause an error code to get returned and thus stop the | 17 | # errors/warnings to cause an error code to get returned and thus stop the |
diff --git a/tools/makebmp.inc b/tools/makebmp.inc index 62d3f25b41..9c8c640203 100644 --- a/tools/makebmp.inc +++ b/tools/makebmp.inc | |||
@@ -5,17 +5,16 @@ dep: $(DEPFILE) | |||
5 | ifndef V | 5 | ifndef V |
6 | SILENT=@ | 6 | SILENT=@ |
7 | endif | 7 | endif |
8 | PRINTS=$(info $(1))$(SILENT) | ||
8 | 9 | ||
9 | $(OBJDIR)/%.c: %.bmp | 10 | $(OBJDIR)/%.c: %.bmp |
10 | $(SILENT)mkdir -p $(dir $@) | 11 | $(SILENT)mkdir -p $(dir $@) |
11 | $(SILENT)mkdir -p $(BMPINCDIR) | 12 | $(SILENT)mkdir -p $(BMPINCDIR) |
12 | @echo BMP2RB $< | 13 | $(call PRINTS,BMP2RB $<)$(BMP2RB) -h $(BMPINCDIR) $< > $@ |
13 | $(SILENT)$(BMP2RB) -h $(BMPINCDIR) $< > $@ | ||
14 | 14 | ||
15 | $(OBJDIR)/%.o: $(OBJDIR)/%.c | 15 | $(OBJDIR)/%.o: $(OBJDIR)/%.c |
16 | $(SILENT)mkdir -p $(dir $@) | 16 | $(SILENT)mkdir -p $(dir $@) |
17 | @echo CC $(notdir $<) | 17 | $(call PRINTS,CC $(<F))$(CC) $(CFLAGS) -c $< -o $@ |
18 | $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ | ||
19 | 18 | ||
20 | $(DEPFILE): SOURCES | 19 | $(DEPFILE): SOURCES |
21 | $(SILENT)mkdir -p $(dir $(DEPFILE)) | 20 | $(SILENT)mkdir -p $(dir $(DEPFILE)) |
@@ -30,6 +29,5 @@ $(DEPFILE): SOURCES | |||
30 | done) | 29 | done) |
31 | 30 | ||
32 | $(OUTPUT): $(OBJS) | 31 | $(OUTPUT): $(OBJS) |
33 | @echo "AR+RANLIB $(notdir $@)" | 32 | $(call PRINTS,AR+RANLIB $(@F))$(AR) ruv $@ $+ >/dev/null 2>&1 |
34 | @$(AR) ruv $@ $+ >/dev/null 2>&1 | 33 | $(SILENT)$(RANLIB) $@ |
35 | @$(RANLIB) $@ | ||