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 (1358B)


      1 #
      2 #  Copyright 2017 Broadcom
      3 #  
      4 #  This program is free software; you can redistribute it and/or modify
      5 #  it under the terms of the GNU General Public License, version 2, as
      6 #  published by the Free Software Foundation (the "GPL").
      7 #  
      8 #  This program is distributed in the hope that it will be useful, but
      9 #  WITHOUT ANY WARRANTY; without even the implied warranty of
     10 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     11 #  General Public License version 2 (GPLv2) for more details.
     12 #  
     13 #  You should have received a copy of the GNU General Public License
     14 #  version 2 (GPLv2) along with this source code.
     15 #
     16 # $Id: Make.subdirs,v 1.8 Broadcom SDK $
     17 # $Copyright: (c) 2005 Broadcom Corp.
     18 # All Rights Reserved.$
     19 #
     20 # Make rules/targets for handling subdirectories
     21 
     22 .PHONY: ${subdirs}
     23 
     24 all:: ${subdirs}
     25 ifdef QUIET
     26 	@$(ECHO) Subdirectory build for ${subdirs}
     27 endif
     28 
     29 ${subdirs}::
     30 	$Q$(MAKE) -C $@ kernel_version=$(kernel_version) LINUX_MAKE_SHARED_LIB=${LINUX_MAKE_SHARED_LIB} SHAREDLIBVER=${SHAREDLIBVER}
     31 
     32 ifeq "$(HOSTTYPE)" "Windows2000PC"
     33 clean clean_d install distclean::
     34 ifdef QUIET
     35 	@$(ECHO) Subdirectory $@ for ${subdirs}
     36 endif
     37 	$Q$(FOREACH) "$(subdirs)" "${MAKE} -C ## $@"
     38 else
     39 clean clean_d install distclean::
     40 ifdef QUIET
     41 	@$(ECHO) Subdirectory $@ for ${subdirs}
     42 endif
     43 	@(for name in $(subdirs); do $(MAKE) -C $$name $@; done)
     44 endif