summaryrefslogtreecommitdiff
path: root/nt
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-06-15 15:27:42 +0000
committerRichard M. Stallman <rms@gnu.org>1995-06-15 15:27:42 +0000
commit0a2131c593f9eaed65d93d9019cfcdf0e635c788 (patch)
treede5dae1e64b3e79b95e265e8fa06b7de15d81cb4 /nt
parentbb8152dea9dbcd7cf76d912fd397a26e75fa84fb (diff)
downloademacs-0a2131c593f9eaed65d93d9019cfcdf0e635c788.tar.gz
Define .c to .obj suffix rule.
(addpm.obj): Compile directly, use CFLAGS. (addpm.exe): Link from addpm.obj.
Diffstat (limited to 'nt')
-rw-r--r--nt/makefile.nt11
1 files changed, 6 insertions, 5 deletions
diff --git a/nt/makefile.nt b/nt/makefile.nt
index f3ce9baab48..5be2d02831d 100644
--- a/nt/makefile.nt
+++ b/nt/makefile.nt
@@ -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.