summaryrefslogtreecommitdiffstats
path: root/apps/plugins/mikmod/mikmod.make
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2010-12-12 15:03:30 +0000
committerFrank Gevaerts <frank@gevaerts.be>2010-12-12 15:03:30 +0000
commit26f2bfde03420edad4de1f22cb3d515dc063b20d (patch)
tree4a8c4abaf4795f38da70a4657c1a0fb3ba9debeb /apps/plugins/mikmod/mikmod.make
parentd192bdf11e06e50645ecb5726658d4b691480a9a (diff)
downloadrockbox-26f2bfde03420edad4de1f22cb3d515dc063b20d.tar.gz
rockbox-26f2bfde03420edad4de1f22cb3d515dc063b20d.tar.bz2
rockbox-26f2bfde03420edad4de1f22cb3d515dc063b20d.zip
Add MikMod plugin, ported by Jason Yu, with some minor work by Craig Mann and William Peters (FS#8806)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28810 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mikmod/mikmod.make')
-rw-r--r--apps/plugins/mikmod/mikmod.make33
1 files changed, 33 insertions, 0 deletions
diff --git a/apps/plugins/mikmod/mikmod.make b/apps/plugins/mikmod/mikmod.make
new file mode 100644
index 0000000000..112c25dda1
--- /dev/null
+++ b/apps/plugins/mikmod/mikmod.make
@@ -0,0 +1,33 @@
+# __________ __ ___.
+# Open \______ \ ____ ____ | | _\_ |__ _______ ___
+# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+# \/ \/ \/ \/ \/
+# $Id: Makefile 19082 2008-11-10 23:54:24Z zagor $
+#
+
+MIKMODSRCDIR := $(APPSDIR)/plugins/mikmod
+MIKMODBUILDDIR := $(BUILDDIR)/apps/plugins/mikmod
+
+ROCKS += $(MIKMODBUILDDIR)/mikmod.rock
+
+MIKMOD_SRC := $(call preprocess, $(MIKMODSRCDIR)/SOURCES)
+MIKMOD_OBJ := $(call c2obj, $(MIKMOD_SRC))
+
+# add source files to OTHER_SRC to get automatic dependencies
+OTHER_SRC += $(MIKMOD_SRC)
+
+MIKMODCFLAGS = $(PLUGINFLAGS) -I$(MIKMODSRCDIR) -w
+ifeq ($(CPU),coldfire)
+ MIKMODCFLAGS += -O0
+else
+ MIKMODCFLAGS += -O2
+endif
+
+$(MIKMODBUILDDIR)/mikmod.rock: $(MIKMOD_OBJ) $(CODECDIR)/libtlsf.a
+
+# new rule needed to use extra compile flags
+$(MIKMODBUILDDIR)/%.o: $(MIKMODSRCDIR)/%.c
+ $(SILENT)mkdir -p $(dir $@)
+ $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(MIKMODCFLAGS) -c $< -o $@