2009-05-22 21:58:48 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
|
|
|
PDBOXSRCDIR := $(APPSDIR)/plugins/pdbox
|
|
|
|
PDBOXBUILDDIR := $(BUILDDIR)/apps/plugins/pdbox
|
|
|
|
|
|
|
|
ROCKS += $(PDBOXBUILDDIR)/pdbox.rock
|
|
|
|
|
2009-06-02 20:24:05 +00:00
|
|
|
PDBOX_SRC := $(call preprocess, $(PDBOXSRCDIR)/SOURCES)
|
|
|
|
PDBOX_OBJ := $(call c2obj, $(PDBOX_SRC))
|
2009-05-22 21:58:48 +00:00
|
|
|
|
|
|
|
# add source files to OTHERSRC to get automatic dependencies
|
2009-07-03 22:16:11 +00:00
|
|
|
OTHERSRC += $(PDBOX_SRC)
|
2009-05-22 21:58:48 +00:00
|
|
|
|
2009-06-02 20:24:05 +00:00
|
|
|
$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ)
|
2009-05-22 21:58:48 +00:00
|
|
|
|
|
|
|
PDBOXFLAGS = $(PLUGINFLAGS) \
|
2009-07-03 22:16:11 +00:00
|
|
|
-DFIXEDPOINT -DSTATIC -DPD -DUSEAPI_ROCKBOX \
|
2009-05-22 21:58:48 +00:00
|
|
|
-I$(PDBOXSRCDIR) -I$(PDBOXSRCDIR)/PDa/src \
|
2009-07-23 21:37:35 +00:00
|
|
|
-I$(PDBOXSRCDIR)/TLSF-2.4.4/src
|
2009-05-22 21:58:48 +00:00
|
|
|
|
|
|
|
# Compile PDBox with extra flags (adapted from ZXBox)
|
2009-07-03 22:16:11 +00:00
|
|
|
$(PDBOXBUILDDIR)/%.o: $(PDBOXSRCDIR)/%.c $(PLUGINBITMAPLIB) $(PDBOXSRCDIR)/pdbox.make
|
2009-05-22 21:58:48 +00:00
|
|
|
$(SILENT)mkdir -p $(dir $@)
|
|
|
|
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PDBOXFLAGS) -c $< -o $@
|
|
|
|
|