2008-11-20 11:27:31 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
2008-11-25 19:54:23 +00:00
|
|
|
# $Id$
|
2008-11-20 11:27:31 +00:00
|
|
|
#
|
|
|
|
|
2010-01-18 12:46:19 +00:00
|
|
|
JPEGSRCDIR := $(IMGVSRCDIR)/jpeg
|
|
|
|
JPEGBUILDDIR := $(IMGVBUILDDIR)/jpeg
|
2008-11-20 11:27:31 +00:00
|
|
|
|
|
|
|
JPEG_SRC := $(call preprocess, $(JPEGSRCDIR)/SOURCES)
|
|
|
|
JPEG_OBJ := $(call c2obj, $(JPEG_SRC))
|
|
|
|
|
|
|
|
OTHER_SRC += $(JPEG_SRC)
|
|
|
|
|
2010-11-21 13:47:56 +00:00
|
|
|
ROCKS += $(JPEGBUILDDIR)/jpeg.ovl
|
|
|
|
|
|
|
|
$(JPEGBUILDDIR)/jpeg.refmap: $(JPEG_OBJ)
|
|
|
|
$(JPEGBUILDDIR)/jpeg.link: $(PLUGIN_LDS) $(JPEGBUILDDIR)/jpeg.refmap
|
|
|
|
$(JPEGBUILDDIR)/jpeg.ovl: $(JPEG_OBJ)
|
|
|
|
|
|
|
|
# special pattern rule for compiling image decoder with extra flags
|
|
|
|
$(JPEGBUILDDIR)/%.o: $(JPEGSRCDIR)/%.c $(JPEGSRCDIR)/jpeg.make
|
|
|
|
$(SILENT)mkdir -p $(dir $@)
|
|
|
|
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(IMGDECFLAGS) -c $< -o $@
|