aboutsummaryrefslogtreecommitdiffstats
path: root/src/makefile.nt
diff options
context:
space:
mode:
authorGeoff Voelker <[email protected]>1995-06-30 21:14:56 +0000
committerGeoff Voelker <[email protected]>1995-06-30 21:14:56 +0000
commit783d52920c8f225a2d1974f4a50b6ddc519587a4 (patch)
tree04c8752820eaf7c5d80ea9dccacffa484ca7debd /src/makefile.nt
parent3bbabc43d815e100b1c99d62ce7571e601c86ccb (diff)
(EMACS) [win95]: Removed.
(TLASTLIB): Defined. (TEMACS): Use TLASTLIB.
Diffstat (limited to 'src/makefile.nt')
-rw-r--r--src/makefile.nt16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/makefile.nt b/src/makefile.nt
index d7118391c1..27fed2d6b4 100644
--- a/src/makefile.nt
+++ b/src/makefile.nt
@@ -41,6 +41,7 @@ TRES = $(BLD)\emacs.res
!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 @@ OBJ1 = $(BLD)\abbrev.obj \
$(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 @@ OBJ2 = $(BLD)\nt.obj \
LIBS = $(TLIB1) \
$(TLIB2) \
+ $(TLASTLIB) \
$(BASE_LIBS) \
$(ADVAPI32) \
user32.lib
@@ -144,19 +145,15 @@ $(DOC):; cd ..\lib-src
#
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 @@ $(TLIB1): $(OBJ1)
@- $(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.