From 513389b4c1bc8afe4b2dc9947c534bfeb105e3da Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Fri, 22 May 2009 21:58:48 +0000 Subject: Add FS #10214. Initial commit of the original PDa code for the GSoC Pure Data plugin project of Wincent Balin. Stripped some non-sourcefiles and added a rockbox readme that needs a bit more info from Wincent. Is added to CATEGORIES and viewers, but not yet to SUBDIRS (ie doesn't build yet) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21044 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/pdbox/pdbox.make | 62 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 apps/plugins/pdbox/pdbox.make (limited to 'apps/plugins/pdbox/pdbox.make') diff --git a/apps/plugins/pdbox/pdbox.make b/apps/plugins/pdbox/pdbox.make new file mode 100644 index 0000000..f1b1e7e --- /dev/null +++ b/apps/plugins/pdbox/pdbox.make @@ -0,0 +1,62 @@ +# __________ __ ___. +# Open \______ \ ____ ____ | | _\_ |__ _______ ___ +# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / +# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < +# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ +# \/ \/ \/ \/ \/ +# $Id$ +# + +PDBOXSRCDIR := $(APPSDIR)/plugins/pdbox +PDBOXBUILDDIR := $(BUILDDIR)/apps/plugins/pdbox + +ROCKS += $(PDBOXBUILDDIR)/pdbox.rock + +PDBOXSRC := $(call preprocess, $(PDBOXSRCDIR)/SOURCES) +PDBOXOBJ := $(call c2obj, $(PDBOXSRC)) + +# add source files to OTHERSRC to get automatic dependencies +OTHERSRC += $(PDBOXSRC) + +$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOXOBJ) + +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) +$(PDBOXBUILDDIR)/%.o: $(PDBOXSRCDIR)/%.c $(PDBOXSRCDIR)/pdbox.make + $(SILENT)mkdir -p $(dir $@) + $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PDBOXFLAGS) -c $< -o $@ +# __________ __ ___. +# Open \______ \ ____ ____ | | _\_ |__ _______ ___ +# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / +# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < +# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ +# \/ \/ \/ \/ \/ +# $Id$ +# + +PDBOXSRCDIR := $(APPSDIR)/plugins/pdbox +PDBOXBUILDDIR := $(BUILDDIR)/apps/plugins/pdbox + +ROCKS += $(PDBOXBUILDDIR)/pdbox.rock + +PDBOXSRC := $(call preprocess, $(PDBOXSRCDIR)/SOURCES) +PDBOXOBJ := $(call c2obj, $(PDBOXSRC)) + +# add source files to OTHERSRC to get automatic dependencies +OTHERSRC += $(PDBOXSRC) + +$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOXOBJ) + +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) +$(PDBOXBUILDDIR)/%.o: $(PDBOXSRCDIR)/%.c $(PDBOXSRCDIR)/pdbox.make + $(SILENT)mkdir -p $(dir $@) + $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PDBOXFLAGS) -c $< -o $@ -- cgit v1.1