1 # SPDX-License-Identifier: GPL-2.0 2 3 SUBDIRS = lib generated samples 4 5 all: $(SUBDIRS) libynl.a 6 7 samples: | lib generated 8 libynl.a: | lib generated 9 @echo -e "\tAR $@" 10 @ar rcs $@ lib/ynl.o generated/*-user.o 11 12 $(SUBDIRS): 13 @if [ -f "$@/Makefile" ] ; then \ 14 $(MAKE) -C $@ ; \ 15 fi 16 17 clean distclean: 18 @for dir in $(SUBDIRS) ; do \ 19 if [ -f "$$dir/Makefile" ] ; then \ 20 $(MAKE) -C $$dir $@; \ 21 fi \ 22 done 23 rm -f libynl.a 24 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.