From 102c3742487dba76ec72d5f56a2c3041344b2d68 Mon Sep 17 00:00:00 2001 From: Sebastian Leonhardt Date: Fri, 8 Jan 2016 01:05:36 +0100 Subject: added xrick game original xrick code by 'BigOrno' at: http://www.bigorno.net/xrick/ Rockbox port, plus bugfixes at: https://github.com/pierluigi-vicinanza/xrick Further changes: * Additonal fixes from g#3026 * Port to modern plugin API * Add Pluginlib keymap fallback * Support all >1bpp screens * Fix build warnings in miniz * Better error message when resources are missing Change-Id: Id83928bc2539901b0221692f65cbca41389c58e7 --- apps/plugins/xrick/xrick.make | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 apps/plugins/xrick/xrick.make (limited to 'apps/plugins/xrick/xrick.make') diff --git a/apps/plugins/xrick/xrick.make b/apps/plugins/xrick/xrick.make new file mode 100644 index 0000000000..26406a957d --- /dev/null +++ b/apps/plugins/xrick/xrick.make @@ -0,0 +1,31 @@ +# __________ __ ___. +# Open \______ \ ____ ____ | | _\_ |__ _______ ___ +# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / +# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < +# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ +# \/ \/ \/ \/ \/ +# $Id$ +# + +XRICKSRCDIR := $(APPSDIR)/plugins/xrick +XRICKBUILDDIR := $(BUILDDIR)/apps/plugins/xrick + +INCLUDES += -I$(XRICKSRCDIR)../ \ + -I$(XRICKSRCDIR)/3rd_party + +ROCKS += $(XRICKBUILDDIR)/xrick.rock + +XRICK_SRC := $(call preprocess, $(XRICKSRCDIR)/SOURCES) +XRICK_OBJ := $(call c2obj, $(XRICK_SRC)) + +# add source files to OTHER_SRC to get automatic dependencies +OTHER_SRC += $(XRICK_SRC) + +XRICKCFLAGS = $(PLUGINFLAGS) -std=gnu99 -O2 + +$(XRICKBUILDDIR)/xrick.rock: $(XRICK_OBJ) + +# new rule needed to use extra compile flags +$(XRICKBUILDDIR)/%.o: $(XRICKSRCDIR)/%.c + $(SILENT)mkdir -p $(dir $@) + $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(XRICKCFLAGS) -c $< -o $@ -- cgit v1.2.3