diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2008-02-18 12:17:34 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2008-02-18 12:17:34 +0000 |
| commit | 8ebbe99328248d45f3937c4f15f936d5d36f4a58 (patch) | |
| tree | 58dfa9555171528528912a8cb6109d351ea767eb /tools/make.inc | |
| parent | 43141cbfdb247b7e64bc3d3d5732f43732d59da0 (diff) | |
| download | rockbox-8ebbe99328248d45f3937c4f15f936d5d36f4a58.zip rockbox-8ebbe99328248d45f3937c4f15f936d5d36f4a58.tar.gz rockbox-8ebbe99328248d45f3937c4f15f936d5d36f4a58.tar.bz2 rockbox-8ebbe99328248d45f3937c4f15f936d5d36f4a58.tar.xz | |
FS#8482 take two. Make the language files built first, so that the largest
size can be used as buffer size for languages. Work to this also contributed
by Jonas Haggqvist.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16343 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/make.inc')
| -rw-r--r-- | tools/make.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/make.inc b/tools/make.inc index 8e125c8..d9f4c14 100644 --- a/tools/make.inc +++ b/tools/make.inc @@ -24,6 +24,11 @@ $(OBJDIR)/%.o: %.S # play nicely into this as it then adds a dependency to the lang.h file # without the proper path. # +# The trailing sed hack for a range of files is present because how gcc works +# for generating dependencies when the include file doesn't exist. Then it +# makes the dependency without any path, and that breaks how things work for +# us. We thus add the correct path for a few generated files! +# $(DEPFILE): $(SOURCES) $(SILENT)mkdir -p $(dir $(DEPFILE)) $(SILENT)rm -f $(DEPFILE) @@ -40,7 +45,10 @@ $(DEPFILE): $(SOURCES) rm $$del; \ del=""; \ fi \ - done | sed -e "s:[^[:space:]]*lang.h:$(OBJDIR)/lang.o:" > $(DEPFILE); \ + done | sed -e "s:[^[:space:]]*lang.h:$(OBJDIR)/lang.o:" \ + -e "s:[^[:space:]]*sysfont.h:$(BUILDDIR)/sysfont.h:" \ + -e "s:[^[:space:]]*max_language_size.h:$(BUILDDIR)/max_language_size.h:" \ + > $(DEPFILE); \ echo "oo" > /dev/null ) tags: |