diff options
| author | Andrew Innes | 1999-02-20 20:48:10 +0000 |
|---|---|---|
| committer | Andrew Innes | 1999-02-20 20:48:10 +0000 |
| commit | 2b9a4fe9b810ac11d6dd11ffba08ad005e41bbd1 (patch) | |
| tree | 71533ffb4d3321fa5ab34da22f0c5fd55ce95277 | |
| parent | f5a3c8c45d1dfdf16d2dd4011bd0128cdfd61027 (diff) | |
| download | emacs-2b9a4fe9b810ac11d6dd11ffba08ad005e41bbd1.tar.gz emacs-2b9a4fe9b810ac11d6dd11ffba08ad005e41bbd1.zip | |
(EXTRA_LINK, LINK_FLAGS): Ensure base relocation
data is included, to enable profiling.
($(EMACS)): Map file not needed for emacs.exe.
| -rw-r--r-- | src/makefile.nt | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/makefile.nt b/src/makefile.nt index faa8bcd8d2a..9b6f9969ce2 100644 --- a/src/makefile.nt +++ b/src/makefile.nt | |||
| @@ -37,6 +37,15 @@ LOCAL_FLAGS = -Demacs=1 -DWINDOWSNT -DDOS_NT -DHAVE_CONFIG_H -I..\nt\inc | |||
| 37 | LOCAL_FLAGS = $(LOCAL_FLAGS) -DHAVE_NTGUI=1 | 37 | LOCAL_FLAGS = $(LOCAL_FLAGS) -DHAVE_NTGUI=1 |
| 38 | !endif | 38 | !endif |
| 39 | 39 | ||
| 40 | # From MSVC 5.0 onwards, it seem base relocation information is not included, | ||
| 41 | # at least in release builds. We need to ensure the reloc info is included | ||
| 42 | # in order to use the MSVC profiler. | ||
| 43 | !IF ($(_NMAKE_VER) == $(_NMAKE_VER_4)) | ||
| 44 | EXTRA_LINK = | ||
| 45 | !ELSE | ||
| 46 | EXTRA_LINK = -profile | ||
| 47 | !ENDIF | ||
| 48 | |||
| 40 | EMACS = $(BLD)\emacs.exe | 49 | EMACS = $(BLD)\emacs.exe |
| 41 | TEMACS = $(BLD)\temacs.exe | 50 | TEMACS = $(BLD)\temacs.exe |
| 42 | TEMACS_TMP = $(BLD)\temacs.bin | 51 | TEMACS_TMP = $(BLD)\temacs.bin |
| @@ -61,7 +70,7 @@ TLASTLIB = $(BLD)\lastfile.lib | |||
| 61 | !if "$(BUILD_TYPE)" == "spd" | 70 | !if "$(BUILD_TYPE)" == "spd" |
| 62 | LINK_FLAGS = $(ARCH_LDFLAGS) -stack:0x00800000 -heap:0x00100000 -base:0x01000000 -debug:full -pdb:$(BLD)\temacs.pdb -machine:$(ARCH) -subsystem:$(SUBSYSTEM) -entry:_start -map:$(BLD)\temacs.map -swaprun:net -swaprun:cd | 71 | LINK_FLAGS = $(ARCH_LDFLAGS) -stack:0x00800000 -heap:0x00100000 -base:0x01000000 -debug:full -pdb:$(BLD)\temacs.pdb -machine:$(ARCH) -subsystem:$(SUBSYSTEM) -entry:_start -map:$(BLD)\temacs.map -swaprun:net -swaprun:cd |
| 63 | !else | 72 | !else |
| 64 | LINK_FLAGS = $(ARCH_LDFLAGS) -stack:0x00800000 -heap:0x00100000 -base:0x01000000 -debug:full -pdb:none -machine:$(ARCH) -subsystem:$(SUBSYSTEM) -entry:_start -map:$(BLD)\temacs.map -swaprun:net -swaprun:cd | 73 | LINK_FLAGS = $(ARCH_LDFLAGS) -stack:0x00800000 -heap:0x00100000 -base:0x01000000 -debug:full -debugtype:both -pdb:none -machine:$(ARCH) -subsystem:$(SUBSYSTEM) -entry:_start -map:$(BLD)\temacs.map -swaprun:net -swaprun:cd $(EXTRA_LINK) |
| 65 | !endif | 74 | !endif |
| 66 | 75 | ||
| 67 | # | 76 | # |
| @@ -197,7 +206,6 @@ emacs: $(EMACS) | |||
| 197 | $(EMACS): $(PREPARED_HEADERS) $(DOC) $(TEMACS) | 206 | $(EMACS): $(PREPARED_HEADERS) $(DOC) $(TEMACS) |
| 198 | cd $(BLD) | 207 | cd $(BLD) |
| 199 | $(MAKEDIR)\$(BLD)\temacs.exe -batch -l loadup dump | 208 | $(MAKEDIR)\$(BLD)\temacs.exe -batch -l loadup dump |
| 200 | copy temacs.map emacs.map | ||
| 201 | cd ..\.. | 209 | cd ..\.. |
| 202 | 210 | ||
| 203 | # | 211 | # |
| @@ -210,7 +218,6 @@ temacs: $(BLD) $(TEMACS) | |||
| 210 | $(TEMACS): $(TLIB0) $(TLIB1) $(TLIB2) $(TLIBW32) $(TLASTLIB) $(TOBJ) $(TRES) | 218 | $(TEMACS): $(TLIB0) $(TLIB1) $(TLIB2) $(TLIBW32) $(TLASTLIB) $(TOBJ) $(TRES) |
| 211 | $(LINK) -out:$(TEMACS_TMP) $(LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS) | 219 | $(LINK) -out:$(TEMACS_TMP) $(LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS) |
| 212 | ..\nt\$(BLD)\addsection $(TEMACS_TMP) $(TEMACS) EMHEAP 16 | 220 | ..\nt\$(BLD)\addsection $(TEMACS_TMP) $(TEMACS) EMHEAP 16 |
| 213 | del $(TEMACS_TMP) | ||
| 214 | 221 | ||
| 215 | # | 222 | # |
| 216 | # The resource file. NT 3.10 requires the use of cvtres; even though | 223 | # The resource file. NT 3.10 requires the use of cvtres; even though |