2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 BITMAPDIR
= $(ROOTDIR
)/apps
/bitmaps
11 BMPINCDIR
= $(BUILDDIR
)/bitmaps
13 INCLUDES
+= -I
$(BMPINCDIR
)
15 ifneq ($(strip $(BMP2RB_MONO
)),)
16 BMP
= $(call preprocess
, $(BITMAPDIR
)/mono
/SOURCES
)
18 ifneq ($(strip $(BMP2RB_NATIVE
)),)
19 BMP
+= $(call preprocess
, $(BITMAPDIR
)/native
/SOURCES
)
21 ifneq ($(strip $(BMP2RB_REMOTEMONO
)),)
22 BMP
+= $(call preprocess
, $(BITMAPDIR
)/remote_mono
/SOURCES
)
24 ifneq ($(strip $(BMP2RB_REMOTENATIVE
)),)
25 BMP
+= $(call preprocess
, $(BITMAPDIR
)/remote_native
/SOURCES
)
28 BMPOBJ
= $(BMP
:$(ROOTDIR
)/%.bmp
=$(BUILDDIR
)/%.o
)
30 BMPHFILES
= $(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
34 $(BMPHFILES
): $(BMPOBJ
)
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
) $< > $@
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
) $< > $@
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
) $< > $@
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
) $< > $@