summaryrefslogtreecommitdiff
path: root/apps/plugins/imageviewer/ppm/ppm.make
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/imageviewer/ppm/ppm.make')
-rw-r--r--apps/plugins/imageviewer/ppm/ppm.make29
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
10PPMSRCDIR := $(IMGVSRCDIR)/ppm
11PPMBUILDDIR := $(IMGVBUILDDIR)/ppm
12
13PPM_SRC := $(call preprocess, $(PPMSRCDIR)/SOURCES)
14PPM_OBJ := $(call c2obj, $(PPM_SRC))
15
16OTHER_SRC += $(PPM_SRC)
17
18ROCKS += $(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
24PPMFLAGS = $(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 $@