summaryrefslogtreecommitdiff
path: root/apps/codecs/libwmapro/libwmapro.make
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libwmapro/libwmapro.make')
-rw-r--r--apps/codecs/libwmapro/libwmapro.make10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/codecs/libwmapro/libwmapro.make b/apps/codecs/libwmapro/libwmapro.make
index 9177eafb20..42086a637a 100644
--- a/apps/codecs/libwmapro/libwmapro.make
+++ b/apps/codecs/libwmapro/libwmapro.make
@@ -16,3 +16,13 @@ OTHER_SRC += $(WMAPROLIB_SRC)
$(WMAPROLIB): $(WMAPROLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
+
+ifdef SIMVER
+# wmapro needs libm in the simulator
+$(CODECDIR)/wmapro.codec: $(CODECDIR)/wmapro.o
+ $(call PRINTS,LD $(@F))$(CC) $(CODECFLAGS) -o $(CODECDIR)/wmapro.elf \
+ $(filter %.o, $^) \
+ $(filter %.a, $+) \
+ -lgcc -lm $(CODECLDFLAGS)
+ $(SILENT)cp $(CODECDIR)/wmapro.elf $@
+endif