summaryrefslogtreecommitdiff
path: root/apps/plugins/Makefile
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-02-16 01:38:22 +0000
committerDave Chapman <dave@dchapman.com>2005-02-16 01:38:22 +0000
commit02eaeafcb67c1caf73aa0e362901c7197a53c561 (patch)
tree99b54e0814445ae984bf1a1dc0a4c7b0aab1a0a0 /apps/plugins/Makefile
parent952d9d0fcf08f23f8735f512aed0179be5528ae7 (diff)
downloadrockbox-02eaeafcb67c1caf73aa0e362901c7197a53c561.zip
rockbox-02eaeafcb67c1caf73aa0e362901c7197a53c561.tar.gz
rockbox-02eaeafcb67c1caf73aa0e362901c7197a53c561.tar.bz2
rockbox-02eaeafcb67c1caf73aa0e362901c7197a53c561.tar.xz
Initial check-in of mpa2wav - a test "viewer" plugin for the iRiver to convert an MPEG audio file (MP1/2/3) into a wav file (currently hard-coded to /libmadtest.wav
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5966 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/Makefile')
-rw-r--r--apps/plugins/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile
index 5d735bf..12126a0 100644
--- a/apps/plugins/Makefile
+++ b/apps/plugins/Makefile
@@ -16,6 +16,10 @@ ifdef APPEXTRA
INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
endif
+ifdef SOFTWARECODECS
+ CODECLIBS = -lmad
+endif
+
LDS := plugin.lds
LINKFILE := $(OBJDIR)/pluginlink.lds
DEPFILE = $(OBJDIR)/dep-plugins
@@ -32,7 +36,7 @@ all: $(OBJDIR)/libplugin.a $(ROCKS) $(DEPFILE)
$(OBJDIR)/%.elf: $(OBJDIR)/%.o $(LINKFILE) $(OBJDIR)/libplugin.a
@echo "LD $@"
- @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $< -L$(OBJDIR) -lplugin -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/$*.map
+ @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $< -L$(OBJDIR) $(CODECLIBS) -lplugin -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/$*.map
$(OBJDIR)/%.rock : $(OBJDIR)/%.elf
@echo "OBJCOPY $<"