diff options
-rw-r--r-- | apps/codecs/libwmapro/libwmapro.make | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/codecs/libwmapro/libwmapro.make b/apps/codecs/libwmapro/libwmapro.make index 9177eafb20..e54f8db71c 100644 --- a/apps/codecs/libwmapro/libwmapro.make +++ b/apps/codecs/libwmapro/libwmapro.make @@ -16,3 +16,15 @@ OTHER_SRC += $(WMAPROLIB_SRC) $(WMAPROLIB): $(WMAPROLIB_OBJ) $(SILENT)$(shell rm -f $@) $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null + +WMAPROFLAGS = -I$(APPSDIR)/codecs/libwmapro $(filter-out -O%,$(CODECFLAGS)) + +ifeq ($(CPU),coldfire) + WMAPROFLAGS += -O2 +else + WMAPROFLAGS += -O1 +endif + +$(CODECDIR)/libwmapro/%.o: $(ROOTDIR)/apps/codecs/libwmapro/%.c + $(SILENT)mkdir -p $(dir $@) + $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(WMAPROFLAGS) -c $< -o $@ |