changeset 20827:b44ff1c746fe

Add standard depend target.
author diego
date Fri, 10 Nov 2006 18:31:12 +0000
parents bad45d01be6a
children 684c8ecfbfcc
files loader/Makefile
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/loader/Makefile	Fri Nov 10 18:28:53 2006 +0000
+++ b/loader/Makefile	Fri Nov 10 18:31:12 2006 +0000
@@ -38,5 +38,12 @@
 	$(AR) -r libloader.a $(OBJS) stubs.o
 	$(RANLIB) libloader.a
 
-dep:
-	echo "dependency not required/supported"
+dep depend:
+	$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
+
+#
+# include dependency files if they exist
+#
+ifneq ($(wildcard .depend),)
+include .depend
+endif