summaryrefslogtreecommitdiff
path: root/tools/makebmp.inc
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2008-11-20 11:27:31 +0000
committerBjörn Stenberg <bjorn@haxx.se>2008-11-20 11:27:31 +0000
commitc6b3d38a156dd624760a8eb1bb374affd43b4f2a (patch)
tree493eba929e2396d86cf4f077709aa09fe172cd35 /tools/makebmp.inc
parentf66c30346783a400a029bedcd60ab67c81c34a07 (diff)
downloadrockbox-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.inc33
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 @@
1all: $(OUTPUT)
2
3dep: $(DEPFILE)
4
5ifndef V
6SILENT=@
7endif
8PRINTS=$(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) $@