aboutsummaryrefslogtreecommitdiffstats
path: root/src/makefile.nt
diff options
context:
space:
mode:
authorGeoff Voelker1995-11-07 07:36:36 +0000
committerGeoff Voelker1995-11-07 07:36:36 +0000
commitd94e4ac23c52059a576f1f464a9615b9bf005cc7 (patch)
treecf9877265e15b29b4a7d491ba3ad2616b99fcb7d /src/makefile.nt
parentf332b293c55b8b2b17a0b53e7ad4778afe50ba9d (diff)
downloademacs-d94e4ac23c52059a576f1f464a9615b9bf005cc7.tar.gz
emacs-d94e4ac23c52059a576f1f464a9615b9bf005cc7.zip
(SUBSYSTEM, TLIBW32, TLASTLIB, WIN32OBJ): Defined.
(w32term.obj, w32xfns.obj, w32fns.obj w32faces.obj, w32select.obj, w32menu.obj, w32reg.obj): Defined. (LINK_FLAGS): Use SUBSYSTEM. (OBJ1): Remove lastfile.obj. (LIBS, TEMACS): Use TLASTLIB. (LIBS) [NTGUI]: Use TLIBW32 and GUI libs. (EMACS): Remove Win95 conditional. (clean): Remove paths.h.
Diffstat (limited to 'src/makefile.nt')
-rw-r--r--src/makefile.nt117
1 files changed, 111 insertions, 6 deletions
diff --git a/src/makefile.nt b/src/makefile.nt
index 27fed2d6b40..07833d94b8c 100644
--- a/src/makefile.nt
+++ b/src/makefile.nt
@@ -25,6 +25,12 @@
25# 25#
26!include ..\nt\makefile.def 26!include ..\nt\makefile.def
27 27
28!IFDEF NTGUI
29SUBSYSTEM=windows
30!ELSE
31SUBSYSTEM=console
32!ENDIF
33
28# 34#
29# HAVE_CONFIG_H is required by some generic gnu sources stuck into 35# HAVE_CONFIG_H is required by some generic gnu sources stuck into
30# the emacs source tree. 36# the emacs source tree.
@@ -35,6 +41,11 @@ EMACS = $(BLD)\emacs.exe
35TEMACS = $(BLD)\temacs.exe 41TEMACS = $(BLD)\temacs.exe
36TLIB1 = $(BLD)\temacs1.lib 42TLIB1 = $(BLD)\temacs1.lib
37TLIB2 = $(BLD)\temacs2.lib 43TLIB2 = $(BLD)\temacs2.lib
44!IFDEF NTGUI
45TLIBW32 = $(BLD)\temacw32.lib
46!ELSE
47TLIBW32 =
48!ENDIF
38TOBJ = $(BLD)\emacs.obj 49TOBJ = $(BLD)\emacs.obj
39!if $(MSVCNT11) 50!if $(MSVCNT11)
40TRES = $(BLD)\emacs.res 51TRES = $(BLD)\emacs.res
@@ -43,7 +54,7 @@ TRES = $(BLD)\emacs.rbj
43!endif 54!endif
44TLASTLIB = $(BLD)\lastfile.lib 55TLASTLIB = $(BLD)\lastfile.lib
45 56
46LINK_FLAGS = $(ARCH_LDFLAGS) -stack:0x1000000 -base:0xD00000 -debug:full -debugtype:cv -machine:$(ARCH) -subsystem:console -entry:_start 57LINK_FLAGS = $(ARCH_LDFLAGS) -stack:0x1000000 -base:0xD00000 -debug:full -debugtype:cv -machine:$(ARCH) -subsystem:$(SUBSYSTEM) -entry:_start -map:$(BLD)\temacs.map
47 58
48# 59#
49# Split up the objects into two sets so that we don't run out of 60# Split up the objects into two sets so that we don't run out of
@@ -110,9 +121,24 @@ OBJ2 = $(BLD)\nt.obj \
110 $(BLD)\region-cache.obj \ 121 $(BLD)\region-cache.obj \
111 $(BLD)\strftime.obj 122 $(BLD)\strftime.obj
112 123
124WIN32OBJ = $(BLD)\w32term.obj \
125 $(BLD)\w32xfns.obj \
126 $(BLD)\w32fns.obj \
127 $(BLD)\w32faces.obj \
128 $(BLD)\w32select.obj \
129 $(BLD)\w32menu.obj \
130 $(BLD)\w32reg.obj
131
113LIBS = $(TLIB1) \ 132LIBS = $(TLIB1) \
114 $(TLIB2) \ 133 $(TLIB2) \
134!IFDEF NTGUI
135 $(TLIBW32) \
136!ENDIF
115 $(TLASTLIB) \ 137 $(TLASTLIB) \
138!IFDEF NTGUI
139 gdi32.lib \
140 comdlg32.lib \
141!ENDIF
116 $(BASE_LIBS) \ 142 $(BASE_LIBS) \
117 $(ADVAPI32) \ 143 $(ADVAPI32) \
118 user32.lib 144 user32.lib
@@ -153,7 +179,7 @@ $(EMACS): $(PREPARED_HEADERS) $(DOC) $(TEMACS)
153# The undumped executable 179# The undumped executable
154# 180#
155temacs: $(BLD) $(TEMACS) 181temacs: $(BLD) $(TEMACS)
156$(TEMACS): $(TLIB1) $(TLIB2) $(TLASTLIB) $(TOBJ) $(TRES) 182$(TEMACS): $(TLIB1) $(TLIB2) $(TLIBW32) $(TLASTLIB) $(TOBJ) $(TRES)
157 $(LINK) -out:$(TEMACS) $(LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS) 183 $(LINK) -out:$(TEMACS) $(LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS)
158 184
159# 185#
@@ -174,13 +200,18 @@ $(TLIB1): $(OBJ1)
174 @- $(AR) -out:$@ $** 200 @- $(AR) -out:$@ $**
175$(TLIB2): $(OBJ2) 201$(TLIB2): $(OBJ2)
176 @- $(AR) -out:$@ $** 202 @- $(AR) -out:$@ $**
203!IFDEF NTGUI
204$(TLIBW32): $(WIN32OBJ)
205 @- $(AR) -out:$@ $**
206!ENDIF
207
177# 208#
178# Place lastfile.obj in it's own library so that it can be loaded after 209# Place lastfile.obj in its own library so that it can be loaded after
179# the source libraries but before any system libraries. Doing so defines 210# the source libraries but before any system libraries. Doing so defines
180# the end of Emacs' data section portably across compilers. 211# the end of Emacs' data section portably across compilers and systems.
181# 212#
182$(TLASTLIB): $(BLD)\lastfile.obj 213$(TLASTLIB): $(BLD)\lastfile.obj
183 @- $(AR) -out:$@ $** 214 @- $(AR) -out:$@ $**
184 215
185# 216#
186# Object files. 217# Object files.
@@ -198,7 +229,7 @@ install: all
198# 229#
199# Maintenance 230# Maintenance
200# 231#
201clean:; - del /q *~ *.pdb config.h 232clean:; - del /q *~ *.pdb config.h paths.h
202 - $(DEL_TREE) deleted 233 - $(DEL_TREE) deleted
203 - $(DEL_TREE) obj 234 - $(DEL_TREE) obj
204 235
@@ -999,3 +1030,77 @@ $(BLD)\xdisp.obj : \
999 $(SRC)\termhooks.h \ 1030 $(SRC)\termhooks.h \
1000 $(SRC)\dispextern.h \ 1031 $(SRC)\dispextern.h \
1001 $(SRC)\intervals.h 1032 $(SRC)\intervals.h
1033
1034$(BLD)\w32faces.obj: \
1035 $(EMACS_ROOT)\src\s\windowsnt.h \
1036 $(EMACS_ROOT)\src\m\intel386.h \
1037 $(EMACS_ROOT)\src\config.h \
1038 $(SRC)\w32faces.c \
1039 $(SRC)\dispextern.h \
1040 $(SRC)\frame.h \
1041 $(SRC)\w32term.h \
1042 $(SRC)\win32.h \
1043 $(SRC)\buffer.h \
1044 $(SRC)\blockinput.h \
1045 $(SRC)\window.h
1046
1047$(BLD)\w32fns.obj: \
1048 $(EMACS_ROOT)\src\s\windowsnt.h \
1049 $(EMACS_ROOT)\src\m\intel386.h \
1050 $(EMACS_ROOT)\src\config.h \
1051 $(SRC)\w32fns.c \
1052 $(SRC)\dispextern.h \
1053 $(SRC)\frame.h \
1054 $(SRC)\w32term.h \
1055 $(SRC)\win32.h \
1056 $(SRC)\buffer.h \
1057 $(SRC)\blockinput.h \
1058 $(SRC)\window.h
1059
1060$(BLD)\w32menu.obj: \
1061 $(EMACS_ROOT)\src\s\windowsnt.h \
1062 $(EMACS_ROOT)\src\m\intel386.h \
1063 $(EMACS_ROOT)\src\config.h \
1064 $(SRC)\w32menu.c \
1065 $(SRC)\dispextern.h \
1066 $(SRC)\frame.h \
1067 $(SRC)\w32term.h \
1068 $(SRC)\win32.h \
1069 $(SRC)\buffer.h \
1070 $(SRC)\blockinput.h \
1071 $(SRC)\window.h
1072
1073$(BLD)\w32term.obj: \
1074 $(EMACS_ROOT)\src\s\windowsnt.h \
1075 $(EMACS_ROOT)\src\m\intel386.h \
1076 $(EMACS_ROOT)\src\config.h \
1077 $(SRC)\w32term.c \
1078 $(SRC)\dispextern.h \
1079 $(SRC)\frame.h \
1080 $(SRC)\w32term.h \
1081 $(SRC)\win32.h \
1082 $(SRC)\buffer.h \
1083 $(SRC)\blockinput.h \
1084 $(SRC)\window.h
1085
1086$(BLD)\w32select.obj: \
1087 $(EMACS_ROOT)\src\s\windowsnt.h \
1088 $(EMACS_ROOT)\src\m\intel386.h \
1089 $(EMACS_ROOT)\src\config.h \
1090 $(SRC)\w32select.c \
1091 $(SRC)\dispextern.h \
1092 $(SRC)\frame.h \
1093 $(SRC)\w32term.h \
1094 $(SRC)\win32.h \
1095 $(SRC)\blockinput.h
1096
1097$(BLD)\w32reg.obj: \
1098 $(EMACS_ROOT)\src\s\windowsnt.h \
1099 $(EMACS_ROOT)\src\m\intel386.h \
1100 $(EMACS_ROOT)\src\config.h \
1101 $(SRC)\w32reg.c \
1102 $(SRC)\dispextern.h \
1103 $(SRC)\frame.h \
1104 $(SRC)\w32term.h \
1105 $(SRC)\win32.h \
1106 $(SRC)\blockinput.h