changeset 12453:8e4f8107dcd0

(EMACS) [win95]: Removed. (TLASTLIB): Defined. (TEMACS): Use TLASTLIB.
author Geoff Voelker <voelker@cs.washington.edu>
date Fri, 30 Jun 1995 21:14:56 +0000
parents bd304be0b491
children 3f4da17a7cd8
files src/makefile.nt
diffstat 1 files changed, 10 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/makefile.nt	Fri Jun 30 21:14:06 1995 +0000
+++ b/src/makefile.nt	Fri Jun 30 21:14:56 1995 +0000
@@ -41,6 +41,7 @@
 !else
 TRES		= $(BLD)\emacs.rbj
 !endif
+TLASTLIB	= $(BLD)\lastfile.lib
 
 LINK_FLAGS      = $(ARCH_LDFLAGS) -stack:0x1000000 -base:0xD00000 -debug:full -debugtype:cv -machine:$(ARCH) -subsystem:console -entry:_start 
 
@@ -73,7 +74,6 @@
 	$(BLD)\insdel.obj       \
 	$(BLD)\keyboard.obj     \
 	$(BLD)\keymap.obj       \
-	$(BLD)\lastfile.obj     \
 	$(BLD)\lread.obj        \
 	$(BLD)\macros.obj       \
 	$(BLD)\marker.obj       \
@@ -112,6 +112,7 @@
 
 LIBS =  $(TLIB1)	\
 	$(TLIB2)	\
+	$(TLASTLIB)	\
 	$(BASE_LIBS)	\
 	$(ADVAPI32)	\
 	user32.lib
@@ -144,19 +145,15 @@
 #
 emacs:          $(EMACS)
 $(EMACS):       $(PREPARED_HEADERS) $(DOC) $(TEMACS)
-!if "$(OS_TYPE)" == "win95"
-		move $(BLD)\temacs.exe $(BLD)\emacs.exe
-!else
 		cd $(BLD)
 		temacs.exe -batch -l loadup dump
 		cd ..\..
-!endif
 
 #
 # The undumped executable
 #
 temacs:         $(BLD) $(TEMACS)
-$(TEMACS):      $(TLIB1) $(TLIB2) $(TOBJ) $(TRES)
+$(TEMACS):      $(TLIB1) $(TLIB2) $(TLASTLIB) $(TOBJ) $(TRES)
 		$(LINK) -out:$(TEMACS) $(LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS)
 
 #
@@ -177,6 +174,13 @@
 		@- $(AR) -out:$@ $**
 $(TLIB2):	$(OBJ2)
 		@- $(AR) -out:$@ $**
+#
+# Place lastfile.obj in it's own library so that it can be loaded after
+# the source libraries but before any system libraries.  Doing so defines
+# the end of Emacs' data section portably across compilers.
+#
+$(TLASTLIB):	$(BLD)\lastfile.obj
+		@- $(AR) -out:$@ $**
 
 #
 # Object files.