changeset 12236:791ee9839187

Define .c to .obj suffix rule. (addpm.obj): Compile directly, use CFLAGS. (addpm.exe): Link from addpm.obj.
author Richard M. Stallman <rms@gnu.org>
date Thu, 15 Jun 1995 15:27:42 +0000
parents 6d2e893b7ff7
children f5ad41d728d3
files nt/makefile.nt
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/nt/makefile.nt	Thu Jun 15 13:57:17 1995 +0000
+++ b/nt/makefile.nt	Thu Jun 15 15:27:42 1995 +0000
@@ -23,13 +23,14 @@
 
 ALL		= $(BLD)\addpm.exe
 
+.c{$(BLD)}.obj:
+		  $(CC) $(CFLAGS) -Fo$@ $<
+
 addpm:		  $(BLD) $(BLD)\addpm.exe
-$(BLD)\addpm.exe: $(BLD)\addpm.obj
 $(BLD)\addpm.obj: addpm.c
-		  $(CC) $(CFLAGS) -nologo -out:$@ addpm.c \
-			-link -out:$(BLD)\addpm.exe \
-			-subsystem:windows -entry:WinMainCRTStartup \
-			$(SYS_LDFLAGS) $(BASE_LIBS) user32.lib
+$(BLD)\addpm.exe: $(BLD)\addpm.obj
+		  $(LINK) -out:$@ -subsystem:windows -entry:WinMainCRTStartup \
+		  $(SYS_LDFLAGS) $** $(BASE_LIBS) 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.