aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Voelker1997-08-17 01:45:27 +0000
committerGeoff Voelker1997-08-17 01:45:27 +0000
commitd7a4f4fed580bdb7732e9230720367d73c3986df (patch)
tree301715c4bb66277ebc15309af0911e4ad73d37dc
parent65cd66876a0d2a0a76718ce17909797e7d662771 (diff)
downloademacs-d7a4f4fed580bdb7732e9230720367d73c3986df.tar.gz
emacs-d7a4f4fed580bdb7732e9230720367d73c3986df.zip
(MSVCNT11): Conditionally define it.
(BASE_LIBS): Do not use oldnames.lib. (SYS_LDFLAGS): Use pdb files. (CFLAGS_COMMON) [!spd]: Define EMACSDEBUG. (ARCH_CFLAGS) [i386 && spd]: Use space optimizations. (ARCH_CFLAGS) [alpha && spd]: Use optimizations.
-rw-r--r--nt/makefile.def18
1 files changed, 14 insertions, 4 deletions
diff --git a/nt/makefile.def b/nt/makefile.def
index 8d920d48ef0..c050b37b2af 100644
--- a/nt/makefile.def
+++ b/nt/makefile.def
@@ -34,7 +34,9 @@ INSTALL_DIR = C:\emacs
34 34
35# Define MSVCNT11 to be nonzero if you are using the MSVCNT 1.1 environment. 35# Define MSVCNT11 to be nonzero if you are using the MSVCNT 1.1 environment.
36# MSVCNT11 = 1 36# MSVCNT11 = 1
37!ifndef MSVCNT11
37MSVCNT11 = 0 38MSVCNT11 = 0
39!endif
38 40
39# 41#
40# END CONFIGURATION 42# END CONFIGURATION
@@ -119,18 +121,22 @@ libc = libc.lib
119!if $(MSVCNT11) 121!if $(MSVCNT11)
120BASE_LIBS = $(libc) $(baselibs) oldnames.lib 122BASE_LIBS = $(libc) $(baselibs) oldnames.lib
121!else 123!else
122BASE_LIBS = $(libc) $(baselibs) 124BASE_LIBS = $(libc) $(baselibs) -nodefaultlib:oldnames.lib
123!endif 125!endif
124 126
125# We want any debugging info in the executable. 127# We want any debugging info in the executable.
126!if "$(LINK)" == "link32" 128!if "$(LINK)" == "link32"
127SYS_LDFLAGS = 129SYS_LDFLAGS =
128!else 130!else
129SYS_LDFLAGS = -pdb:none -release -incremental:no -version:3.10 131SYS_LDFLAGS = -release -incremental:no -version:3.10
130!endif 132!endif
131 133
132INC = -I. 134INC = -I.
135!if "$(BUILD_TYPE)" == "spd"
133CFLAGS_COMMON = -nologo $(INC) $(ARCH_CFLAGS) $(LOCAL_FLAGS) -DWIN32_LEAN_AND_MEAN -D$(ARCH) 136CFLAGS_COMMON = -nologo $(INC) $(ARCH_CFLAGS) $(LOCAL_FLAGS) -DWIN32_LEAN_AND_MEAN -D$(ARCH)
137!else
138CFLAGS_COMMON = -nologo $(INC) $(ARCH_CFLAGS) $(LOCAL_FLAGS) -DWIN32_LEAN_AND_MEAN -D$(ARCH) -DEMACSDEBUG
139!endif
134!if $(MSVCNT11) 140!if $(MSVCNT11)
135CFLAGS = $(CFLAGS_COMMON) -D_CRTAPI1=_cdecl 141CFLAGS = $(CFLAGS_COMMON) -D_CRTAPI1=_cdecl
136!else 142!else
@@ -170,7 +176,7 @@ ADDPM = ..\nt\$(BLD)\addpm.exe
170 176
171!if "$(ARCH)" == "i386" 177!if "$(ARCH)" == "i386"
172!if "$(BUILD_TYPE)" == "spd" 178!if "$(BUILD_TYPE)" == "spd"
173ARCH_CFLAGS = -nologo -D_X86_=1 -c -Zel -W2 -H63 -O2b2 -G5d -Zi 179ARCH_CFLAGS = -nologo -D_X86_=1 -c -Zel -W2 -H63 -Oxsb2 -G5dF -Zi
174!else 180!else
175ARCH_CFLAGS = -nologo -D_X86_=1 -c -Zel -W2 -H63 -G3d -Zi -Od 181ARCH_CFLAGS = -nologo -D_X86_=1 -c -Zel -W2 -H63 -G3d -Zi -Od
176!endif 182!endif
@@ -183,7 +189,11 @@ ARCH_LDFLAGS = -align:0x1000 $(SYS_LDFLAGS)
183 189
184!else 190!else
185!if "$(ARCH)" == "alpha" 191!if "$(ARCH)" == "alpha"
186ARCH_CFLAGS = -D_ALPHA_=1 -c -Ze -Zi -W2 -D__stdcall= -D__cdecl= 192!if "$(BUILD_TYPE)" == "spd"
193ARCH_CFLAGS = -D_ALPHA_=1 -c -Ze -Zi -W2 -Od -D__stdcall= -D__cdecl=
194!else
195ARCH_CFLAGS = -D_ALPHA_=1 -c -Ze -Zi -W2 -O1 -D__stdcall= -D__cdecl=
196!endif
187ARCH_LDFLAGS = -align:0x2000 $(SYS_LDFLAGS) 197ARCH_LDFLAGS = -align:0x2000 $(SYS_LDFLAGS)
188 198
189!else 199!else