aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2024-11-20 12:30:30 -0700
committerJohn Denker <jsd@av8n.com>2024-11-20 15:49:48 -0700
commitdcf82408f8f9a2d98a7d05c3983aad438d92de18 (patch)
treeb87e1f36d5515bd56147b66e44f5e2303451ea04 /Makefile
parent375101b6cf8d85d4026efa485689969642566816 (diff)
link all the dependencies, not just the newish ones;
otherwise the linkage step will appear to succeed, but very likely the program will fail at runtime, with inappropriate and misleading error messages.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 63bbf05..57560d2 100644
--- a/Makefile
+++ b/Makefile
@@ -26,5 +26,4 @@ initbd.o: initbd.f
initps.o: initps.f
htdp: htdp.o initvl.o initeq.o initbd.o initps.o
- $(FC) $(CFLAGS) $(INCLUDES) -o $@ $? $(LIBS)
-
+ $(FC) $(CFLAGS) $(INCLUDES) -o $@ $^ $(LIBS)