aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rules.mak8
1 files changed, 8 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index 17e136712..ff6ea32db 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -353,4 +353,12 @@ do_elf2flt = @$(disp_elf2flt) ; $(cmd_elf2flt)
353%.o: %.c 353%.o: %.c
354 $(compile.c) 354 $(compile.c)
355 355
356uppercase = $(shell echo $1 | tr '[:lower:]' '[:upper:]')
357%.a:
358 @if test -z "$($(call uppercase,$*)_DIR)" ; then \
359 echo "Invalid target $@" ; \
360 exit 1 ; \
361 fi
362 $(Q)$(MAKE) $($(call uppercase,$*)_DIR)$@
363
356.PHONY: dummy 364.PHONY: dummy