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