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