diff options
Diffstat (limited to 'apps/plugins/imageviewer/jpegp/jpegp.make')
-rw-r--r-- | apps/plugins/imageviewer/jpegp/jpegp.make | 32 |
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 | |||
10 | JPEGPSRCDIR := $(IMGVSRCDIR)/jpegp | ||
11 | JPEGPBUILDDIR := $(IMGVBUILDDIR)/jpegp | ||
12 | |||
13 | JPEGP_SRC := $(call preprocess, $(JPEGPSRCDIR)/SOURCES) | ||
14 | JPEGP_OBJ := $(call c2obj, $(JPEGP_SRC)) | ||
15 | |||
16 | OTHER_SRC += $(JPEGP_SRC) | ||
17 | |||
18 | ROCKS += $(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 | |||
24 | JPEGPFLAGS = $(IMGDECFLAGS) | ||
25 | ifndef DEBUG | ||
26 | JPEGPFLAGS += -Os | ||
27 | endif | ||
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 $@ | ||