aboutsummaryrefslogtreecommitdiff
path: root/makefile.after
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-12-25 18:57:08 +0000
committermarha <marha@users.sourceforge.net>2010-12-25 18:57:08 +0000
commita2739af4846f64b875acba066b89e7a61fc6c04c (patch)
treeb67d7a2557bf81c1e5238ba76cfa750034b8b3c0 /makefile.after
parentb5ddffc2611f8966686892baed85291313e1ec82 (diff)
downloadvcxsrv-a2739af4846f64b875acba066b89e7a61fc6c04c.tar.gz
vcxsrv-a2739af4846f64b875acba066b89e7a61fc6c04c.tar.bz2
vcxsrv-a2739af4846f64b875acba066b89e7a61fc6c04c.zip
Added support for generating a share library
Diffstat (limited to 'makefile.after')
-rw-r--r--makefile.after13
1 files changed, 13 insertions, 0 deletions
diff --git a/makefile.after b/makefile.after
index b9f3f7af6..1ee5c0d2e 100644
--- a/makefile.after
+++ b/makefile.after
@@ -21,6 +21,19 @@ $(LIBRARY_DIR) : $(OBJS)
endif # End static library stuff
+ifdef SHAREDLIB
+DEFFILE ?= $(SHAREDLIB:%=%.def)
+LIBRARYS := $(SHAREDLIB:%=$(OBJDIR)\%.dll) $(SHAREDLIB:%=$(OBJDIR)\%.lib)
+PDB := $(SHAREDLIB:%=$(OBJDIR)\%.pdb)
+LINKFLAGS += /DLL /DEF:$(DEFFILE)
+
+all: $(LIBRARYS)
+
+$(LIBRARYS) : $(OBJS) $(INCLUDELIBFILES) $(RESOBJS)
+ $(LINK) $(LINKFLAGS) /OUT:$(relpath $(basename $@)).dll $(INCLUDELIBFILES) $(SYSTEMLIBS) $(LINKLIBS) $(OBJS)
+
+endif
+
### WINAPP/TTYAPP stuff ###
ifeq (1,$(call OR, $(call NE,$(WINAPP)_,_) $(call NE,$(TTYAPP)_,_)))