2009-05-07 01:23:13 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
|
|
|
PICTUREFLOW_SRCDIR = $(APPSDIR)/plugins/pictureflow
|
|
|
|
PICTUREFLOW_OBJDIR = $(BUILDDIR)/apps/plugins/pictureflow
|
|
|
|
|
|
|
|
PICTUREFLOW_SRC := $(call preprocess, $(PICTUREFLOW_SRCDIR)/SOURCES)
|
|
|
|
PICTUREFLOW_OBJ := $(call c2obj, $(PICTUREFLOW_SRC))
|
|
|
|
|
|
|
|
OTHER_SRC += $(PICTUREFLOW_SRC)
|
|
|
|
|
2010-07-10 13:49:49 +00:00
|
|
|
ifndef APP_TYPE
|
2009-05-07 01:23:13 +00:00
|
|
|
ROCKS += $(PICTUREFLOW_OBJDIR)/pictureflow.rock
|
|
|
|
else
|
|
|
|
### simulator
|
|
|
|
ROCKS += $(PICTUREFLOW_OBJDIR)/pictureflow.rock
|
|
|
|
endif
|
|
|
|
|
|
|
|
PICTUREFLOWFLAGS = $(filter-out -O%,$(PLUGINFLAGS)) -O2
|
|
|
|
|
|
|
|
$(PICTUREFLOW_OBJDIR)/pictureflow.rock: $(PICTUREFLOW_OBJ)
|
|
|
|
|
|
|
|
$(PICTUREFLOW_OBJDIR)/pictureflow.refmap: $(PICTUREFLOW_OBJ)
|
|
|
|
|
|
|
|
$(PICTUREFLOW_OUTLDS): $(PLUGIN_LDS) $(PICTUREFLOW_OBJDIR)/pictureflow.refmap
|
|
|
|
$(call PRINTS,PP $(@F))$(call preprocess2file,$<,$@,-DOVERLAY_OFFSET=$(shell \
|
|
|
|
$(TOOLSDIR)/ovl_offset.pl $(PICTUREFLOW_OBJDIR)/pictureflow.refmap))
|
|
|
|
|
|
|
|
$(PICTUREFLOW_OBJDIR)/pictureflow.ovl: $(PICTUREFLOW_OBJ) $(PICTUREFLOW_OUTLDS)
|
|
|
|
$(SILENT)$(CC) $(PLUGINFLAGS) -o $(basename $@).elf \
|
|
|
|
$(filter %.o, $^) \
|
|
|
|
$(filter %.a, $+) \
|
|
|
|
-lgcc $(PICTUREFLOW_OVLFLAGS)
|
2012-04-04 19:43:22 +00:00
|
|
|
$(call PRINTS,LD $(@F))$(call objcopy,$(basename $@).elf,$@)
|
2009-05-07 01:23:13 +00:00
|
|
|
|
|
|
|
# special pattern rule for compiling pictureflow with extra flags
|
2010-01-17 13:03:10 +00:00
|
|
|
$(PICTUREFLOW_OBJDIR)/%.o: $(PICTUREFLOW_SRCDIR)/%.c $(PICTUREFLOW_SRCDIR)/pictureflow.make
|
2009-05-07 01:23:13 +00:00
|
|
|
$(SILENT)mkdir -p $(dir $@)
|
|
|
|
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PICTUREFLOWFLAGS) -c $< -o $@
|