diff options
Diffstat (limited to 'apps/plugins/imageviewer/ppm/ppm.make')
-rw-r--r-- | apps/plugins/imageviewer/ppm/ppm.make | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/plugins/imageviewer/ppm/ppm.make b/apps/plugins/imageviewer/ppm/ppm.make index e77f282723..b98ee62832 100644 --- a/apps/plugins/imageviewer/ppm/ppm.make +++ b/apps/plugins/imageviewer/ppm/ppm.make | |||
@@ -18,12 +18,10 @@ OTHER_SRC += $(PPM_SRC) | |||
18 | ROCKS += $(PPMBUILDDIR)/ppm.ovl | 18 | ROCKS += $(PPMBUILDDIR)/ppm.ovl |
19 | 19 | ||
20 | $(PPMBUILDDIR)/ppm.refmap: $(PPM_OBJ) | 20 | $(PPMBUILDDIR)/ppm.refmap: $(PPM_OBJ) |
21 | $(PPMBUILDDIR)/ppm.link: $(PPM_OBJ) $(PPMBUILDDIR)/ppm.refmap | 21 | $(PPMBUILDDIR)/ppm.link: $(PLUGIN_LDS) $(PPMBUILDDIR)/ppm.refmap |
22 | $(PPMBUILDDIR)/ppm.ovl: $(PPM_OBJ) | 22 | $(PPMBUILDDIR)/ppm.ovl: $(PPM_OBJ) |
23 | 23 | ||
24 | PPMFLAGS = $(IMGDECFLAGS) -Os | 24 | # special pattern rule for compiling image decoder with extra flags |
25 | |||
26 | # Compile PPM plugin with extra flags (adapted from ZXBox) | ||
27 | $(PPMBUILDDIR)/%.o: $(PPMSRCDIR)/%.c $(PPMSRCDIR)/ppm.make | 25 | $(PPMBUILDDIR)/%.o: $(PPMSRCDIR)/%.c $(PPMSRCDIR)/ppm.make |
28 | $(SILENT)mkdir -p $(dir $@) | 26 | $(SILENT)mkdir -p $(dir $@) |
29 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PPMFLAGS) -c $< -o $@ | 27 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(IMGDECFLAGS) -c $< -o $@ |