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

Makefile (1084B)


      1 # $Id: Makefile,v 1.16 2013/02/12 16:38:40 hamilton Exp $
      2 # This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      3 # 
      4 # Copyright 2007-2020 Broadcom Inc. All rights reserved.
      5 
      6 SDK = $(CURDIR)
      7 export SDK
      8 
      9 include ${SDK}/make/Make.config
     10 
     11 subdirs=src include
     12 
     13 
     14 ifdef BUILD_KAPS
     15 subdirs += libs/kaps
     16 endif
     17 
     18 ifdef BUILD_PHYMOD
     19 subdirs += libs/phymod
     20 endif
     21 
     22 ifdef BUILD_PCIEPHY
     23 subdirs += libs/pciephy
     24 endif
     25 
     26 ifdef BUILD_FLEXE
     27 subdirs += libs/flexe_core
     28 endif
     29 
     30 include ${SDK}/make/Make.subdirs
     31 
     32 ifdef BUILD_BCMISSU_DLL
     33 include ${SDK}/make/Make.issudll
     34 endif
     35 
     36 tree: ${BLDROOT}/.tree
     37 
     38 #
     39 # Provide TAGS rule to allow ctags/etags to be built at any level in the
     40 # tree.
     41 #
     42 tags::
     43 	$(RM) tags
     44 	$(FOREACH) -find . ".*?\.[c|h]" "-pBuilding tags for: ##" \
     45 		"${CTAGS} -a -o ${SDK}/tags ##"
     46 
     47 etags::
     48 	$(MAKE) CTAGS=${ETAGS} tags
     49 	$(FOREACH) -find . ".*?\.tcl" "-pBuilding tags for: ##" \
     50 		"${ETAGS} -a --lang=none --regex='/proc[ \t]+\([^ \t]+\)/\1/' -o ${SDK}/tags ##"
     51 
     52 ifdef FAST
     53   include ${SDK}/make/Make.fast
     54 endif