diff options
| author | Geoff Voelker | 1996-05-03 18:20:29 +0000 |
|---|---|---|
| committer | Geoff Voelker | 1996-05-03 18:20:29 +0000 |
| commit | b1dd4ab334edc9f1fdedc2b333cabb57933b1010 (patch) | |
| tree | 8dbe91961da240a778c7b969e90fa95daf95cb4b | |
| parent | ff4fcfcd30f70e3e5cd9e79cd2e3a3ad5a7c4609 (diff) | |
| download | emacs-b1dd4ab334edc9f1fdedc2b333cabb57933b1010.tar.gz emacs-b1dd4ab334edc9f1fdedc2b333cabb57933b1010.zip | |
Build and install runemacs.exe.
| -rw-r--r-- | nt/makefile.nt | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/nt/makefile.nt b/nt/makefile.nt index 42567d61ce4..b6208044951 100644 --- a/nt/makefile.nt +++ b/nt/makefile.nt | |||
| @@ -22,7 +22,12 @@ | |||
| 22 | # 9-6-94 | 22 | # 9-6-94 |
| 23 | !include makefile.def | 23 | !include makefile.def |
| 24 | 24 | ||
| 25 | ALL = $(BLD)\addpm.exe | 25 | ALL = $(BLD)\addpm.exe $(BLD)\runemacs.exe |
| 26 | !if $(MSVCNT11) | ||
| 27 | TRES = $(BLD)\emacs.res | ||
| 28 | !else | ||
| 29 | TRES = $(BLD)\emacs.rbj | ||
| 30 | !endif | ||
| 26 | 31 | ||
| 27 | .c{$(BLD)}.obj: | 32 | .c{$(BLD)}.obj: |
| 28 | $(CC) $(CFLAGS) -Fo$@ $< | 33 | $(CC) $(CFLAGS) -Fo$@ $< |
| @@ -33,6 +38,22 @@ $(BLD)\addpm.exe: $(BLD)\addpm.obj | |||
| 33 | $(LINK) -out:$@ -subsystem:console -entry:mainCRTStartup \ | 38 | $(LINK) -out:$@ -subsystem:console -entry:mainCRTStartup \ |
| 34 | $(SYS_LDFLAGS) $** $(BASE_LIBS) $(ADVAPI32) user32.lib | 39 | $(SYS_LDFLAGS) $** $(BASE_LIBS) $(ADVAPI32) user32.lib |
| 35 | 40 | ||
| 41 | # | ||
| 42 | # The resource file. NT 3.10 requires the use of cvtres; even though | ||
| 43 | # it is not necessary on later versions, it is still ok to use it. | ||
| 44 | # | ||
| 45 | $(TRES): emacs.rc | ||
| 46 | $(RC) -Fo$(BLD)\emacs.res $** | ||
| 47 | !if !$(MSVCNT11) | ||
| 48 | $(CVTRES) -r -$(ARCH) -o $@ $(BLD)\emacs.res | ||
| 49 | !endif | ||
| 50 | |||
| 51 | runemacs: $(BLD) $(BLD)\runemacs.exe | ||
| 52 | $(BLD)\runemacs.obj: runemacs.c | ||
| 53 | $(BLD)\runemacs.exe: $(BLD)\runemacs.obj $(TRES) | ||
| 54 | $(LINK) -out:$@ -subsystem:windows -entry:WinMainCRTStartup \ | ||
| 55 | $(SYS_LDFLAGS) $** $(BASE_LIBS) $(ADVAPI32) user32.lib | ||
| 56 | |||
| 36 | # Since Windows 95 does not support multiple commands on one command line | 57 | # Since Windows 95 does not support multiple commands on one command line |
| 37 | # (e.g., in for loops), we cannot use for loops any more. | 58 | # (e.g., in for loops), we cannot use for loops any more. |
| 38 | # SUBDIRS = lib-src src lisp | 59 | # SUBDIRS = lib-src src lisp |
| @@ -71,6 +92,8 @@ install: all emacs.bat | |||
| 71 | $(INSTALL_CMD) | 92 | $(INSTALL_CMD) |
| 72 | cd ..\nt | 93 | cd ..\nt |
| 73 | - $(CP) emacs.bat $(INSTALL_DIR)\bin | 94 | - $(CP) emacs.bat $(INSTALL_DIR)\bin |
| 95 | - $(CP) $(BLD)\addpm.exe $(INSTALL_DIR)\bin | ||
| 96 | - $(CP) $(BLD)\runemacs.exe $(INSTALL_DIR)\bin | ||
| 74 | - $(ADDPM) $(INSTALL_DIR) | 97 | - $(ADDPM) $(INSTALL_DIR) |
| 75 | - $(DEL) ..\same-dir.tst | 98 | - $(DEL) ..\same-dir.tst |
| 76 | - $(DEL) $(INSTALL_DIR)\same-dir.tst | 99 | - $(DEL) $(INSTALL_DIR)\same-dir.tst |
| @@ -88,6 +111,8 @@ fast_install: | |||
| 88 | $(CP) ..\lib-src\DOC $(INSTALL_DIR)\etc | 111 | $(CP) ..\lib-src\DOC $(INSTALL_DIR)\etc |
| 89 | - mkdir $(INSTALL_DIR)\bin | 112 | - mkdir $(INSTALL_DIR)\bin |
| 90 | - $(CP) emacs.bat $(INSTALL_DIR)\bin | 113 | - $(CP) emacs.bat $(INSTALL_DIR)\bin |
| 114 | - $(CP) $(BLD)\addpm.exe $(INSTALL_DIR)\bin | ||
| 115 | - $(CP) $(BLD)\runemacs.exe $(INSTALL_DIR)\bin | ||
| 91 | - $(DEL) ..\same-dir.tst | 116 | - $(DEL) ..\same-dir.tst |
| 92 | - $(DEL) $(INSTALL_DIR)\same-dir.tst | 117 | - $(DEL) $(INSTALL_DIR)\same-dir.tst |
| 93 | echo SameDirTest > $(INSTALL_DIR)\same-dir.tst | 118 | echo SameDirTest > $(INSTALL_DIR)\same-dir.tst |