diff options
author | Björn Stenberg <bjorn@haxx.se> | 2008-11-20 11:27:31 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2008-11-20 11:27:31 +0000 |
commit | c6b3d38a156dd624760a8eb1bb374affd43b4f2a (patch) | |
tree | 493eba929e2396d86cf4f077709aa09fe172cd35 /tools/makebmp.inc | |
parent | f66c30346783a400a029bedcd60ab67c81c34a07 (diff) | |
download | rockbox-c6b3d38a156dd624760a8eb1bb374affd43b4f2a.tar.gz rockbox-c6b3d38a156dd624760a8eb1bb374affd43b4f2a.zip |
New makefile solution: A single invocation of 'make' to build the entire tree. Fully controlled dependencies give faster and more correct recompiles.
Many #include lines adjusted to conform to the new standards.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19146 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/makebmp.inc')
-rw-r--r-- | tools/makebmp.inc | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/tools/makebmp.inc b/tools/makebmp.inc deleted file mode 100644 index 987a21457f..0000000000 --- a/tools/makebmp.inc +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | all: $(OUTPUT) | ||
2 | |||
3 | dep: $(DEPFILE) | ||
4 | |||
5 | ifndef V | ||
6 | SILENT=@ | ||
7 | endif | ||
8 | PRINTS=$(SILENT)$(call info,$(1)) | ||
9 | |||
10 | $(OBJDIR)/%.c: %.bmp | ||
11 | $(SILENT)mkdir -p $(dir $@) | ||
12 | $(SILENT)mkdir -p $(BMPINCDIR) | ||
13 | $(call PRINTS,BMP2RB $<)$(BMP2RB) -h $(BMPINCDIR) $< > $@ | ||
14 | |||
15 | $(OBJDIR)/%.o: $(OBJDIR)/%.c | ||
16 | $(SILENT)mkdir -p $(dir $@) | ||
17 | $(call PRINTS,CC $(<F))$(CC) $(CFLAGS) -c $< -o $@ | ||
18 | |||
19 | $(DEPFILE): SOURCES | ||
20 | $(SILENT)mkdir -p $(dir $(DEPFILE)) | ||
21 | $(SILENT)rm -f $(DEPFILE) | ||
22 | $(SILENT)(for each in $(SOURCES) x; do \ | ||
23 | if test "x" != "$$each"; then \ | ||
24 | src=`echo $$each | sed -e 's/\.bmp/.c/'`; \ | ||
25 | echo $(OBJDIR)/$$src: $$each >> $(DEPFILE) ; \ | ||
26 | obj=`echo $$each | sed -e 's/\.bmp/.o/'`; \ | ||
27 | echo $(OBJDIR)/$$obj: $(OBJDIR)/$$src >> $(DEPFILE) ; \ | ||
28 | fi; \ | ||
29 | done) | ||
30 | |||
31 | $(OUTPUT): $(OBJS) | ||
32 | $(call PRINTS,AR+RANLIB $(@F))$(AR) ruv $@ $+ >/dev/null 2>&1 | ||
33 | $(SILENT)$(RANLIB) $@ | ||