1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 SUBDIRS = lib generated samples 3 SUBDIRS = lib generated samples 4 4 5 all: $(SUBDIRS) libynl.a 5 all: $(SUBDIRS) libynl.a 6 6 7 samples: | lib generated 7 samples: | lib generated 8 libynl.a: | lib generated 8 libynl.a: | lib generated 9 @echo -e "\tAR $@" 9 @echo -e "\tAR $@" 10 @ar rcs $@ lib/ynl.o generated/*-user. 10 @ar rcs $@ lib/ynl.o generated/*-user.o 11 11 12 $(SUBDIRS): 12 $(SUBDIRS): 13 @if [ -f "$@/Makefile" ] ; then \ 13 @if [ -f "$@/Makefile" ] ; then \ 14 $(MAKE) -C $@ ; \ 14 $(MAKE) -C $@ ; \ 15 fi 15 fi 16 16 17 clean distclean: 17 clean distclean: 18 @for dir in $(SUBDIRS) ; do \ 18 @for dir in $(SUBDIRS) ; do \ 19 if [ -f "$$dir/Makefile" ] ; t 19 if [ -f "$$dir/Makefile" ] ; then \ 20 $(MAKE) -C $$dir $@; \ 20 $(MAKE) -C $$dir $@; \ 21 fi \ 21 fi \ 22 done 22 done 23 rm -f libynl.a 23 rm -f libynl.a 24 24 25 .PHONY: all clean distclean $(SUBDIRS) 25 .PHONY: all clean distclean $(SUBDIRS)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.