svn commit: trunk/busybox

vapier at busybox.net vapier at busybox.net
Wed May 10 18:12:20 UTC 2006


Author: vapier
Date: 2006-05-10 11:12:16 -0700 (Wed, 10 May 2006)
New Revision: 15057

Log:
add implicit rule for %.a to help debugging in subdirs

Modified:
   trunk/busybox/Rules.mak


Changeset:
Modified: trunk/busybox/Rules.mak
===================================================================
--- trunk/busybox/Rules.mak	2006-05-10 17:42:59 UTC (rev 15056)
+++ trunk/busybox/Rules.mak	2006-05-10 18:12:16 UTC (rev 15057)
@@ -353,4 +353,12 @@
 %.o: %.c
 	$(compile.c)
 
+uppercase = $(shell echo $1 | tr '[:lower:]' '[:upper:]')
+%.a:
+	@if test -z "$($(call uppercase,$*)_DIR)" ; then \
+		echo "Invalid target $@" ; \
+		exit 1 ; \
+	fi
+	$(Q)$(MAKE) $($(call uppercase,$*)_DIR)$@
+
 .PHONY: dummy




More information about the busybox-cvs mailing list