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

maketools.mk (908B)


      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 # PCIEG3 make tools
      7 #
      8 
      9 # Compiler command for generating dependencies
     10 PCIEG3_DEPEND ?= $(CC) -M -P $(CPPFLAGS) $<
     11 
     12 # Perl is required for portable build tools
     13 ifndef PCIEG3_PERL
     14 PCIEG3_PERL = perl
     15 endif
     16 
     17 ifeq (n/a,$(PCIEG3_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  = $(PCIEG3_PERL) $(PCIEG3)/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