From 84205025c76b82343f157a4a21addecb72f7252b Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Fri, 16 Dec 2011 21:10:29 +0000 Subject: libtools.make: add rule to build a DLL. This only works for Windows, so you need to use it on Windows or set CROSS accordingly. Update mkamsboot to make mkamsboot.dll build and link against ucl.dll. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31333 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/libtools.make | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'rbutil/libtools.make') diff --git a/rbutil/libtools.make b/rbutil/libtools.make index 1ba0f77f72..227d61b7d4 100644 --- a/rbutil/libtools.make +++ b/rbutil/libtools.make @@ -98,6 +98,16 @@ lib$(OUTPUT)$(RBARCH): $(TARGET_DIR)lib$(OUTPUT)$(RBARCH).a $(TARGET_DIR)lib$(OUTPUT)$(RBARCH).a: $(LIBOBJS) \ $(addprefix $(OBJDIR),$(EXTRALIBOBJS)) +# rules to build a DLL. Only works for W32 as target (i.e. MinGW toolchain) +dll: $(OUTPUT).dll +$(OUTPUT).dll: $(TARGET_DIR)$(OUTPUT).dll +$(TARGET_DIR)$(OUTPUT).dll: $(LIBOBJS) $(addprefix $(OBJDIR),$(EXTRALIBOBJS)) + @echo DLL $(notdir $@) + $(SILENT)mkdir -p $(dir $@) + $(SILENT)$(CROSS)$(CC) $(CFLAGS) -shared -o $@ $^ \ + -Wl,--output-def,$(TARGET_DIR)$(OUTPUT).def + +$(TARGET_DIR)lib$(OUTPUT)$(RBARCH).a: $(LIBOBJS) $(addprefix $(OBJDIR),$(EXTRALIBOBJS)) @echo AR $(notdir $@) $(SILENT)mkdir -p $(dir $@) $(SILENT)$(AR) rucs $@ $^ -- cgit v1.2.3