2011-01-09 13:22:54 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# 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)
|
2011-01-19 12:51:57 +00:00
|
|
|
$(PPMBUILDDIR)/ppm.link: $(PLUGIN_LDS) $(PPMBUILDDIR)/ppm.refmap
|
2011-01-09 13:22:54 +00:00
|
|
|
$(PPMBUILDDIR)/ppm.ovl: $(PPM_OBJ)
|
|
|
|
|
2011-01-19 12:51:57 +00:00
|
|
|
# special pattern rule for compiling image decoder with extra flags
|
2011-01-09 13:22:54 +00:00
|
|
|
$(PPMBUILDDIR)/%.o: $(PPMSRCDIR)/%.c $(PPMSRCDIR)/ppm.make
|
|
|
|
$(SILENT)mkdir -p $(dir $@)
|
2011-01-19 12:51:57 +00:00
|
|
|
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(IMGDECFLAGS) -c $< -o $@
|