1 2user_libs_sub_dirs=libc libsystem libKeyboard 3 4 5ECHO: 6 @echo "$@" 7 8$(user_libs_sub_dirs): ECHO 9 10 $(MAKE) -C $@ all CFLAGS="$(CFLAGS) -I $(shell pwd)" 11 12all: $(user_libs_sub_dirs) 13 14clean: 15 @list='$(user_libs_sub_dirs)'; for subdir in $$list; do \ 16 echo "Clean in dir: $$subdir";\ 17 cd $$subdir && $(MAKE) clean;\ 18 cd .. ;\ 19 done