summaryrefslogtreecommitdiff
path: root/apps/plugins/Makefile
diff options
context:
space:
mode:
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 5d735bfe56..12126a0d3d 100644
--- a/apps/plugins/Makefile
+++ b/apps/plugins/Makefile
@@ -16,6 +16,10 @@ ifdef APPEXTRA
16 INCLUDES += -I$(APPSDIR)/$(APPEXTRA) 16 INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
17endif 17endif
18 18
19ifdef SOFTWARECODECS
20 CODECLIBS = -lmad
21endif
22
19LDS := plugin.lds 23LDS := plugin.lds
20LINKFILE := $(OBJDIR)/pluginlink.lds 24LINKFILE := $(OBJDIR)/pluginlink.lds
21DEPFILE = $(OBJDIR)/dep-plugins 25DEPFILE = $(OBJDIR)/dep-plugins
@@ -32,7 +36,7 @@ all: $(OBJDIR)/libplugin.a $(ROCKS) $(DEPFILE)
32 36
33$(OBJDIR)/%.elf: $(OBJDIR)/%.o $(LINKFILE) $(OBJDIR)/libplugin.a 37$(OBJDIR)/%.elf: $(OBJDIR)/%.o $(LINKFILE) $(OBJDIR)/libplugin.a
34 @echo "LD $@" 38 @echo "LD $@"
35 @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $< -L$(OBJDIR) -lplugin -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/$*.map 39 @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $< -L$(OBJDIR) $(CODECLIBS) -lplugin -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/$*.map
36 40
37$(OBJDIR)/%.rock : $(OBJDIR)/%.elf 41$(OBJDIR)/%.rock : $(OBJDIR)/%.elf
38 @echo "OBJCOPY $<" 42 @echo "OBJCOPY $<"