diff options
author | Teruaki Kawashima <teru@rockbox.org> | 2010-11-21 13:47:56 +0000 |
---|---|---|
committer | Teruaki Kawashima <teru@rockbox.org> | 2010-11-21 13:47:56 +0000 |
commit | e5b1a7d4237a9006b6c49c9c1c13b292ca4ecf7c (patch) | |
tree | f0b9dd1cba0a4ee70afd8b6da64a05286f76c380 /apps/plugins/imageviewer/bmp/bmp.make | |
parent | eef21cb18ae4bc7cdf83830554a848e0c733a73d (diff) | |
download | rockbox-e5b1a7d4237a9006b6c49c9c1c13b292ca4ecf7c.tar.gz rockbox-e5b1a7d4237a9006b6c49c9c1c13b292ca4ecf7c.zip |
FS#6321: Universal Image Viewer
This unifies jpeg viewer, png viewer, and bmp viewer to one plugin, image viewer, so that you can navigate through different image formats.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28626 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/imageviewer/bmp/bmp.make')
-rw-r--r-- | apps/plugins/imageviewer/bmp/bmp.make | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/apps/plugins/imageviewer/bmp/bmp.make b/apps/plugins/imageviewer/bmp/bmp.make index 0582ba3eb3..0947dd6166 100644 --- a/apps/plugins/imageviewer/bmp/bmp.make +++ b/apps/plugins/imageviewer/bmp/bmp.make | |||
@@ -10,12 +10,18 @@ | |||
10 | BMPSRCDIR := $(IMGVSRCDIR)/bmp | 10 | BMPSRCDIR := $(IMGVSRCDIR)/bmp |
11 | BMPBUILDDIR := $(IMGVBUILDDIR)/bmp | 11 | BMPBUILDDIR := $(IMGVBUILDDIR)/bmp |
12 | 12 | ||
13 | ROCKS += $(BMPBUILDDIR)/bmp.rock | ||
14 | |||
15 | BMP_SRC := $(call preprocess, $(BMPSRCDIR)/SOURCES) | 13 | BMP_SRC := $(call preprocess, $(BMPSRCDIR)/SOURCES) |
16 | BMP_OBJ := $(call c2obj, $(BMP_SRC)) | 14 | BMP_OBJ := $(call c2obj, $(BMP_SRC)) |
17 | 15 | ||
18 | # add source files to OTHER_SRC to get automatic dependencies | ||
19 | OTHER_SRC += $(BMP_SRC) | 16 | OTHER_SRC += $(BMP_SRC) |
20 | 17 | ||
21 | $(BMPBUILDDIR)/bmp.rock: $(BMP_OBJ) | 18 | ROCKS += $(BMPBUILDDIR)/bmp.ovl |
19 | |||
20 | $(BMPBUILDDIR)/bmp.refmap: $(BMP_OBJ) | ||
21 | $(BMPBUILDDIR)/bmp.link: $(PLUGIN_LDS) $(BMPBUILDDIR)/bmp.refmap | ||
22 | $(BMPBUILDDIR)/bmp.ovl: $(BMP_OBJ) | ||
23 | |||
24 | # special pattern rule for compiling image decoder with extra flags | ||
25 | $(BMPBUILDDIR)/%.o: $(BMPSRCDIR)/%.c $(BMPSRCDIR)/bmp.make | ||
26 | $(SILENT)mkdir -p $(dir $@) | ||
27 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(IMGDECFLAGS) -c $< -o $@ | ||