summaryrefslogtreecommitdiff
path: root/apps/plugins/imageviewer/png/png.make
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-11-21 13:47:56 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-11-21 13:47:56 +0000
commite5b1a7d4237a9006b6c49c9c1c13b292ca4ecf7c (patch)
treef0b9dd1cba0a4ee70afd8b6da64a05286f76c380 /apps/plugins/imageviewer/png/png.make
parenteef21cb18ae4bc7cdf83830554a848e0c733a73d (diff)
downloadrockbox-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/png/png.make')
-rw-r--r--apps/plugins/imageviewer/png/png.make13
1 files changed, 7 insertions, 6 deletions
diff --git a/apps/plugins/imageviewer/png/png.make b/apps/plugins/imageviewer/png/png.make
index 0a7106d2a9..dee89acb71 100644
--- a/apps/plugins/imageviewer/png/png.make
+++ b/apps/plugins/imageviewer/png/png.make
@@ -10,18 +10,19 @@
10PNGSRCDIR := $(IMGVSRCDIR)/png 10PNGSRCDIR := $(IMGVSRCDIR)/png
11PNGBUILDDIR := $(IMGVBUILDDIR)/png 11PNGBUILDDIR := $(IMGVBUILDDIR)/png
12 12
13ROCKS += $(PNGBUILDDIR)/png.rock
14
15PNG_SRC := $(call preprocess, $(PNGSRCDIR)/SOURCES) 13PNG_SRC := $(call preprocess, $(PNGSRCDIR)/SOURCES)
16PNG_OBJ := $(call c2obj, $(PNG_SRC)) 14PNG_OBJ := $(call c2obj, $(PNG_SRC))
17 15
18# add source files to OTHER_SRC to get automatic dependencies
19OTHER_SRC += $(PNG_SRC) 16OTHER_SRC += $(PNG_SRC)
20 17
21# Use -O3 for png plugin : it gives a bigger file but very good performances 18ROCKS += $(PNGBUILDDIR)/png.ovl
22PNGFLAGS = $(PLUGINFLAGS) -Os
23 19
24$(PNGBUILDDIR)/png.rock: $(PNG_OBJ) 20$(PNGBUILDDIR)/png.refmap: $(PNG_OBJ)
21$(PNGBUILDDIR)/png.link: $(PNG_OBJ) $(PNGBUILDDIR)/png.refmap
22$(PNGBUILDDIR)/png.ovl: $(PNG_OBJ)
23
24# Use -O3 for png plugin : it gives a bigger file but very good performances
25PNGFLAGS = $(IMGDECFLAGS) -Os
25 26
26# Compile PNG plugin with extra flags (adapted from ZXBox) 27# Compile PNG plugin with extra flags (adapted from ZXBox)
27$(PNGBUILDDIR)/%.o: $(PNGSRCDIR)/%.c $(PNGSRCDIR)/png.make 28$(PNGBUILDDIR)/%.o: $(PNGSRCDIR)/%.c $(PNGSRCDIR)/png.make