diff src/Makefile.in.in @ 1632:64eaceca611d

[xemacs-hg @ 2003-08-19 02:07:03 by james] Enable module building and running on Cygwin and MinGW.
author james
date Tue, 19 Aug 2003 02:07:16 +0000
parents c88a785b01d8
children 7c80b06e433f
line wrap: on
line diff
--- a/src/Makefile.in.in	Mon Aug 18 21:52:34 2003 +0000
+++ b/src/Makefile.in.in	Tue Aug 19 02:07:16 2003 +0000
@@ -224,6 +224,11 @@
 
 #ifdef HAVE_SHLIB
 shlib_objs=sysdll.o emodules.o
+# ifdef HAVE_MS_WINDOWS
+export_lib=xemacs-export.o
+xemacs-export.o: xemacs.def
+	dlltool -D xemacs-${version}.exe -d $< -l xemacs-import.a -e $@
+# endif
 #endif
 
 #ifdef SUNPRO
@@ -342,7 +347,7 @@
 
 ## define otherobjs as list of object files that make-docfile
 ## should not be told about.
-otherobjs = lastfile.o $(mallocobjs) $(rallocobjs) $(X11_objs)
+otherobjs = lastfile.o $(mallocobjs) $(rallocobjs) $(X11_objs) $(export_lib)
 otherrtls = $(otherobjs:.o=.c.rtl)
 othersrcs = $(otherobjs:.o=.c)