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