changeset 11742:c50ee074c31a

(TRES): Defined. (TLIB1,TLIB2): Created out of TLIB. (TLIB): Split to reduce time to do library updates. (DOC): Use DOC-X. (strftime.obj): Compile with -Dstrftime=emacs_strftime.
author Richard M. Stallman <rms@gnu.org>
date Sun, 07 May 1995 20:18:55 +0000
parents 4ee0f89a6a63
children 824f238e0c64
files src/makefile.nt
diffstat 1 files changed, 27 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/makefile.nt	Sun May 07 20:17:48 1995 +0000
+++ b/src/makefile.nt	Sun May 07 20:18:55 1995 +0000
@@ -33,8 +33,10 @@
 
 EMACS           = $(BLD)\emacs.exe
 TEMACS          = $(BLD)\temacs.exe
-TLIB            = $(BLD)\temacs.lib
+TLIB1           = $(BLD)\temacs1.lib
+TLIB2           = $(BLD)\temacs2.lib
 TOBJ            = $(BLD)\emacs.obj
+TRES		= $(BLD)\emacs.rbj
 
 LINK_FLAGS      = $(ARCH_LDFLAGS) -stack:0x1000000 -base:0xD00000 -debug:full -debugtype:cv -machine:$(ARCH) -subsystem:console -entry:_start 
 
@@ -107,7 +109,8 @@
 	$(BLD)\region-cache.obj	\
 	$(BLD)\strftime.obj
 
-LIBS =  $(TLIB)                         \
+LIBS =  $(TLIB1)                        \
+	$(TLIB2)			\
 	$(SYS_LIB_DIR)\setargv.obj      \
 	$(SYS_LIB_DIR)\kernel32.lib     \
 	$(SYS_LIB_DIR)\advapi32.lib     \
@@ -132,9 +135,9 @@
 #
 # Make sure we have the DOC file in the right place.
 #
-DOC		= obj\etc\DOC
+DOC		= obj\etc\DOC-X
 $(DOC):;	cd ..\lib-src 
-		- del /q DOC
+		- del /q DOC-X
 		$(MAKE) -f makefile.nt all
 		cd ..\src
 
@@ -151,16 +154,24 @@
 # The undumped executable
 #
 temacs:         $(TEMACS)
-$(TEMACS):      $(BLD) $(TLIB) $(TOBJ)
-		$(LINK) -out:$(TEMACS) $(LINK_FLAGS) $(TOBJ) $(LIBS)
+$(TEMACS):      $(BLD) $(TLIB1) $(TLIB2) $(TOBJ) $(TRES)
+		$(LINK) -out:$(TEMACS) $(LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS)
+
+#
+# The resource file.
+#
+$(TRES):	..\nt\emacs.rc
+		$(RC) -i..\nt -Fo$(BLD)\emacs.res $**
+		$(CVTRES) -r -$(ARCH) -o $@ $(BLD)\emacs.res
 
 #
 # Build the library.  Split up the build into two phases...otherwise we 
 # run out of command line space.
 #
-$(TLIB):        $(OBJ1) $(OBJ2)
-		@- $(AR) -out:$(TLIB) $(OBJ1)
-		@- $(AR) -out:$(TLIB) $(TLIB) $(OBJ2)
+$(TLIB1):       $(OBJ1)
+		@- $(AR) -out:$@ $**
+$(TLIB2):	$(OBJ2)
+		@- $(AR) -out:$@ $**
 
 #
 # Object files.
@@ -800,6 +811,13 @@
 	$(SRC)\blockinput.h \
 	$(SRC)\regex.h
 
+$(BLD)\strftime.obj : \
+	$(SRC)\strftime.c \
+	$(EMACS_ROOT)\src\s\windowsnt.h \
+	$(EMACS_ROOT)\src\m\intel386.h \
+	$(EMACS_ROOT)\src\config.h
+	$(CC) $(CFLAGS) -Dstrftime=emacs_strftime -Fo$@ strftime.c
+
 $(BLD)\sunfns.obj : \
 	$(SRC)\sunfns.c \
 	$(EMACS_ROOT)\src\s\windowsnt.h \