Makefile (3359B)
1 # 2 # 3 # This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 4 # 5 # Copyright 2007-2019 Broadcom Inc. All rights reserved. 6 # 7 # Makefile for esw subdirectory 8 # 9 10 LOCALDIR = src/soc/esw 11 12 include ${SDK}/make/Make.config 13 14 ifdef BCM_56640_A0 15 SUBDIR_TRIUMPH3 = triumph3 16 endif 17 18 ifdef BCM_56850_A0 19 SUBDIR_TDM = tdm 20 SUBDIR_TRIUMPH3 = triumph3 21 SUBDIR_TRIDENT2 = trident2 22 endif 23 24 ifdef BCM_56860_A0 25 SUBDIR_TDM = tdm 26 SUBDIR_TRIUMPH3 = triumph3 27 SUBDIR_TRIDENT2 = trident2 28 SUBDIR_TRIDENT2P = trident2p 29 endif 30 31 ifdef BCM_56340_A0 32 SUBDIR_TRIUMPH3 = triumph3 33 SUBDIR_TRIDENT2 = trident2 34 endif 35 36 ifdef BCM_56450_A0 37 SUBDIR_KATANA2 = katana2 38 SUBDIR_TRIUMPH3 = triumph3 39 endif 40 41 ifdef BCM_53400_A0 42 SUBDIR_GHREYHOUND = greyhound 43 endif 44 45 ifdef BCM_56960_A0 46 SUBDIR_TDM = tdm 47 SUBDIR_TRIUMPH3 = triumph3 48 SUBDIR_TRIDENT2 = trident2 49 SUBDIR_TOMAHAWK = tomahawk 50 endif 51 52 ifdef BCM_56965_A0 53 SUBDIR_TDM = tdm 54 SUBDIR_TRIUMPH3 = triumph3 55 SUBDIR_TRIDENT2 = trident2 56 SUBDIR_TOMAHAWK = tomahawk 57 endif 58 59 ifdef BCM_56160_A0 60 SUBDIR_GHREYHOUND = greyhound 61 SUBDIR_HURRICANE3 = hurricane3 62 endif 63 64 ifdef BCM_53540_A0 65 SUBDIR_GHREYHOUND = greyhound 66 SUBDIR_HURRICANE3 = hurricane3 67 endif 68 69 ifdef BCM_53570_A0 70 SUBDIR_TDM = tdm 71 SUBDIR_GHREYHOUND = greyhound 72 SUBDIR_HURRICANE3 = hurricane3 73 SUBDIR_GREYHOUND2 = greyhound2 74 endif 75 76 ifdef BCM_56260_A0 77 SUBDIR_SABER2 = saber2 78 endif 79 80 ifdef BCM_56970_A0 81 SUBDIR_TDM = tdm 82 SUBDIR_TRIUMPH3 = triumph3 83 SUBDIR_TRIDENT2 = trident2 84 SUBDIR_TOMAHAWK = tomahawk 85 SUBDIR_TOMAHAWK2 = tomahawk2 86 SUBDIR_FLEXPORT = flexport 87 endif 88 89 ifdef BCM_56270_A0 90 SUBDIR_METROLITE = metrolite 91 endif 92 93 ifdef BCM_56670_A0 94 SUBDIR_TDM = tdm 95 SUBDIR_MONTEREY =monterey 96 SUBDIR_APACHE = apache 97 SUBDIR_TRIUMPH3 = triumph3 98 SUBDIR_TRIDENT2 = trident2 99 SUBDIR_TRIDENT2P = trident2p 100 endif 101 102 ifdef BCM_56560_A0 103 SUBDIR_TDM = tdm 104 SUBDIR_APACHE = apache 105 SUBDIR_TRIUMPH3 = triumph3 106 SUBDIR_TRIDENT2 = trident2 107 SUBDIR_TRIDENT2P = trident2p 108 endif 109 110 ifdef BCM_56980_A0 111 SUBDIR_TRIUMPH3 = triumph3 112 SUBDIR_TRIDENT2 = trident2 113 SUBDIR_TOMAHAWK = tomahawk 114 SUBDIR_TOMAHAWK3 = tomahawk3 115 # TH2 dependencies in TH3 116 SUBDIR_TDM = tdm 117 SUBDIR_TOMAHAWK2 = tomahawk2 118 SUBDIR_FLEXPORT = flexport 119 endif 120 121 ifdef BCM_56870_A0 122 SUBDIR_TDM = tdm 123 SUBDIR_TRIUMPH3 = triumph3 124 SUBDIR_TRIDENT2 = trident2 125 SUBDIR_TOMAHAWK = tomahawk 126 SUBDIR_TRIDENT3 = trident3 127 SUBDIR_TRIDENT2P = trident2p 128 SUBDIR_FLEXPORT = flexport 129 endif 130 131 ifdef BCM_56370_A0 132 SUBDIR_TDM = tdm 133 SUBDIR_TRIUMPH3 = triumph3 134 SUBDIR_TRIDENT2 = trident2 135 SUBDIR_TOMAHAWK = tomahawk 136 SUBDIR_TRIDENT3 = trident3 137 SUBDIR_HELIX5 = helix5 138 SUBDIR_TRIDENT2P = trident2p 139 SUBDIR_FLEXPORT = flexport 140 endif 141 142 ifdef BCM_56770_A0 143 SUBDIR_TDM = tdm 144 SUBDIR_TRIUMPH3 = triumph3 145 SUBDIR_TRIDENT2 = trident2 146 SUBDIR_TOMAHAWK = tomahawk 147 SUBDIR_TRIDENT3 = trident3 148 SUBDIR_MAVERICK2 = maverick2 149 SUBDIR_TRIDENT2P = trident2p 150 SUBDIR_FLEXPORT = flexport 151 endif 152 153 subdirs := $(SUBDIR_TRIUMPH3) $(SUBDIR_TRIDENT2) $(SUBDIR_KATANA2) $(SUBDIR_TOMAHAWK) $(SUBDIR_GHREYHOUND) $(SUBDIR_TRIDENT2P) $(SUBDIR_TDM) $(SUBDIR_ALPM) $(SUBDIR_SABER2) $(SUBDIR_HURRICANE3) $(SUBDIR_APACHE) $(SUBDIR_METROLITE) $(SUBDIR_TOMAHAWK2) $(SUBDIR_FLEXPORT) $(SUBDIR_GREYHOUND2) $(SUBDIR_TRIDENT3) $(SUBDIR_HELIX5) $(SUBDIR_MAVERICK2) $(SUBDIR_TOMAHAWK3) $(SUBDIR_MONTEREY) 154 155 include ${SDK}/make/Make.subdirs 156 157 lib = libsoc_esw 158 include ${SDK}/make/Make.lib 159 160 include ${SDK}/make/Make.depend 161 162