summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-10-22 00:21:57 +0000
committerJens Arnold <amiconn@rockbox.org>2006-10-22 00:21:57 +0000
commit0cc8b7113c9b33ee752c33d36a2cd593aae42705 (patch)
treeda870e699ac8ec9622d6362fea811257907cf438
parent5db8081822baa446bd1c81ac68b75c04b0919112 (diff)
downloadrockbox-0cc8b7113c9b33ee752c33d36a2cd593aae42705.tar.gz
rockbox-0cc8b7113c9b33ee752c33d36a2cd593aae42705.zip
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
-rw-r--r--apps/Makefile6
-rw-r--r--apps/plugins/Makefile8
-rw-r--r--apps/plugins/chessbox/Makefile8
-rw-r--r--apps/plugins/databox/Makefile8
-rw-r--r--apps/plugins/doom/Makefile13
-rw-r--r--apps/plugins/mpegplayer/Makefile8
-rw-r--r--apps/plugins/pacbox/Makefile8
-rw-r--r--apps/plugins/rockboy/Makefile8
-rw-r--r--apps/plugins/searchengine/Makefile8
-rw-r--r--apps/plugins/sudoku/Makefile8
-rw-r--r--apps/plugins/zxbox/Makefile6
-rw-r--r--firmware/decompressor/Makefile14
-rw-r--r--tools/make.inc6
-rw-r--r--tools/makebmp.inc8
14 files changed, 60 insertions, 57 deletions
diff --git a/apps/Makefile b/apps/Makefile
index 815e061d3c..7396d30372 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -128,11 +128,11 @@ $(OBJDIR)/rockbox.elf : $(OBJS) $(LINKFILE) $(DEPFILE) $(LIBROCKBOX) $(BITMAPLIB
128 @$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR)/firmware -L$(BUILDDIR) -lrockbox $(LINKBITMAPS) -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockbox.map 128 @$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR)/firmware -L$(BUILDDIR) -lrockbox $(LINKBITMAPS) -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockbox.map
129 129
130$(OBJDIR)/rockbox.bin : $(OBJDIR)/rockbox.elf 130$(OBJDIR)/rockbox.bin : $(OBJDIR)/rockbox.elf
131 @echo "OBJCOPY "`basename $@` 131 @echo "OBJCOPY $(notdir $@)"
132 @$(OC) -O binary $< $@ 132 @$(OC) -O binary $< $@
133 133
134$(OBJDIR)/rombox.bin : $(OBJDIR)/rombox.elf 134$(OBJDIR)/rombox.bin : $(OBJDIR)/rombox.elf
135 @echo "OBJCOPY "`basename $@` 135 @echo "OBJCOPY $(notdir $@)"
136 @$(OC) -O binary $< $@ 136 @$(OC) -O binary $< $@
137 137
138$(OBJDIR)/rockbox.asm: $(OBJDIR)/rockbox.bin 138$(OBJDIR)/rockbox.asm: $(OBJDIR)/rockbox.bin
@@ -195,7 +195,7 @@ include $(TOOLSDIR)/make.inc
195 195
196$(OBJDIR)/lang.o: lang/$(LANGUAGE).lang 196$(OBJDIR)/lang.o: lang/$(LANGUAGE).lang
197 @echo "GENLANG" 197 @echo "GENLANG"
198 @mkdir -p `dirname $@` 198 @mkdir -p $(dir $@)
199 $(SILENT)perl -s $(TOOLSDIR)/genlang -p=$(BUILDDIR)/lang -t=$(ARCHOS) $< 199 $(SILENT)perl -s $(TOOLSDIR)/genlang -p=$(BUILDDIR)/lang -t=$(ARCHOS) $<
200 @echo "CC lang.c" 200 @echo "CC lang.c"
201 @$(CC) $(CFLAGS) -c $(BUILDDIR)/lang.c -o $@ 201 @$(CC) $(CFLAGS) -c $(BUILDDIR)/lang.c -o $@
diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile
index b446edf506..c3f718c954 100644
--- a/apps/plugins/Makefile
+++ b/apps/plugins/Makefile
@@ -86,7 +86,7 @@ $(OBJDIR)/%.elf: $(OBJDIR)/%.o $(LINKFILE) $(BUILDDIR)/libplugin.a $(BITMAPLIBS)
86 $(SILENT)$(CC) $(GCCOPTS) -O -nostdlib -o $@ $< -L$(BUILDDIR) $(CODECLIBS) -lplugin $(LINKBITMAPS) -lgcc -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/$*.map 86 $(SILENT)$(CC) $(GCCOPTS) -O -nostdlib -o $@ $< -L$(BUILDDIR) $(CODECLIBS) -lplugin $(LINKBITMAPS) -lgcc -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/$*.map
87 87
88$(OBJDIR)/%.rock : $(OBJDIR)/%.elf 88$(OBJDIR)/%.rock : $(OBJDIR)/%.elf
89 @echo "OBJCOPY "`basename $@` 89 @echo "OBJCOPY $(notdir $@)"
90 $(SILENT)$(OC) -O binary $< $@ 90 $(SILENT)$(OC) -O binary $< $@
91else 91else
92 92
@@ -95,7 +95,7 @@ ifeq ($(SIMVER), x11)
95# This is the X11 simulator version 95# This is the X11 simulator version
96 96
97$(OBJDIR)/%.rock : $(OBJDIR)/%.o $(BUILDDIR)/libplugin.a $(BITMAPLIBS) 97$(OBJDIR)/%.rock : $(OBJDIR)/%.o $(BUILDDIR)/libplugin.a $(BITMAPLIBS)
98 @echo "LD "`basename $@` 98 @echo "LD $(notdir $@)"
99 $(SILENT)$(CC) $(CFLAGS) $(SHARED_FLAG) $< -L$(BUILDDIR) $(CODECLIBS) -lplugin $(LINKBITMAPS) -o $@ 99 $(SILENT)$(CC) $(CFLAGS) $(SHARED_FLAG) $< -L$(BUILDDIR) $(CODECLIBS) -lplugin $(LINKBITMAPS) -o $@
100ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) 100ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN)
101# 'x' must be kept or you'll have "Win32 error 5" 101# 'x' must be kept or you'll have "Win32 error 5"
@@ -111,7 +111,7 @@ ifeq ($(SIMVER), sdl)
111# This is the SDL simulator version 111# This is the SDL simulator version
112 112
113$(OBJDIR)/%.rock : $(OBJDIR)/%.o $(BUILDDIR)/libplugin.a $(BITMAPLIBS) 113$(OBJDIR)/%.rock : $(OBJDIR)/%.o $(BUILDDIR)/libplugin.a $(BITMAPLIBS)
114 @echo "LD "`basename $@` 114 @echo "LD $(notdir $@)"
115 $(SILENT)$(CC) $(CFLAGS) $(SHARED_FLAG) $< -L$(BUILDDIR) $(CODECLIBS) -lplugin $(LINKBITMAPS) -o $@ 115 $(SILENT)$(CC) $(CFLAGS) $(SHARED_FLAG) $< -L$(BUILDDIR) $(CODECLIBS) -lplugin $(LINKBITMAPS) -o $@
116ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) 116ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN)
117# 'x' must be kept or you'll have "Win32 error 5" 117# 'x' must be kept or you'll have "Win32 error 5"
@@ -128,7 +128,7 @@ DLLTOOLFLAGS = --export-all
128DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin 128DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin
129 129
130$(OBJDIR)/%.rock : $(OBJDIR)/%.o $(BUILDDIR)/libplugin.a $(BITMAPLIBS) 130$(OBJDIR)/%.rock : $(OBJDIR)/%.o $(BUILDDIR)/libplugin.a $(BITMAPLIBS)
131 @echo "DLL "`basename $@` 131 @echo "DLL $(notdir $@)"
132 $(SILENT)$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $< 132 $(SILENT)$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $<
133 $(SILENT)$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $< $(BUILDDIR)/libplugin.a $(BITMAPLIBS) \ 133 $(SILENT)$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $< $(BUILDDIR)/libplugin.a $(BITMAPLIBS) \
134 $(patsubst -l%,$(BUILDDIR)/lib%.a,$(CODECLIBS)) -o $@ 134 $(patsubst -l%,$(BUILDDIR)/lib%.a,$(CODECLIBS)) -o $@
diff --git a/apps/plugins/chessbox/Makefile b/apps/plugins/chessbox/Makefile
index b79b0eae70..0389493a96 100644
--- a/apps/plugins/chessbox/Makefile
+++ b/apps/plugins/chessbox/Makefile
@@ -40,12 +40,12 @@ all: $(OUTPUT)
40 40
41ifndef SIMVER 41ifndef SIMVER
42$(OBJDIR)/chessbox.elf: $(OBJS) $(LINKFILE) $(BITMAPLIBS) 42$(OBJDIR)/chessbox.elf: $(OBJS) $(LINKFILE) $(BITMAPLIBS)
43 @echo "LD "`basename $@` 43 @echo "LD $(notdir $@)"
44 @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ 44 @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \
45 $(LINKBITMAPS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/chessbox.map 45 $(LINKBITMAPS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/chessbox.map
46 46
47$(OUTPUT): $(OBJDIR)/chessbox.elf 47$(OUTPUT): $(OBJDIR)/chessbox.elf
48 @echo "OBJCOPY "`basename $@` 48 @echo "OBJCOPY $(notdir $@)"
49 @$(OC) -O binary $< $@ 49 @$(OC) -O binary $< $@
50else 50else
51 51
@@ -87,7 +87,7 @@ DLLTOOLFLAGS = --export-all
87DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin 87DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin
88 88
89$(OUTPUT): $(OBJS) 89$(OUTPUT): $(OBJS)
90 @echo "DLL "`basename $@` 90 @echo "DLL $(notdir $@)"
91 @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS) 91 @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS)
92 @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \ 92 @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \
93 $(BUILDDIR)/libplugin.a $(BITMAPLIBS) -o $@ 93 $(BUILDDIR)/libplugin.a $(BITMAPLIBS) -o $@
@@ -108,7 +108,7 @@ include $(TOOLSDIR)/make.inc
108# MEMORYSIZE should be passed on to this makefile with the chosen memory size 108# MEMORYSIZE should be passed on to this makefile with the chosen memory size
109# given in number of MB 109# given in number of MB
110$(LINKFILE): $(LDS) 110$(LINKFILE): $(LDS)
111 @echo "build "`basename $@` 111 @echo "build $(notdir $@)"
112 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \ 112 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \
113 $(DEFINES) -E -P - >$@ 113 $(DEFINES) -E -P - >$@
114 114
diff --git a/apps/plugins/databox/Makefile b/apps/plugins/databox/Makefile
index e47ae1e839..451f3415b4 100644
--- a/apps/plugins/databox/Makefile
+++ b/apps/plugins/databox/Makefile
@@ -31,12 +31,12 @@ all: $(OUTPUT)
31 31
32ifndef SIMVER 32ifndef SIMVER
33$(OBJDIR)/databox.elf: $(OBJS) $(LINKFILE) 33$(OBJDIR)/databox.elf: $(OBJS) $(LINKFILE)
34 @echo "LD "`basename $@` 34 @echo "LD $(notdir $@)"
35 @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ 35 @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \
36 -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/databox.map 36 -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/databox.map
37 37
38$(OUTPUT): $(OBJDIR)/databox.elf 38$(OUTPUT): $(OBJDIR)/databox.elf
39 @echo "OBJCOPY "`basename $@` 39 @echo "OBJCOPY $(notdir $@)"
40 @$(OC) -O binary $< $@ 40 @$(OC) -O binary $< $@
41else 41else
42 42
@@ -78,7 +78,7 @@ DLLTOOLFLAGS = --export-all
78DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin 78DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin
79 79
80$(OUTPUT): $(OBJS) 80$(OUTPUT): $(OBJS)
81 @echo "DLL "`basename $@` 81 @echo "DLL $(notdir $@)"
82 @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS) 82 @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS)
83 @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \ 83 @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \
84 $(BUILDDIR)/libplugin.a -o $@ 84 $(BUILDDIR)/libplugin.a -o $@
@@ -99,7 +99,7 @@ include $(TOOLSDIR)/make.inc
99# MEMORYSIZE should be passed on to this makefile with the chosen memory size 99# MEMORYSIZE should be passed on to this makefile with the chosen memory size
100# given in number of MB 100# given in number of MB
101$(LINKFILE): $(LDS) 101$(LINKFILE): $(LDS)
102 @echo "build "`basename $@` 102 @echo "build $(notdir $@)"
103 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \ 103 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \
104 $(DEFINES) -E -P - >$@ 104 $(DEFINES) -E -P - >$@
105 105
diff --git a/apps/plugins/doom/Makefile b/apps/plugins/doom/Makefile
index 678e283427..90289099df 100644
--- a/apps/plugins/doom/Makefile
+++ b/apps/plugins/doom/Makefile
@@ -3,7 +3,10 @@
3# $Id$ 3# $Id$
4# 4#
5# $Log$ 5# $Log$
6# Revision 1.6 2006/09/29 20:04:35 barrywardell 6# Revision 1.7 2006/10/22 00:21:56 amiconn
7# Speed up build process in general by using internal functions of make instead of spawning sub-shells where possible.
8#
9# Revision 1.6 2006-09-29 20:04:35 barrywardell
7# Cleaner implementation of the recent OSX simulator build fix. No need to define SHARED_FLAG in each Makefile. Just have configure create it in the root Makefile instead. 10# Cleaner implementation of the recent OSX simulator build fix. No need to define SHARED_FLAG in each Makefile. Just have configure create it in the root Makefile instead.
8# 11#
9# Revision 1.5 2006-09-29 16:15:08 barrywardell 12# Revision 1.5 2006-09-29 16:15:08 barrywardell
@@ -76,12 +79,12 @@ all: $(OUTPUT)
76 79
77ifndef SIMVER 80ifndef SIMVER
78$(OBJDIR)/doom.elf: $(OBJS) $(LINKFILE) 81$(OBJDIR)/doom.elf: $(OBJS) $(LINKFILE)
79 @echo "LD "`basename $@` 82 @echo "LD $(notdir $@)"
80 @$(CC) $(GCCOPTS) $(LDFLAGS) -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc\ 83 @$(CC) $(GCCOPTS) $(LDFLAGS) -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc\
81 -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/doom.map 84 -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/doom.map
82 85
83$(OUTPUT): $(OBJDIR)/doom.elf 86$(OUTPUT): $(OBJDIR)/doom.elf
84 @echo "OBJCOPY "`basename $@` 87 @echo "OBJCOPY $(notdir $@)"
85 @$(OC) -O binary $< $@ 88 @$(OC) -O binary $< $@
86else 89else
87 90
@@ -123,7 +126,7 @@ DLLTOOLFLAGS = --export-all
123DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin 126DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin
124 127
125$(OUTPUT): $(OBJS) 128$(OUTPUT): $(OBJS)
126 @echo "DLL "`basename $@` 129 @echo "DLL $(notdir $@)"
127 @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS) 130 @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS)
128 @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \ 131 @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \
129 $(BUILDDIR)/libplugin.a -o $@ 132 $(BUILDDIR)/libplugin.a -o $@
@@ -144,7 +147,7 @@ include $(TOOLSDIR)/make.inc
144# MEMORYSIZE should be passed on to this makefile with the chosen memory size 147# MEMORYSIZE should be passed on to this makefile with the chosen memory size
145# given in number of MB 148# given in number of MB
146$(LINKFILE): $(LDS) 149$(LINKFILE): $(LDS)
147 @echo "build "`basename $@` 150 @echo "build $(notdir $@)"
148 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) \ 151 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) \
149 -E -P - >$@ 152 -E -P - >$@
150 153
diff --git a/apps/plugins/mpegplayer/Makefile b/apps/plugins/mpegplayer/Makefile
index 215223dafa..61eae88db9 100644
--- a/apps/plugins/mpegplayer/Makefile
+++ b/apps/plugins/mpegplayer/Makefile
@@ -34,12 +34,12 @@ all: $(OUTPUT)
34 34
35ifndef SIMVER 35ifndef SIMVER
36$(OBJDIR)/mpegplayer.elf: $(OBJS) $(LINKFILE) 36$(OBJDIR)/mpegplayer.elf: $(OBJS) $(LINKFILE)
37 @echo "LD "`basename $@` 37 @echo "LD $(notdir $@)"
38 @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ 38 @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \
39 -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/mpegplayer.map 39 -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/mpegplayer.map
40 40
41$(OUTPUT): $(OBJDIR)/mpegplayer.elf 41$(OUTPUT): $(OBJDIR)/mpegplayer.elf
42 @echo "OBJCOPY "`basename $@` 42 @echo "OBJCOPY $(notdir $@)"
43 @$(OC) -O binary $< $@ 43 @$(OC) -O binary $< $@
44else 44else
45 45
@@ -81,7 +81,7 @@ DLLTOOLFLAGS = --export-all
81DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin 81DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin
82 82
83$(OUTPUT): $(OBJS) 83$(OUTPUT): $(OBJS)
84 @echo "DLL "`basename $@` 84 @echo "DLL $(notdir $@)"
85 @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS) 85 @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS)
86 @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \ 86 @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \
87 $(BUILDDIR)/libplugin.a -o $@ 87 $(BUILDDIR)/libplugin.a -o $@
@@ -102,7 +102,7 @@ include $(TOOLSDIR)/make.inc
102# MEMORYSIZE should be passed on to this makefile with the chosen memory size 102# MEMORYSIZE should be passed on to this makefile with the chosen memory size
103# given in number of MB 103# given in number of MB
104$(LINKFILE): $(LDS) 104$(LINKFILE): $(LDS)
105 @echo "build "`basename $@` 105 @echo "build $(notdir $@)"
106 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \ 106 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \
107 $(DEFINES) -E -P - >$@ 107 $(DEFINES) -E -P - >$@
108 108
diff --git a/apps/plugins/pacbox/Makefile b/apps/plugins/pacbox/Makefile
index 174d33f5bb..7af0216a4f 100644
--- a/apps/plugins/pacbox/Makefile
+++ b/apps/plugins/pacbox/Makefile
@@ -34,12 +34,12 @@ all: $(OUTPUT)
34 34
35ifndef SIMVER 35ifndef SIMVER
36$(OBJDIR)/pacbox.elf: $(OBJS) $(LINKFILE) 36$(OBJDIR)/pacbox.elf: $(OBJS) $(LINKFILE)
37 @echo "LD "`basename $@` 37 @echo "LD $(notdir $@)"
38 @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ 38 @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \
39 -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/pacbox.map 39 -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/pacbox.map
40 40
41$(OUTPUT): $(OBJDIR)/pacbox.elf 41$(OUTPUT): $(OBJDIR)/pacbox.elf
42 @echo "OBJCOPY "`basename $@` 42 @echo "OBJCOPY $(notdir $@)"
43 @$(OC) -O binary $< $@ 43 @$(OC) -O binary $< $@
44else 44else
45 45
@@ -81,7 +81,7 @@ DLLTOOLFLAGS = --export-all
81DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin 81DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin
82 82
83$(OUTPUT): $(OBJS) 83$(OUTPUT): $(OBJS)
84 @echo "DLL "`basename $@` 84 @echo "DLL $(notdir $@)"
85 @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS) 85 @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS)
86 @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \ 86 @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \
87 $(BUILDDIR)/libplugin.a -o $@ 87 $(BUILDDIR)/libplugin.a -o $@
@@ -102,7 +102,7 @@ include $(TOOLSDIR)/make.inc
102# MEMORYSIZE should be passed on to this makefile with the chosen memory size 102# MEMORYSIZE should be passed on to this makefile with the chosen memory size
103# given in number of MB 103# given in number of MB
104$(LINKFILE): $(LDS) 104$(LINKFILE): $(LDS)
105 @echo "build "`basename $@` 105 @echo "build $(notdir $@)"
106 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \ 106 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \
107 $(DEFINES) -E -P - >$@ 107 $(DEFINES) -E -P - >$@
108 108
diff --git a/apps/plugins/rockboy/Makefile b/apps/plugins/rockboy/Makefile
index b849c32dcf..b68229429f 100644
--- a/apps/plugins/rockboy/Makefile
+++ b/apps/plugins/rockboy/Makefile
@@ -47,12 +47,12 @@ all: $(OUTPUT)
47 47
48ifndef SIMVER 48ifndef SIMVER
49$(OBJDIR)/rockboy.elf: $(OBJS) $(LINKFILE) 49$(OBJDIR)/rockboy.elf: $(OBJS) $(LINKFILE)
50 @echo "LD "`basename $@` 50 @echo "LD $(notdir $@)"
51 @$(CC) $(GCCOPTS) -O2 -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -fast -lgcc \ 51 @$(CC) $(GCCOPTS) -O2 -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -fast -lgcc \
52 -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockboy.map 52 -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockboy.map
53 53
54$(OUTPUT): $(OBJDIR)/rockboy.elf 54$(OUTPUT): $(OBJDIR)/rockboy.elf
55 @echo "OBJCOPY "`basename $@` 55 @echo "OBJCOPY $(notdir $@)"
56 @$(OC) -O binary $< $@ 56 @$(OC) -O binary $< $@
57else 57else
58 58
@@ -94,7 +94,7 @@ DLLTOOLFLAGS = --export-all
94DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin 94DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin
95 95
96$(OUTPUT): $(OBJS) 96$(OUTPUT): $(OBJS)
97 @echo "DLL "`basename $@` 97 @echo "DLL $(notdir $@)"
98 @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS) 98 @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS)
99 @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \ 99 @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \
100 $(BUILDDIR)/libplugin.a -o $@ 100 $(BUILDDIR)/libplugin.a -o $@
@@ -115,7 +115,7 @@ include $(TOOLSDIR)/make.inc
115# MEMORYSIZE should be passed on to this makefile with the chosen memory size 115# MEMORYSIZE should be passed on to this makefile with the chosen memory size
116# given in number of MB 116# given in number of MB
117$(LINKFILE): $(LDS) 117$(LINKFILE): $(LDS)
118 @echo "build "`basename $@` 118 @echo "build $(notdir $@)"
119 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) \ 119 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) \
120 -E -P - >$@ 120 -E -P - >$@
121 121
diff --git a/apps/plugins/searchengine/Makefile b/apps/plugins/searchengine/Makefile
index bc8f19d136..7b4576802d 100644
--- a/apps/plugins/searchengine/Makefile
+++ b/apps/plugins/searchengine/Makefile
@@ -31,12 +31,12 @@ all: $(OUTPUT)
31 31
32ifndef SIMVER 32ifndef SIMVER
33$(OBJDIR)/searchengine.elf: $(OBJS) $(LINKFILE) 33$(OBJDIR)/searchengine.elf: $(OBJS) $(LINKFILE)
34 @echo "LD "`basename $@` 34 @echo "LD $(notdir $@)"
35 @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ 35 @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \
36 -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/searchengine.map 36 -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/searchengine.map
37 37
38$(OUTPUT): $(OBJDIR)/searchengine.elf 38$(OUTPUT): $(OBJDIR)/searchengine.elf
39 @echo "OBJCOPY "`basename $@` 39 @echo "OBJCOPY $(notdir $@)"
40 @$(OC) -O binary $< $@ 40 @$(OC) -O binary $< $@
41else 41else
42 42
@@ -78,7 +78,7 @@ DLLTOOLFLAGS = --export-all
78DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin 78DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin
79 79
80$(OUTPUT): $(OBJS) 80$(OUTPUT): $(OBJS)
81 @echo "DLL "`basename $@` 81 @echo "DLL $(notdir $@)"
82 @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS) 82 @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS)
83 @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \ 83 @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \
84 $(BUILDDIR)/libplugin.a -o $@ 84 $(BUILDDIR)/libplugin.a -o $@
@@ -99,7 +99,7 @@ include $(TOOLSDIR)/make.inc
99# MEMORYSIZE should be passed on to this makefile with the chosen memory size 99# MEMORYSIZE should be passed on to this makefile with the chosen memory size
100# given in number of MB 100# given in number of MB
101$(LINKFILE): $(LDS) 101$(LINKFILE): $(LDS)
102 @echo "build "`basename $@` 102 @echo "build $(notdir $@)"
103 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \ 103 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \
104 $(DEFINES) -E -P - >$@ 104 $(DEFINES) -E -P - >$@
105 105
diff --git a/apps/plugins/sudoku/Makefile b/apps/plugins/sudoku/Makefile
index eab09fd5b5..a59b7e5383 100644
--- a/apps/plugins/sudoku/Makefile
+++ b/apps/plugins/sudoku/Makefile
@@ -38,12 +38,12 @@ all: $(OUTPUT)
38 38
39ifndef SIMVER 39ifndef SIMVER
40$(OBJDIR)/sudoku.elf: $(OBJS) $(LINKFILE) $(BITMAPLIBS) 40$(OBJDIR)/sudoku.elf: $(OBJS) $(LINKFILE) $(BITMAPLIBS)
41 @echo "LD "`basename $@` 41 @echo "LD $(notdir $@)"
42 @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ 42 @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \
43 $(LINKBITMAPS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/sudoku.map 43 $(LINKBITMAPS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/sudoku.map
44 44
45$(OUTPUT): $(OBJDIR)/sudoku.elf 45$(OUTPUT): $(OBJDIR)/sudoku.elf
46 @echo "OBJCOPY "`basename $@` 46 @echo "OBJCOPY $(notdir $@)"
47 @$(OC) -O binary $< $@ 47 @$(OC) -O binary $< $@
48else 48else
49 49
@@ -85,7 +85,7 @@ DLLTOOLFLAGS = --export-all
85DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin 85DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin
86 86
87$(OUTPUT): $(OBJS) 87$(OUTPUT): $(OBJS)
88 @echo "DLL "`basename $@` 88 @echo "DLL $(notdir $@)"
89 @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS) 89 @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $(OBJS)
90 @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \ 90 @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $(OBJS) \
91 $(BUILDDIR)/libplugin.a $(BITMAPLIBS) -o $@ 91 $(BUILDDIR)/libplugin.a $(BITMAPLIBS) -o $@
@@ -106,7 +106,7 @@ include $(TOOLSDIR)/make.inc
106# MEMORYSIZE should be passed on to this makefile with the chosen memory size 106# MEMORYSIZE should be passed on to this makefile with the chosen memory size
107# given in number of MB 107# given in number of MB
108$(LINKFILE): $(LDS) 108$(LINKFILE): $(LDS)
109 @echo "build "`basename $@` 109 @echo "build $(notdir $@)"
110 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \ 110 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \
111 $(DEFINES) -E -P - >$@ 111 $(DEFINES) -E -P - >$@
112 112
diff --git a/apps/plugins/zxbox/Makefile b/apps/plugins/zxbox/Makefile
index 055bf6e967..14234cd896 100644
--- a/apps/plugins/zxbox/Makefile
+++ b/apps/plugins/zxbox/Makefile
@@ -43,12 +43,12 @@ all: $(OUTPUT)
43 43
44ifndef SIMVER 44ifndef SIMVER
45$(OBJDIR)/zxbox.elf: $(OBJS) $(LINKFILE) 45$(OBJDIR)/zxbox.elf: $(OBJS) $(LINKFILE)
46 @echo "LD "`basename $@` 46 @echo "LD $(notdir $@)"
47 @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ 47 @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \
48 -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/zxbox.map 48 -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/zxbox.map
49 49
50$(OUTPUT): $(OBJDIR)/zxbox.elf 50$(OUTPUT): $(OBJDIR)/zxbox.elf
51 @echo "OBJCOPY "`basename $@` 51 @echo "OBJCOPY $(notdir $@)"
52 @$(OC) -O binary $< $@ 52 @$(OC) -O binary $< $@
53else 53else
54 54
@@ -76,7 +76,7 @@ include $(TOOLSDIR)/make.inc
76# MEMORYSIZE should be passed on to this makefile with the chosen memory size 76# MEMORYSIZE should be passed on to this makefile with the chosen memory size
77# given in number of MB 77# given in number of MB
78$(LINKFILE): $(LDS) 78$(LINKFILE): $(LDS)
79 @echo "build "`basename $@` 79 @echo "build $(notdir $@)"
80 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \ 80 @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) \
81 $(DEFINES) -E -P - >$@ 81 $(DEFINES) -E -P - >$@
82 82
diff --git a/firmware/decompressor/Makefile b/firmware/decompressor/Makefile
index a1f7c410e0..357b855c41 100644
--- a/firmware/decompressor/Makefile
+++ b/firmware/decompressor/Makefile
@@ -19,11 +19,11 @@ CFLAGS = $(GCCOPTS)
19all: $(OBJDIR)/compressed.bin 19all: $(OBJDIR)/compressed.bin
20 20
21$(OBJDIR)/compressed.bin : $(OBJDIR)/compressed.elf 21$(OBJDIR)/compressed.bin : $(OBJDIR)/compressed.elf
22 @echo "OBJCOPY "`basename $@` 22 @echo "OBJCOPY $(notdir $@)"
23 $(SILENT)$(OC) -O binary $< $@ 23 $(SILENT)$(OC) -O binary $< $@
24 24
25$(OBJDIR)/compressed.elf : $(OBJS) $(LINKFILE) 25$(OBJDIR)/compressed.elf : $(OBJS) $(LINKFILE)
26 @echo "LD `basename $@`" 26 @echo "LD $(notdir $@)"
27 $(SILENT)$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/compressed.map 27 $(SILENT)$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/compressed.map
28 28
29$(LDS): $(OBJS) 29$(LDS): $(OBJS)
@@ -34,22 +34,22 @@ $(LINKFILE): $(LDS)
34 $(SILENT)cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@ 34 $(SILENT)cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@
35 35
36$(OBJDIR)/decompressor.o : decompressor.c $(OBJDIR)/uclimage.c 36$(OBJDIR)/decompressor.o : decompressor.c $(OBJDIR)/uclimage.c
37 $(SILENT)mkdir -p `dirname $@` 37 $(SILENT)mkdir -p $(dir $@)
38 @echo "CC $<" 38 @echo "CC $<"
39 $(SILENT)$(CC) $(CFLAGS) -I$(OBJDIR) -c $< -o $@ 39 $(SILENT)$(CC) $(CFLAGS) -I$(OBJDIR) -c $< -o $@
40 40
41$(OBJDIR)/startup.o : startup.S 41$(OBJDIR)/startup.o : startup.S
42 $(SILENT)mkdir -p `dirname $@` 42 $(SILENT)mkdir -p $(dir $@)
43 @echo "AS $<" 43 @echo "AS $<"
44 $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ 44 $(SILENT)$(CC) $(CFLAGS) -c $< -o $@
45 45
46$(OBJDIR)/uclimage.o : $(OBJDIR)/uclimage.c 46$(OBJDIR)/uclimage.o : $(OBJDIR)/uclimage.c
47 $(SILENT)mkdir -p `dirname $@` 47 $(SILENT)mkdir -p $(dir $@)
48 @echo "CC `basename $<`" 48 @echo "CC $(notdir $<)"
49 $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ 49 $(SILENT)$(CC) $(CFLAGS) -c $< -o $@
50 50
51$(OBJDIR)/uclimage.c : $(FLASHFILE) $(TOOLSDIR)/ucl2src.pl 51$(OBJDIR)/uclimage.c : $(FLASHFILE) $(TOOLSDIR)/ucl2src.pl
52 $(SILENT)mkdir -p `dirname $@` 52 $(SILENT)mkdir -p $(dir $@)
53 @echo "UCL2SRC" 53 @echo "UCL2SRC"
54 $(SILENT)perl -s $(TOOLSDIR)/ucl2src.pl -p=$(OBJDIR)/uclimage $< 54 $(SILENT)perl -s $(TOOLSDIR)/ucl2src.pl -p=$(OBJDIR)/uclimage $<
55 55
diff --git a/tools/make.inc b/tools/make.inc
index 344fa23543..e2430a2b6b 100644
--- a/tools/make.inc
+++ b/tools/make.inc
@@ -5,12 +5,12 @@ SILENT=@
5endif 5endif
6 6
7$(OBJDIR)/%.o: %.c 7$(OBJDIR)/%.o: %.c
8 $(SILENT)mkdir -p `dirname $@` 8 $(SILENT)mkdir -p $(dir $@)
9 @echo "CC $<" 9 @echo "CC $<"
10 $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ 10 $(SILENT)$(CC) $(CFLAGS) -c $< -o $@
11 11
12$(OBJDIR)/%.o: %.S 12$(OBJDIR)/%.o: %.S
13 $(SILENT)mkdir -p `dirname $@` 13 $(SILENT)mkdir -p $(dir $@)
14 @echo "CC $<" 14 @echo "CC $<"
15 $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ 15 $(SILENT)$(CC) $(CFLAGS) -c $< -o $@
16 16
@@ -26,7 +26,7 @@ $(OBJDIR)/%.o: %.S
26# without the proper path. 26# without the proper path.
27# 27#
28$(DEPFILE): $(SOURCES) 28$(DEPFILE): $(SOURCES)
29 $(SILENT)mkdir -p `dirname $(DEPFILE)` 29 $(SILENT)mkdir -p $(dir $(DEPFILE))
30 $(SILENT)rm -f $(DEPFILE) 30 $(SILENT)rm -f $(DEPFILE)
31 $(SILENT)(for each in $(SOURCES) x; do \ 31 $(SILENT)(for each in $(SOURCES) x; do \
32 if test "$$each" = "credits.c"; then \ 32 if test "$$each" = "credits.c"; then \
diff --git a/tools/makebmp.inc b/tools/makebmp.inc
index e12a52b3eb..d276732b67 100644
--- a/tools/makebmp.inc
+++ b/tools/makebmp.inc
@@ -7,18 +7,18 @@ SILENT=@
7endif 7endif
8 8
9$(OBJDIR)/%.c: %.bmp 9$(OBJDIR)/%.c: %.bmp
10 $(SILENT)mkdir -p `dirname $@` 10 $(SILENT)mkdir -p $(dir $@)
11 $(SILENT)mkdir -p $(BMPINCDIR) 11 $(SILENT)mkdir -p $(BMPINCDIR)
12 @echo BMP2RB $< 12 @echo BMP2RB $<
13 $(SILENT)$(BMP2RB) -h $(BMPINCDIR) $< > $@ 13 $(SILENT)$(BMP2RB) -h $(BMPINCDIR) $< > $@
14 14
15$(OBJDIR)/%.o: $(OBJDIR)/%.c 15$(OBJDIR)/%.o: $(OBJDIR)/%.c
16 $(SILENT)mkdir -p `dirname $@` 16 $(SILENT)mkdir -p $(dir $@)
17 @echo CC `basename $<` 17 @echo CC $(notdir $<)
18 $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ 18 $(SILENT)$(CC) $(CFLAGS) -c $< -o $@
19 19
20$(DEPFILE): SOURCES 20$(DEPFILE): SOURCES
21 $(SILENT)mkdir -p `dirname $(DEPFILE)` 21 $(SILENT)mkdir -p $(dir $(DEPFILE))
22 $(SILENT)rm -f $(DEPFILE) 22 $(SILENT)rm -f $(DEPFILE)
23 $(SILENT)(for each in $(SOURCES) x; do \ 23 $(SILENT)(for each in $(SOURCES) x; do \
24 if test "x" != "$$each"; then \ 24 if test "x" != "$$each"; then \