maketools.mk (910B)
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 # PHYMOD make tools 7 # 8 9 # Compiler command for generating dependencies 10 PHYMOD_DEPEND ?= $(CC) -M -P $(CPPFLAGS) $< 11 12 # Perl is required for portable build tools 13 ifndef PHYMOD_PERL 14 PHYMOD_PERL = perl 15 endif 16 17 ifeq (n/a,$(PHYMOD_PERL)) 18 # 19 # If perl is not available, try building using standard UNIX utilities 20 # 21 RM = rm -f 22 MKDIR = mkdir -p 23 CP = cp -d 24 ECHO = echo 25 PRINTF = printf 26 else 27 # 28 # If perl is available, use portable build tools 29 # 30 MKTOOL = $(PHYMOD_PERL) $(PHYMOD)/make/mktool.pl 31 RM = $(MKTOOL) -rm 32 MKDIR = $(MKTOOL) -md 33 FOREACH = $(MKTOOL) -foreach 34 CP = $(MKTOOL) -cp 35 MAKEDEP = $(MKTOOL) -dep 36 ECHO = $(MKTOOL) -echo 37 PRINTF = $(MKTOOL) -echo -n 38 MKBEEP = $(MKTOOL) -beep 39 endif