622be891b3
* return proper error code when image is too large. * check return value of read() properly. * display progressbar. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29090 a1c6a512-1295-4272-9138-f99709370657
27 lines
986 B
Makefile
27 lines
986 B
Makefile
# __________ __ ___.
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
# \/ \/ \/ \/ \/
|
|
# $Id$
|
|
#
|
|
|
|
PPMSRCDIR := $(IMGVSRCDIR)/ppm
|
|
PPMBUILDDIR := $(IMGVBUILDDIR)/ppm
|
|
|
|
PPM_SRC := $(call preprocess, $(PPMSRCDIR)/SOURCES)
|
|
PPM_OBJ := $(call c2obj, $(PPM_SRC))
|
|
|
|
OTHER_SRC += $(PPM_SRC)
|
|
|
|
ROCKS += $(PPMBUILDDIR)/ppm.ovl
|
|
|
|
$(PPMBUILDDIR)/ppm.refmap: $(PPM_OBJ)
|
|
$(PPMBUILDDIR)/ppm.link: $(PLUGIN_LDS) $(PPMBUILDDIR)/ppm.refmap
|
|
$(PPMBUILDDIR)/ppm.ovl: $(PPM_OBJ)
|
|
|
|
# special pattern rule for compiling image decoder with extra flags
|
|
$(PPMBUILDDIR)/%.o: $(PPMSRCDIR)/%.c $(PPMSRCDIR)/ppm.make
|
|
$(SILENT)mkdir -p $(dir $@)
|
|
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(IMGDECFLAGS) -c $< -o $@
|