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-06-02 20:24:05 +00:00
|
|
|
OTHER_SRC += $(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) \
|
|
|
|
-DFIXEDPOINT -DSTATIC -DPD \
|
|
|
|
-I$(PDBOXSRCDIR) -I$(PDBOXSRCDIR)/PDa/src \
|
|
|
|
-DBMALLOC -I$(PDBOXSRCDIR)/dbestfit-3.3
|
|
|
|
|
|
|
|
# Compile PDBox with extra flags (adapted from ZXBox)
|
2009-06-02 20:24:05 +00:00
|
|
|
$(PDBOXBUILDDIR)/%.o: $(PDBOXSRCDIR)/%.c $(PDBOXSRCDIR)/pdbox.h $(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 $@
|
|
|
|
|