From 71c62c3e1b0e2c27447a00fef1367bb09edeb338 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Fri, 16 Dec 2011 21:10:25 +0000 Subject: rbspeex, libucl: add rule to build DLL. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31332 a1c6a512-1295-4272-9138-f99709370657 --- tools/rbspeex/Makefile | 6 ++++++ tools/ucl/src/Makefile | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/tools/rbspeex/Makefile b/tools/rbspeex/Makefile index 294a5d57f9..446d658ec8 100644 --- a/tools/rbspeex/Makefile +++ b/tools/rbspeex/Makefile @@ -70,6 +70,12 @@ $(DEPFILE): $(SOURCES) -include $(DEPFILE) +dll: rbspeex.dll +rbspeex.dll: $(OUT)/rbspeex.dll +$(OUT)/rbspeex.dll: $(OBJS) $(OUT)/rbspeex.o + @echo DLL $(notdir $@) + $(SILENT)$(CC) $(CFLAGS) -shared -o $@ $^ -Wl,--output-def,$(OUT)/rbspeex.def + $(OUT)/librbspeex.a: $(OBJS) $(DEPFILE) $(OUT)/rbspeex.o @echo AR $(notdir $@) $(SILENT)$(AR) rucs $@ $+ > /dev/null 2>&1 diff --git a/tools/ucl/src/Makefile b/tools/ucl/src/Makefile index 06399822b4..ab6b6c9c0b 100644 --- a/tools/ucl/src/Makefile +++ b/tools/ucl/src/Makefile @@ -31,6 +31,13 @@ OBJS = $(addprefix $(OBJDIR)/,$(SOURCES:%.c=%.o)) libucl$(RBARCH).a: $(TARGET_DIR)libucl$(RBARCH).a +dll: ucl.dll +ucl.dll: $(TARGET_DIR)ucl.dll +$(TARGET_DIR)ucl.dll: $(OBJS) + @echo DLL $(notdir $@) + $(SILENT)$(CROSS)$(CC) $(CFLAGS) -shared -o $@ $^ \ + -Wl,--output-def,$(TARGET_DIR)ucl.def + $(TARGET_DIR)libucl$(RBARCH).a: $(OBJS) @echo AR $(notdir $@) $(SILENT)$(CROSS)$(AR) rucs $@ $(OBJS) >/dev/null 2>&1 -- cgit v1.2.3