openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

Make.subdirs (825B)


      1 # 
      2 # This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      3 # 
      4 # Copyright 2007-2019 Broadcom Inc. All rights reserved.
      5 #
      6 # Make rules/targets for handling subdirectories
      7 
      8 .PHONY: ${subdirs}
      9 
     10 all:: ${subdirs}
     11 ifdef QUIET
     12 	@$(ECHO) Subdirectory build for ${subdirs}
     13 endif
     14 
     15 ${subdirs}::
     16 	$Q$(MAKE) -C $@ kernel_version=$(kernel_version) LINUX_MAKE_SHARED_LIB=${LINUX_MAKE_SHARED_LIB} SHAREDLIBVER=${SHAREDLIBVER}
     17 
     18 ifeq "$(HOSTTYPE)" "Windows2000PC"
     19 clean clean_d install distclean::
     20 ifdef QUIET
     21 	@$(ECHO) Subdirectory $@ for ${subdirs}
     22 endif
     23 	$Q$(FOREACH) "$(subdirs)" "${MAKE} -C ## $@"
     24 else
     25 clean clean_d install distclean::
     26 ifdef QUIET
     27 	@$(ECHO) Subdirectory $@ for ${subdirs}
     28 endif
     29 	@(for name in $(subdirs); do $(MAKE) -C $$name $@; done)
     30 endif