diff options
| author | Geoff Voelker | 1997-08-17 01:45:27 +0000 |
|---|---|---|
| committer | Geoff Voelker | 1997-08-17 01:45:27 +0000 |
| commit | d7a4f4fed580bdb7732e9230720367d73c3986df (patch) | |
| tree | 301715c4bb66277ebc15309af0911e4ad73d37dc | |
| parent | 65cd66876a0d2a0a76718ce17909797e7d662771 (diff) | |
| download | emacs-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.def | 18 |
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 | ||
| 37 | MSVCNT11 = 0 | 38 | MSVCNT11 = 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) |
| 120 | BASE_LIBS = $(libc) $(baselibs) oldnames.lib | 122 | BASE_LIBS = $(libc) $(baselibs) oldnames.lib |
| 121 | !else | 123 | !else |
| 122 | BASE_LIBS = $(libc) $(baselibs) | 124 | BASE_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" |
| 127 | SYS_LDFLAGS = | 129 | SYS_LDFLAGS = |
| 128 | !else | 130 | !else |
| 129 | SYS_LDFLAGS = -pdb:none -release -incremental:no -version:3.10 | 131 | SYS_LDFLAGS = -release -incremental:no -version:3.10 |
| 130 | !endif | 132 | !endif |
| 131 | 133 | ||
| 132 | INC = -I. | 134 | INC = -I. |
| 135 | !if "$(BUILD_TYPE)" == "spd" | ||
| 133 | CFLAGS_COMMON = -nologo $(INC) $(ARCH_CFLAGS) $(LOCAL_FLAGS) -DWIN32_LEAN_AND_MEAN -D$(ARCH) | 136 | CFLAGS_COMMON = -nologo $(INC) $(ARCH_CFLAGS) $(LOCAL_FLAGS) -DWIN32_LEAN_AND_MEAN -D$(ARCH) |
| 137 | !else | ||
| 138 | CFLAGS_COMMON = -nologo $(INC) $(ARCH_CFLAGS) $(LOCAL_FLAGS) -DWIN32_LEAN_AND_MEAN -D$(ARCH) -DEMACSDEBUG | ||
| 139 | !endif | ||
| 134 | !if $(MSVCNT11) | 140 | !if $(MSVCNT11) |
| 135 | CFLAGS = $(CFLAGS_COMMON) -D_CRTAPI1=_cdecl | 141 | CFLAGS = $(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" |
| 173 | ARCH_CFLAGS = -nologo -D_X86_=1 -c -Zel -W2 -H63 -O2b2 -G5d -Zi | 179 | ARCH_CFLAGS = -nologo -D_X86_=1 -c -Zel -W2 -H63 -Oxsb2 -G5dF -Zi |
| 174 | !else | 180 | !else |
| 175 | ARCH_CFLAGS = -nologo -D_X86_=1 -c -Zel -W2 -H63 -G3d -Zi -Od | 181 | ARCH_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" |
| 186 | ARCH_CFLAGS = -D_ALPHA_=1 -c -Ze -Zi -W2 -D__stdcall= -D__cdecl= | 192 | !if "$(BUILD_TYPE)" == "spd" |
| 193 | ARCH_CFLAGS = -D_ALPHA_=1 -c -Ze -Zi -W2 -Od -D__stdcall= -D__cdecl= | ||
| 194 | !else | ||
| 195 | ARCH_CFLAGS = -D_ALPHA_=1 -c -Ze -Zi -W2 -O1 -D__stdcall= -D__cdecl= | ||
| 196 | !endif | ||
| 187 | ARCH_LDFLAGS = -align:0x2000 $(SYS_LDFLAGS) | 197 | ARCH_LDFLAGS = -align:0x2000 $(SYS_LDFLAGS) |
| 188 | 198 | ||
| 189 | !else | 199 | !else |