88656a522e
Change-Id: Id529858f902aa7ffd3a63e4e335db2ac3c411430
30 lines
1 KiB
Makefile
30 lines
1 KiB
Makefile
# __________ __ ___.
|
|
# 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
|
|
|
|
$(GIFBUILDDIR)/gif.refmap: $(GIF_OBJ) $(TLSFLIB)
|
|
$(GIFBUILDDIR)/gif.link: $(PLUGIN_LDS) $(GIFBUILDDIR)/gif.refmap
|
|
$(GIFBUILDDIR)/gif.ovl: $(GIF_OBJ) $(TLSFLIB)
|
|
|
|
#-Os breaks decoder - dunno why
|
|
GIFFLAGS = $(IMGDECFLAGS) -O2
|
|
|
|
# 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 $@
|