Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / net / ynl / Makefile
blobd1cdf2a8f8266fbe5034efa5c0f08111c177992d
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
9 @echo -e "\tAR $@"
10 @ar rcs $@ lib/ynl.o generated/*-user.o
12 $(SUBDIRS):
13 @if [ -f "$@/Makefile" ] ; then \
14 $(MAKE) -C $@ ; \
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
25 .PHONY: all clean distclean $(SUBDIRS)