Makefile (1264B)
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 Broadcom Command Monitor (BCM) diagnostic shell 7 # 8 9 LOCALDIR = src/appl/diag 10 11 ifdef IMP_PROTECT 12 CFLAGS += -DIMP_SW_PROTECT 13 endif 14 15 CFGFLAGS += -DSOURCE_CHECK_LIBAPPL 16 17 include ${SDK}/make/Make.config 18 19 ifeq ($(TARGET),vxworks-bmw) 20 $(BLDDIR)/shell.o : CFLAGS += -O0 21 endif 22 23 ifdef COND_LIB_BCMX 24 ifdef COND_LIB_BCMX_DIAG 25 subdirs=bcmx 26 endif 27 endif 28 ifdef ESW_CHIPS 29 subdirs+=esw 30 subdirs+=esw/techsupport 31 endif 32 # 33 # Note that DNX-only state is true for either one of DNX_CHIPS or DNXF_CHIPS 34 # 35 ifdef SAND_CHIPS 36 subdirs+=sand 37 endif 38 ifdef DPP_CHIPS 39 subdirs+=dpp dcmn 40 endif 41 ifdef DFE_CHIPS 42 subdirs+=dfe dcmn 43 endif 44 # 45 ifdef DNX_CHIPS 46 subdirs+=dnx dnxc 47 endif 48 ifdef DNXF_CHIPS 49 subdirs+=dnxf dnxc 50 endif 51 52 ifdef BUILD_EAV_APPL 53 subdirs+=eav 54 endif 55 ifdef COND_LIB_CINT 56 subdirs+=cint 57 ifdef COND_LIB_API_DIAG_BLD 58 subdirs+=api 59 endif 60 endif 61 ifdef COND_LIB_DIAG_APS 62 subdirs+=aps 63 endif 64 ifdef BUILD_PHYMOD 65 subdirs+= phymod 66 endif 67 ifdef PORTMOD_SUPPORT 68 subdirs+= portmod 69 endif 70 71 include ${SDK}/make/Make.subdirs 72 73 lib = libdiag 74 include ${SDK}/make/Make.lib 75 76 include ${SDK}/make/Make.depend