1 # SPDX-License-Identifier: GPL-2.0
3 SUBDIRS
= lib generated samples
5 all: $(SUBDIRS
) libynl.a
7 samples
: | lib generated
8 libynl.a
: | lib generated
10 @
ar rcs
$@ lib
/ynl.o generated
/*-user.o
13 @if
[ -f
"$@/Makefile" ] ; then \
18 @for
dir in
$(SUBDIRS
) ; do \
19 if
[ -f
"$$dir/Makefile" ] ; then \
20 $(MAKE
) -C
$$dir $@
; \
25 .PHONY
: all clean distclean $(SUBDIRS
)