summaryrefslogtreecommitdiff
path: root/apps/bitmaps
diff options
context:
space:
mode:
Diffstat (limited to 'apps/bitmaps')
-rw-r--r--apps/bitmaps/bitmaps.make51
-rw-r--r--apps/bitmaps/mono/Makefile32
-rw-r--r--apps/bitmaps/native/Makefile32
-rw-r--r--apps/bitmaps/remote_mono/Makefile32
-rw-r--r--apps/bitmaps/remote_native/Makefile32
5 files changed, 51 insertions, 128 deletions
diff --git a/apps/bitmaps/bitmaps.make b/apps/bitmaps/bitmaps.make
new file mode 100644
index 0000000000..8d0054532e
--- /dev/null
+++ b/apps/bitmaps/bitmaps.make
@@ -0,0 +1,51 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id: Makefile 19082 2008-11-10 23:54:24Z zagor $
8#
9
10BITMAPDIR = $(ROOTDIR)/apps/bitmaps
11BMPINCDIR = $(BUILDDIR)/bitmaps
12
13INCLUDES += -I$(BMPINCDIR)
14
15ifneq ($(strip $(BMP2RB_MONO)),)
16BMP = $(call preprocess, $(BITMAPDIR)/mono/SOURCES)
17endif
18ifneq ($(strip $(BMP2RB_NATIVE)),)
19BMP += $(call preprocess, $(BITMAPDIR)/native/SOURCES)
20endif
21ifneq ($(strip $(BMP2RB_REMOTEMONO)),)
22BMP += $(call preprocess, $(BITMAPDIR)/remote_mono/SOURCES)
23endif
24ifneq ($(strip $(BMP2RB_REMOTENATIVE)),)
25BMP += $(call preprocess, $(BITMAPDIR)/remote_native/SOURCES)
26endif
27
28BMPOBJ = $(BMP:$(ROOTDIR)/%.bmp=$(BUILDDIR)/%.o)
29
30BMPHFILES = $(BMPINCDIR)/usblogo.h $(BMPINCDIR)/remote_usblogo.h \
31 $(BMPINCDIR)/default_icons.h $(BMPINCDIR)/remote_default_icons.h \
32 $(BMPINCDIR)/rockboxlogo.h $(BMPINCDIR)/remote_rockboxlogo.h
33
34$(BMPHFILES): $(BMPOBJ)
35
36# pattern rules to create .c files from .bmp, one for each subdir:
37$(BUILDDIR)/apps/bitmaps/mono/%.c: $(ROOTDIR)/apps/bitmaps/mono/%.bmp $(TOOLSDIR)/bmp2rb
38 $(SILENT)mkdir -p $(dir $@) $(BMPINCDIR)
39 $(call PRINTS,BMP2RB $(<F))$(BMP2RB_MONO) -h $(BMPINCDIR) $< > $@
40
41$(BUILDDIR)/apps/bitmaps/native/%.c: $(ROOTDIR)/apps/bitmaps/native/%.bmp $(TOOLSDIR)/bmp2rb
42 $(SILENT)mkdir -p $(dir $@) $(BMPINCDIR)
43 $(call PRINTS,BMP2RB $(<F))$(BMP2RB_NATIVE) -h $(BMPINCDIR) $< > $@
44
45$(BUILDDIR)/apps/bitmaps/remote_mono/%.c: $(ROOTDIR)/apps/bitmaps/remote_mono/%.bmp $(TOOLSDIR)/bmp2rb
46 $(SILENT)mkdir -p $(dir $@) $(BMPINCDIR)
47 $(call PRINTS,BMP2RB $(<F))$(BMP2RB_REMOTEMONO) -h $(BMPINCDIR) $< > $@
48
49$(BUILDDIR)/apps/bitmaps/remote_native/%.c: $(ROOTDIR)/apps/bitmaps/remote_native/%.bmp $(TOOLSDIR)/bmp2rb
50 $(SILENT)mkdir -p $(dir $@) $(BMPINCDIR)
51 $(call PRINTS,BMP2RB $(<F))$(BMP2RB_REMOTENATIVE) -h $(BMPINCDIR) $< > $@
diff --git a/apps/bitmaps/mono/Makefile b/apps/bitmaps/mono/Makefile
deleted file mode 100644
index 28893e914d..0000000000
--- a/apps/bitmaps/mono/Makefile
+++ /dev/null
@@ -1,32 +0,0 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id$
8#
9
10INCLUDES= -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I. -I$(BUILDDIR) \
11 -I$(OBJDIR)
12CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES)
13
14# This sets up 'SRC' based on the files mentioned in SOURCES
15include $(TOOLSDIR)/makesrc.inc
16
17SOURCES = $(SRC)
18CSRC := $(SRC:%.bmp=$(OBJDIR)/%.c)
19OBJS := $(CSRC:%.c=%.o)
20DEPFILE = $(OBJDIR)/dep-bitmaps-mono
21
22BMP2RB = $(BMP2RB_MONO)
23OUTPUT = $(BUILDDIR)/libbitmapsmono.a
24BMPINCDIR = $(BUILDDIR)/bitmaps
25
26include $(TOOLSDIR)/makebmp.inc
27
28clean:
29 $(call PRINTS,cleaning bitmaps/mono)rm -f $(CSRC) $(OBJS) $(OUTPUT) $(DEPFILE)
30 $(SILENT)rmdir $(OBJDIR)
31
32-include $(DEPFILE)
diff --git a/apps/bitmaps/native/Makefile b/apps/bitmaps/native/Makefile
deleted file mode 100644
index 96f7e50a56..0000000000
--- a/apps/bitmaps/native/Makefile
+++ /dev/null
@@ -1,32 +0,0 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id$
8#
9
10INCLUDES= -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I. -I$(BUILDDIR) \
11 -I$(OBJDIR)
12CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES)
13
14# This sets up 'SRC' based on the files mentioned in SOURCES
15include $(TOOLSDIR)/makesrc.inc
16
17SOURCES = $(SRC)
18CSRC := $(SRC:%.bmp=$(OBJDIR)/%.c)
19OBJS := $(CSRC:%.c=%.o)
20DEPFILE = $(OBJDIR)/dep-bitmaps-native
21
22BMP2RB = $(BMP2RB_NATIVE)
23OUTPUT = $(BUILDDIR)/libbitmapsnative.a
24BMPINCDIR = $(BUILDDIR)/bitmaps
25
26include $(TOOLSDIR)/makebmp.inc
27
28clean:
29 $(call PRINTS,cleaning bitmaps/native)rm -f $(CSRC) $(OBJS) $(OUTPUT) $(DEPFILE)
30 $(SILENT)rmdir $(OBJDIR)
31
32-include $(DEPFILE)
diff --git a/apps/bitmaps/remote_mono/Makefile b/apps/bitmaps/remote_mono/Makefile
deleted file mode 100644
index db707c7542..0000000000
--- a/apps/bitmaps/remote_mono/Makefile
+++ /dev/null
@@ -1,32 +0,0 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id$
8#
9
10INCLUDES= -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I. -I$(BUILDDIR) \
11 -I$(OBJDIR)
12CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES)
13
14# This sets up 'SRC' based on the files mentioned in SOURCES
15include $(TOOLSDIR)/makesrc.inc
16
17SOURCES = $(SRC)
18CSRC := $(SRC:%.bmp=$(OBJDIR)/%.c)
19OBJS := $(CSRC:%.c=%.o)
20DEPFILE = $(OBJDIR)/dep-bitmaps-remotemono
21
22BMP2RB = $(BMP2RB_REMOTEMONO)
23OUTPUT = $(BUILDDIR)/libbitmapsremotemono.a
24BMPINCDIR = $(BUILDDIR)/bitmaps
25
26include $(TOOLSDIR)/makebmp.inc
27
28clean:
29 $(call PRINTS,cleaning bitmaps/remotemono)rm -f $(CSRC) $(OBJS) $(OUTPUT) $(DEPFILE)
30 $(SILENT)rmdir $(OBJDIR)
31
32-include $(DEPFILE)
diff --git a/apps/bitmaps/remote_native/Makefile b/apps/bitmaps/remote_native/Makefile
deleted file mode 100644
index 03eccfd5ce..0000000000
--- a/apps/bitmaps/remote_native/Makefile
+++ /dev/null
@@ -1,32 +0,0 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id$
8#
9
10INCLUDES= -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I. -I$(BUILDDIR) \
11 -I$(OBJDIR)
12CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES)
13
14# This sets up 'SRC' based on the files mentioned in SOURCES
15include $(TOOLSDIR)/makesrc.inc
16
17SOURCES = $(SRC)
18CSRC := $(SRC:%.bmp=$(OBJDIR)/%.c)
19OBJS := $(CSRC:%.c=%.o)
20DEPFILE = $(OBJDIR)/dep-bitmaps-remotenative
21
22BMP2RB = $(BMP2RB_REMOTENATIVE)
23OUTPUT = $(BUILDDIR)/libbitmapsremotenative.a
24BMPINCDIR = $(BUILDDIR)/bitmaps
25
26include $(TOOLSDIR)/makebmp.inc
27
28clean:
29 $(call PRINTS,cleaning bitmaps/remote_native)rm -f $(CSRC) $(OBJS) $(OUTPUT) $(DEPFILE)
30 $(SILENT)rmdir $(OBJDIR)
31
32-include $(DEPFILE)