changeset 17:4969bd6f3b7d

Fixed up glitch with Makefile causing binaries to always be considered out of date
author lost@l-w.ca
date Sat, 22 Jan 2011 17:33:54 -0700
parents 2f98cf1558e1
children 8eddaa2ab6c0
files Makefile
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Jan 22 17:00:15 2011 -0700
+++ b/Makefile	Sat Jan 22 17:33:54 2011 -0700
@@ -44,7 +44,7 @@
 lwlib_deps := $(lwlib_srcs:.c=.d)
 lwobjdump_deps := $(lwobjdump_srcs:.c=.d)
 
-.PHONY: lwlink lwasm lwar lwobjdump$(PROGSUFFIX)
+.PHONY: lwlink lwasm lwar lwobjdump
 lwlink: lwlink/lwlink$(PROGSUFFIX)
 lwasm: lwasm/lwasm$(PROGSUFFIX)
 lwar: lwar/lwar$(PROGSUFFIX)
@@ -63,13 +63,14 @@
 	@$(CC) -o $@ $(lwobjdump_objs) $(LDFLAGS)
 
 lwar/lwar$(PROGSUFFIX): $(lwar_objs) lwlib lwar/rules.make
-	@echo Linknig $@
+	@echo Linking $@
 	@$(CC) -o $@ $(lwar_objs) $(LDFLAGS)
 
 test: test.c lwlib
 	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ test.c $(LDFLAGS)
 
-.PHONY: lwlib
+#.PHONY: lwlib
+.INTERMEDIATE: lwlib
 lwlib: lwlib/liblw.a
 
 lwlib/liblw.a: $(lwlib_objs) lwlib/rules.make