mirror of
https://git.busybox.net/busybox.git
synced 2024-12-12 15:03:27 +08:00
add implicit rule for %.a to help debugging in subdirs
This commit is contained in:
parent
094b9f7e1d
commit
6143c0719b
@ -353,4 +353,12 @@ do_elf2flt = @$(disp_elf2flt) ; $(cmd_elf2flt)
|
||||
%.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
|
||||
|
Loading…
Reference in New Issue
Block a user