pluto_hdl_adi/library/Makefile

32 lines
1013 B
Makefile
Raw Normal View History

####################################################################################
####################################################################################
## Copyright (c) 2018 - 2023 Analog Devices, Inc.
### SPDX short identifier: BSD-1-Clause
####################################################################################
####################################################################################
2015-04-01 20:26:23 +00:00
include ../quiet.mk
.PHONY: all lib clean clean-all
2015-04-01 20:26:23 +00:00
all: lib
_LIBS := $(dir $(shell find . -mindepth 2 -name Makefile | sort))
2015-04-01 20:26:23 +00:00
# Create virtual targets "$library/all", "$library/clean"
_LIBS_ALL := $(addsuffix all, $(_LIBS))
_LIBS_CLEAN := $(addsuffix clean, $(_LIBS))
2015-04-07 20:32:01 +00:00
$(_LIBS_ALL):
$(MAKE) -C $(@D) $(@F)
2017-02-10 14:32:58 +00:00
$(_LIBS_CLEAN):
$(MAKE) -C $(@D) $(@F)
2015-04-07 20:32:01 +00:00
clean: $(_LIBS_CLEAN)
clean-all: clean
2015-04-01 20:26:23 +00:00
lib: $(_LIBS_ALL)
2017-02-10 14:32:58 +00:00
2015-04-01 20:26:23 +00:00
####################################################################################
####################################################################################