summaryrefslogtreecommitdiff
path: root/nt
diff options
context:
space:
mode:
authorGeoff Voelker <voelker@cs.washington.edu>1996-05-03 18:20:29 +0000
committerGeoff Voelker <voelker@cs.washington.edu>1996-05-03 18:20:29 +0000
commitc99437f901a7b68c281f4c54d59fcc58d6958590 (patch)
tree227a0fa57d5c3ff0ac68cb48282d1b557eed191c /nt
parent829f6a3a23755d7b1cf542a00f99ae74a22e529d (diff)
downloademacs-c99437f901a7b68c281f4c54d59fcc58d6958590.tar.gz
Build and install runemacs.exe.
Diffstat (limited to 'nt')
-rw-r--r--nt/makefile.nt27
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 @@
# 9-6-94
!include makefile.def
-ALL = $(BLD)\addpm.exe
+ALL = $(BLD)\addpm.exe $(BLD)\runemacs.exe
+!if $(MSVCNT11)
+TRES = $(BLD)\emacs.res
+!else
+TRES = $(BLD)\emacs.rbj
+!endif
.c{$(BLD)}.obj:
$(CC) $(CFLAGS) -Fo$@ $<
@@ -33,6 +38,22 @@ $(BLD)\addpm.exe: $(BLD)\addpm.obj
$(LINK) -out:$@ -subsystem:console -entry:mainCRTStartup \
$(SYS_LDFLAGS) $** $(BASE_LIBS) $(ADVAPI32) user32.lib
+#
+# The resource file. NT 3.10 requires the use of cvtres; even though
+# it is not necessary on later versions, it is still ok to use it.
+#
+$(TRES): emacs.rc
+ $(RC) -Fo$(BLD)\emacs.res $**
+!if !$(MSVCNT11)
+ $(CVTRES) -r -$(ARCH) -o $@ $(BLD)\emacs.res
+!endif
+
+runemacs: $(BLD) $(BLD)\runemacs.exe
+$(BLD)\runemacs.obj: runemacs.c
+$(BLD)\runemacs.exe: $(BLD)\runemacs.obj $(TRES)
+ $(LINK) -out:$@ -subsystem:windows -entry:WinMainCRTStartup \
+ $(SYS_LDFLAGS) $** $(BASE_LIBS) $(ADVAPI32) user32.lib
+
# Since Windows 95 does not support multiple commands on one command line
# (e.g., in for loops), we cannot use for loops any more.
# SUBDIRS = lib-src src lisp
@@ -71,6 +92,8 @@ install: all emacs.bat
$(INSTALL_CMD)
cd ..\nt
- $(CP) emacs.bat $(INSTALL_DIR)\bin
+ - $(CP) $(BLD)\addpm.exe $(INSTALL_DIR)\bin
+ - $(CP) $(BLD)\runemacs.exe $(INSTALL_DIR)\bin
- $(ADDPM) $(INSTALL_DIR)
- $(DEL) ..\same-dir.tst
- $(DEL) $(INSTALL_DIR)\same-dir.tst
@@ -88,6 +111,8 @@ fast_install:
$(CP) ..\lib-src\DOC $(INSTALL_DIR)\etc
- mkdir $(INSTALL_DIR)\bin
- $(CP) emacs.bat $(INSTALL_DIR)\bin
+ - $(CP) $(BLD)\addpm.exe $(INSTALL_DIR)\bin
+ - $(CP) $(BLD)\runemacs.exe $(INSTALL_DIR)\bin
- $(DEL) ..\same-dir.tst
- $(DEL) $(INSTALL_DIR)\same-dir.tst
echo SameDirTest > $(INSTALL_DIR)\same-dir.tst