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


      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 SDK = $(CURDIR)
      7 export SDK
      8 
      9 include ${SDK}/make/Make.config
     10 
     11 subdirs=src include
     12 
     13 ifdef BUILD_PHYMOD
     14 subdirs += libs/phymod
     15 endif
     16 
     17 ifdef BUILD_PCIEG3
     18 subdirs += libs/pcieg3
     19 endif
     20 
     21 include ${SDK}/make/Make.subdirs
     22 
     23 tree: ${BLDROOT}/.tree
     24 
     25 #
     26 # Provide TAGS rule to allow ctags/etags to be built at any level in the
     27 # tree.
     28 #
     29 tags::
     30 	$(RM) tags
     31 	$(FOREACH) -find . ".*?\.[c|h]" "-pBuilding tags for: ##" \
     32 		"${CTAGS} -a -o ${SDK}/tags ##"
     33 
     34 etags::
     35 	$(MAKE) CTAGS=${ETAGS} tags
     36 	$(FOREACH) -find . ".*?\.tcl" "-pBuilding tags for: ##" \
     37 		"${ETAGS} -a --lang=none --regex='/proc[ \t]+\([^ \t]+\)/\1/' -o ${SDK}/tags ##"
     38 
     39 ifdef FAST
     40   include ${SDK}/make/Make.fast
     41 endif