diff options
Diffstat (limited to 'apps/plugins/Makefile')
-rw-r--r-- | apps/plugins/Makefile | 6 |
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) |
17 | endif | 17 | endif |
18 | 18 | ||
19 | ifdef SOFTWARECODECS | ||
20 | CODECLIBS = -lmad | ||
21 | endif | ||
22 | |||
19 | LDS := plugin.lds | 23 | LDS := plugin.lds |
20 | LINKFILE := $(OBJDIR)/pluginlink.lds | 24 | LINKFILE := $(OBJDIR)/pluginlink.lds |
21 | DEPFILE = $(OBJDIR)/dep-plugins | 25 | DEPFILE = $(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 $<" |