diff options
Diffstat (limited to 'apps/plugins/imageviewer/ppm/ppm.make')
-rw-r--r-- | apps/plugins/imageviewer/ppm/ppm.make | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/apps/plugins/imageviewer/ppm/ppm.make b/apps/plugins/imageviewer/ppm/ppm.make new file mode 100644 index 0000000000..e77f282723 --- /dev/null +++ b/apps/plugins/imageviewer/ppm/ppm.make | |||
@@ -0,0 +1,29 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
7 | # $Id$ | ||
8 | # | ||
9 | |||
10 | PPMSRCDIR := $(IMGVSRCDIR)/ppm | ||
11 | PPMBUILDDIR := $(IMGVBUILDDIR)/ppm | ||
12 | |||
13 | PPM_SRC := $(call preprocess, $(PPMSRCDIR)/SOURCES) | ||
14 | PPM_OBJ := $(call c2obj, $(PPM_SRC)) | ||
15 | |||
16 | OTHER_SRC += $(PPM_SRC) | ||
17 | |||
18 | ROCKS += $(PPMBUILDDIR)/ppm.ovl | ||
19 | |||
20 | $(PPMBUILDDIR)/ppm.refmap: $(PPM_OBJ) | ||
21 | $(PPMBUILDDIR)/ppm.link: $(PPM_OBJ) $(PPMBUILDDIR)/ppm.refmap | ||
22 | $(PPMBUILDDIR)/ppm.ovl: $(PPM_OBJ) | ||
23 | |||
24 | PPMFLAGS = $(IMGDECFLAGS) -Os | ||
25 | |||
26 | # Compile PPM plugin with extra flags (adapted from ZXBox) | ||
27 | $(PPMBUILDDIR)/%.o: $(PPMSRCDIR)/%.c $(PPMSRCDIR)/ppm.make | ||
28 | $(SILENT)mkdir -p $(dir $@) | ||
29 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PPMFLAGS) -c $< -o $@ | ||