From 0a360e48369bf5ccccc0bffa965deea8645faeff Mon Sep 17 00:00:00 2001
From: Chris Elliott <biol75@york.ac.uk>
Date: Wed, 3 Sep 2003 13:59:53 +0000
Subject: [PATCH] fix makefile for digitalmars

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 lib/_sc/Readme.txt     | 11 +++++++++++
 lib/_sc/wsock32_sc.def |  1 +
 src/msw/makefile.sc    |  8 ++++++--
 3 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/lib/_sc/Readme.txt b/lib/_sc/Readme.txt
index a0061668d6..307bd9f590 100644
--- a/lib/_sc/Readme.txt
+++ b/lib/_sc/Readme.txt
@@ -1,4 +1,15 @@
 This directory contains files for the Digitalmars compiler, currently 8.34 beta
 to resolve externals which are not present in the .lib files released by DigitalMars.
 
+To find the names of the functions
+
+//create a library from the dll e.g.
+implib ws.lib c:\WINNT\system32\wsock32.dll
+
+//make a listing
+lib -l ws.lib
+
+//read the listing e.g.
+type ws.lst | more
+
 Chris Elliott, biol75@york.ac.uk, 07 May 03
diff --git a/lib/_sc/wsock32_sc.def b/lib/_sc/wsock32_sc.def
index 9cb5991ef2..d27e742758 100644
--- a/lib/_sc/wsock32_sc.def
+++ b/lib/_sc/wsock32_sc.def
@@ -21,6 +21,7 @@ EXPORTS
     _select@20 = select
     _WSAGetLastError@0 = WSAGetLastError
     _getsockname@12 = getsockname
+    _getsockopt@20 = getsockopt
     _bind@12 = bind
     _ioctlsocket@12 = ioctlsocket
     _socket@12 = socket
diff --git a/src/msw/makefile.sc b/src/msw/makefile.sc
index 06d311015c..a432b53aaa 100644
--- a/src/msw/makefile.sc
+++ b/src/msw/makefile.sc
@@ -43,6 +43,7 @@ GENERICOBJS= $(GENDIR)\busyinfo.obj \
 		$(GENDIR)\numdlgg.obj \
 		$(GENDIR)\panelg.obj \
 		$(GENDIR)\progdlgg.obj \
+		$(GENDIR)\renderg.obj \
 		$(GENDIR)\sashwin.obj \
 		$(GENDIR)\scrlwing.obj \
 		$(GENDIR)\selstore.obj \
@@ -61,6 +62,7 @@ COMMONOBJS = $(COMMDIR)\accesscmn.obj \
 		$(COMMDIR)\appcmn.obj \
 		$(COMMDIR)\artprov.obj \
 		$(COMMDIR)\artstd.obj \
+                $(COMMDIR)\bookctrl.obj \
 		$(COMMDIR)\choiccmn.obj \
 		$(COMMDIR)\clipcmn.obj \
 		$(COMMDIR)\clntdata.obj \
@@ -156,6 +158,7 @@ COMMONOBJS = $(COMMDIR)\accesscmn.obj \
 		$(COMMDIR)\quantize.obj \
 		$(COMMDIR)\radiocmn.obj \
 		$(COMMDIR)\regex.obj \
+		$(COMMDIR)\rendcmn.obj  \
 		$(COMMDIR)\rgncmn.obj \
 		$(COMMDIR)\sckaddr.obj \
 		$(COMMDIR)\sckfile.obj \
@@ -298,6 +301,7 @@ MSWOBJS = $(MSWDIR)\accel.obj \
 		$(MSWDIR)\radiobut.obj \
 		$(MSWDIR)\regconf.obj \
 		$(MSWDIR)\region.obj \
+		$(MSWDIR)\renderer.obj \
 		$(MSWDIR)\registry.obj \
 		$(MSWDIR)\scrolbar.obj \
 		$(MSWDIR)\settings.obj \
@@ -343,8 +347,8 @@ MAKEARCHDIR:
 
 #build our own copies of missing libraries
 MAKELIBS:
-      implib  /s $(LIBDIR)\$(SHELLLIB) $(LIBDIR)\$(SC_SUFFIX)\$(SHELLLIB).def
-      implib  /s $(LIBDIR)\$(WINSOCKLIB) $(LIBDIR)\$(SC_SUFFIX)\$(WINSOCKLIB).def
+      dimplib  /s $(LIBDIR)\$(SHELLLIB) $(LIBDIR)\$(SC_SUFFIX)\$(SHELLLIB).def
+      dimplib  /s $(LIBDIR)\$(WINSOCKLIB) $(LIBDIR)\$(SC_SUFFIX)\$(WINSOCKLIB).def
 
 $(LIBTARGET): $(OBJECTS)
 	-del $(LIBTARGET)
-- 
2.50.0

