Use albumart opt in sliding puzzle manual
[kugel-rb.git] / apps / bitmaps / bitmaps.make
blob945ca82ce04f78f970692ea3bd796300b77353cc
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
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)
17 endif
18 ifneq ($(strip $(BMP2RB_NATIVE)),)
19 BMP += $(call preprocess, $(BITMAPDIR)/native/SOURCES)
20 endif
21 ifneq ($(strip $(BMP2RB_REMOTEMONO)),)
22 BMP += $(call preprocess, $(BITMAPDIR)/remote_mono/SOURCES)
23 endif
24 ifneq ($(strip $(BMP2RB_REMOTENATIVE)),)
25 BMP += $(call preprocess, $(BITMAPDIR)/remote_native/SOURCES)
26 endif
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) $< > $@