2012-11-02 12:03:58 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
|
|
|
GIFSRCDIR := $(IMGVSRCDIR)/gif
|
|
|
|
GIFBUILDDIR := $(IMGVBUILDDIR)/gif
|
|
|
|
|
|
|
|
GIF_SRC := $(call preprocess, $(GIFSRCDIR)/SOURCES)
|
|
|
|
GIF_OBJ := $(call c2obj, $(GIF_SRC))
|
|
|
|
|
|
|
|
OTHER_SRC += $(GIF_SRC)
|
|
|
|
|
|
|
|
ROCKS += $(GIFBUILDDIR)/gif.ovl
|
|
|
|
|
2013-02-23 19:51:03 +00:00
|
|
|
$(GIFBUILDDIR)/gif.refmap: $(GIF_OBJ) $(TLSFLIB)
|
2012-11-02 12:03:58 +00:00
|
|
|
$(GIFBUILDDIR)/gif.link: $(PLUGIN_LDS) $(GIFBUILDDIR)/gif.refmap
|
2013-02-23 19:51:03 +00:00
|
|
|
$(GIFBUILDDIR)/gif.ovl: $(GIF_OBJ) $(TLSFLIB)
|
2012-11-02 12:03:58 +00:00
|
|
|
|
|
|
|
#-Os breaks decoder - dunno why
|
2012-11-21 07:30:48 +00:00
|
|
|
GIFFLAGS = $(IMGDECFLAGS) -O2
|
2012-11-02 12:03:58 +00:00
|
|
|
|
|
|
|
# Compile PNG plugin with extra flags (adapted from ZXBox)
|
|
|
|
$(GIFBUILDDIR)/%.o: $(GIFSRCDIR)/%.c $(GIFSRCDIR)/gif.make
|
|
|
|
$(SILENT)mkdir -p $(dir $@)
|
|
|
|
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(GIFFLAGS) -c $< -o $@
|