diff options
Diffstat (limited to 'apps/plugins/imageviewer/png/png.make')
-rw-r--r-- | apps/plugins/imageviewer/png/png.make | 13 |
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 @@ | |||
10 | PNGSRCDIR := $(IMGVSRCDIR)/png | 10 | PNGSRCDIR := $(IMGVSRCDIR)/png |
11 | PNGBUILDDIR := $(IMGVBUILDDIR)/png | 11 | PNGBUILDDIR := $(IMGVBUILDDIR)/png |
12 | 12 | ||
13 | ROCKS += $(PNGBUILDDIR)/png.rock | ||
14 | |||
15 | PNG_SRC := $(call preprocess, $(PNGSRCDIR)/SOURCES) | 13 | PNG_SRC := $(call preprocess, $(PNGSRCDIR)/SOURCES) |
16 | PNG_OBJ := $(call c2obj, $(PNG_SRC)) | 14 | PNG_OBJ := $(call c2obj, $(PNG_SRC)) |
17 | 15 | ||
18 | # add source files to OTHER_SRC to get automatic dependencies | ||
19 | OTHER_SRC += $(PNG_SRC) | 16 | OTHER_SRC += $(PNG_SRC) |
20 | 17 | ||
21 | # Use -O3 for png plugin : it gives a bigger file but very good performances | 18 | ROCKS += $(PNGBUILDDIR)/png.ovl |
22 | PNGFLAGS = $(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 | ||
25 | PNGFLAGS = $(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 |