diff options
| author | Geoff Voelker | 1995-05-26 05:25:04 +0000 |
|---|---|---|
| committer | Geoff Voelker | 1995-05-26 05:25:04 +0000 |
| commit | 5c2f36b24ae32f855b6196254dd8ca21346d181f (patch) | |
| tree | 2ba9fb337d03fc72b1fa0dafc9de2cbba4bd2ad3 /src/makefile.nt | |
| parent | 85212e674014e01923e68e40c65e28c7a19e31d9 (diff) | |
| download | emacs-5c2f36b24ae32f855b6196254dd8ca21346d181f.tar.gz emacs-5c2f36b24ae32f855b6196254dd8ca21346d181f.zip | |
(LIBS): Use BASE_LIBS and ADVAPI32.
(config.h,paths.h): Use $(CP) instead of cp.
(config.h): Use $(CONFIG_H).
(EMACS) [WINDOWS95]: Don't dump temacs.exe.
(clean): Cleanup MSVC files and config.h.
(cleandump): Separate commands onto multiple lines.
Cleanup comments.
Diffstat (limited to 'src/makefile.nt')
| -rw-r--r-- | src/makefile.nt | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/src/makefile.nt b/src/makefile.nt index 67c24d1151f..20805b5a084 100644 --- a/src/makefile.nt +++ b/src/makefile.nt | |||
| @@ -40,8 +40,6 @@ TRES = $(BLD)\emacs.rbj | |||
| 40 | 40 | ||
| 41 | LINK_FLAGS = $(ARCH_LDFLAGS) -stack:0x1000000 -base:0xD00000 -debug:full -debugtype:cv -machine:$(ARCH) -subsystem:console -entry:_start | 41 | LINK_FLAGS = $(ARCH_LDFLAGS) -stack:0x1000000 -base:0xD00000 -debug:full -debugtype:cv -machine:$(ARCH) -subsystem:console -entry:_start |
| 42 | 42 | ||
| 43 | # -debug:PARTIAL -debugtype:COFF | ||
| 44 | |||
| 45 | # | 43 | # |
| 46 | # Split up the objects into two sets so that we don't run out of | 44 | # Split up the objects into two sets so that we don't run out of |
| 47 | # command line space when we link them into a library. | 45 | # command line space when we link them into a library. |
| @@ -108,14 +106,11 @@ OBJ2 = $(BLD)\nt.obj \ | |||
| 108 | $(BLD)\region-cache.obj \ | 106 | $(BLD)\region-cache.obj \ |
| 109 | $(BLD)\strftime.obj | 107 | $(BLD)\strftime.obj |
| 110 | 108 | ||
| 111 | LIBS = $(TLIB1) \ | 109 | LIBS = $(TLIB1) \ |
| 112 | $(TLIB2) \ | 110 | $(TLIB2) \ |
| 113 | $(SYS_LIB_DIR)\setargv.obj \ | 111 | $(BASE_LIBS) \ |
| 114 | $(SYS_LIB_DIR)\kernel32.lib \ | 112 | $(ADVAPI32) \ |
| 115 | $(SYS_LIB_DIR)\advapi32.lib \ | 113 | user32.lib |
| 116 | $(SYS_LIB_DIR)\user32.lib \ | ||
| 117 | $(SYS_LIB_DIR)\libc.lib \ | ||
| 118 | $(COMPAT_LIB) | ||
| 119 | 114 | ||
| 120 | # | 115 | # |
| 121 | # Build the executable and dump it. | 116 | # Build the executable and dump it. |
| @@ -126,10 +121,10 @@ all: $(BLD) $(EMACS) | |||
| 126 | # Headers we would preprocess if we could. | 121 | # Headers we would preprocess if we could. |
| 127 | # | 122 | # |
| 128 | PREPARED_HEADERS = config.h paths.h | 123 | PREPARED_HEADERS = config.h paths.h |
| 129 | config.h: ..\nt\config.h | 124 | config.h: ..\nt\$(CONFIG_H) |
| 130 | cp ..\nt\config.h config.h | 125 | $(CP) $** $@ |
| 131 | paths.h: ..\nt\paths.h | 126 | paths.h: ..\nt\paths.h |
| 132 | cp ..\nt\paths.h paths.h | 127 | $(CP) $** $@ |
| 133 | 128 | ||
| 134 | # | 129 | # |
| 135 | # Make sure we have the DOC file in the right place. | 130 | # Make sure we have the DOC file in the right place. |
| @@ -145,9 +140,13 @@ $(DOC):; cd ..\lib-src | |||
| 145 | # | 140 | # |
| 146 | emacs: $(EMACS) | 141 | emacs: $(EMACS) |
| 147 | $(EMACS): $(PREPARED_HEADERS) $(DOC) $(TEMACS) | 142 | $(EMACS): $(PREPARED_HEADERS) $(DOC) $(TEMACS) |
| 143 | !if "$(OS_TYPE)" == "win95" | ||
| 144 | move $(BLD)\temacs.exe $(BLD)\emacs.exe | ||
| 145 | !else | ||
| 148 | cd $(BLD) | 146 | cd $(BLD) |
| 149 | temacs.exe -batch -l loadup dump | 147 | temacs.exe -batch -l loadup dump |
| 150 | cd ..\.. | 148 | cd ..\.. |
| 149 | !endif | ||
| 151 | 150 | ||
| 152 | # | 151 | # |
| 153 | # The undumped executable | 152 | # The undumped executable |
| @@ -157,7 +156,8 @@ $(TEMACS): $(BLD) $(TLIB1) $(TLIB2) $(TOBJ) $(TRES) | |||
| 157 | $(LINK) -out:$(TEMACS) $(LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS) | 156 | $(LINK) -out:$(TEMACS) $(LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS) |
| 158 | 157 | ||
| 159 | # | 158 | # |
| 160 | # The resource file. | 159 | # The resource file. NT 3.10 requires the use of cvtres; even though |
| 160 | # it is not necessary on later versions, it is still ok to use it. | ||
| 161 | # | 161 | # |
| 162 | $(TRES): ..\nt\emacs.rc | 162 | $(TRES): ..\nt\emacs.rc |
| 163 | $(RC) -i..\nt -Fo$(BLD)\emacs.res $** | 163 | $(RC) -i..\nt -Fo$(BLD)\emacs.res $** |
| @@ -188,7 +188,7 @@ install: all | |||
| 188 | # | 188 | # |
| 189 | # Maintenance | 189 | # Maintenance |
| 190 | # | 190 | # |
| 191 | clean:; - del /q *~ | 191 | clean:; - del /q *~ *.pdb config.h |
| 192 | - $(DEL_TREE) deleted | 192 | - $(DEL_TREE) deleted |
| 193 | - $(DEL_TREE) obj | 193 | - $(DEL_TREE) obj |
| 194 | 194 | ||
| @@ -196,7 +196,9 @@ clean:; - del /q *~ | |||
| 196 | # These files are the ones that compile conditionally on CANNOT_DUMP... | 196 | # These files are the ones that compile conditionally on CANNOT_DUMP... |
| 197 | # this target is mostly used for debugging. | 197 | # this target is mostly used for debugging. |
| 198 | # | 198 | # |
| 199 | cleandump:; cd $(BLD) && - del callproc.obj data.obj dispnew.obj doc.obj editfns.obj emacs.obj lread.obj process.obj sysdep.obj term.obj ntheap.obj unexnt.obj | 199 | cleandump:; cd $(BLD) |
| 200 | - del callproc.obj data.obj dispnew.obj doc.obj editfns.obj emacs.obj lread.obj process.obj sysdep.obj term.obj ntheap.obj unexnt.obj | ||
| 201 | cd ..\.. | ||
| 200 | 202 | ||
| 201 | 203 | ||
| 202 | ### DEPENDENCIES ### | 204 | ### DEPENDENCIES ### |