]> git.eshelyaron.com Git - emacs.git/commitdiff
Define .c to .obj suffix rule.
authorRichard M. Stallman <rms@gnu.org>
Thu, 15 Jun 1995 15:27:42 +0000 (15:27 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 15 Jun 1995 15:27:42 +0000 (15:27 +0000)
(addpm.obj): Compile directly, use CFLAGS.
(addpm.exe): Link from addpm.obj.

nt/makefile.nt

index f3ce9baab4802f4118208e29764b4144da7dd268..5be2d02831d7b615bcdda92f6c294bd34cef4bfd 100644 (file)
 
 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.