brintos

brintos / linux-shallow public Read only

0
0
Text · 461 B · d1cdf2a Raw
26 lines · plain
1# SPDX-License-Identifier: GPL-2.02 3SUBDIRS = lib generated samples4 5all: $(SUBDIRS) libynl.a6 7samples: | lib generated8libynl.a: | lib generated9	@echo -e "\tAR $@"10	@ar rcs $@ lib/ynl.o generated/*-user.o11 12$(SUBDIRS):13	@if [ -f "$@/Makefile" ] ; then \14		$(MAKE) -C $@ ; \15	fi16 17clean distclean:18	@for dir in $(SUBDIRS) ; do \19		if [ -f "$$dir/Makefile" ] ; then \20			$(MAKE) -C $$dir $@; \21		fi \22	done23	rm -f libynl.a24 25.PHONY: all clean distclean $(SUBDIRS)26