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


      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 # Makefile for BCM5 driver Library
      7 #
      8 
      9 LOCALDIR = src/bcm
     10 
     11 CFGFLAGS += -DSOURCE_CHECK_LIBBCM
     12 
     13 include ${SDK}/make/Make.config
     14 
     15 subdirs = common
     16 ifneq (,$(findstring -DBCM_TOMAHAWK3_SUPPORT,$(CFGFLAGS)))
     17 subdirs+=tomahawk3
     18 endif
     19 $(error, $subdirs)
     20 ifneq (,$(findstring -DBCM_ESW_SUPPORT,$(CFGFLAGS)))
     21 subdirs+=esw
     22 endif
     23 ifneq (,$(findstring -DBCM_SHADOW_SUPPORT,$(CFGFLAGS)))
     24 subdirs+=shadow
     25 endif
     26 ifneq (,$(findstring -DBCM_RPC_SUPPORT,$(CFGFLAGS)))
     27 subdirs+=rpc
     28 subdirs+=compat
     29 endif
     30 ifneq (,$(findstring -DBCM_PETRA_SUPPORT,$(CFGFLAGS)))
     31 subdirs+=dpp
     32 endif
     33 ifneq (,$(findstring -DBCM_DFE_SUPPORT,$(CFGFLAGS)))
     34 subdirs+=dfe
     35 endif
     36 ifneq (,$(findstring -DBCM_DNX_SUPPORT,$(CFGFLAGS)))
     37 subdirs+=dnx
     38 endif
     39 ifneq (,$(findstring -DBCM_DNXF_SUPPORT,$(CFGFLAGS)))
     40 subdirs+=dnxf
     41 endif
     42 
     43 include ${SDK}/make/Make.subdirs
     44 
     45 lib = libbcm
     46 include ${SDK}/make/Make.lib
     47 
     48 include ${SDK}/make/Make.depend
     49