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


      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 Shared Library
      7 #
      8 
      9 LOCALDIR = src/shared
     10 
     11 include ${SDK}/make/Make.config
     12 
     13 $(warning INCLUDE ${SDK}/MAKE/MAKE.CONFIG)
     14 
     15 
     16 #
     17 # For both DPP or DNX, we need to take library xml. However, it is
     18 # NOT taken for 'kernel' compilation (Note that this is not relevant
     19 # for DNX which does not support 'kernel')
     20 #
     21 # For DNX, we do NOT take 'swstate'. In the future, e shall use a
     22 # specifically adapted 'swstate'
     23 #
     24 # Once we have more than 1 family we use SAND_CHIPS
     25 #
     26 
     27 ifdef SAND_CHIPS
     28 # { 
     29 subdirs = shrextend utilex dbx
     30 ifdef DPP_CHIPS
     31 # {
     32 subdirs += swstate
     33 # }
     34 endif
     35 ifdef DNX_CHIPS
     36 # {
     37 ifndef DPP_CHIPS
     38 # {
     39 subdirs += swstate
     40 # }
     41 endif
     42 # }
     43 endif
     44 ifeq (,$(findstring -DNO_FILEIO,$(CFGFLAGS)))
     45 # {
     46 	subdirs += libxml
     47 # }
     48 endif
     49 # }
     50 endif
     51 
     52 include ${SDK}/make/Make.subdirs
     53 
     54 lib = libshared
     55 include ${SDK}/make/Make.lib
     56 
     57 include ${SDK}/make/Make.depend