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


      1 # -*- Makefile -*-
      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 SDK :=$(shell if [ -n "$$SDK" ] ; then\
      8 	echo $$SDK;\
      9 	else\
     10 	cd $(dir $(lastword $(MAKEFILE_LIST))); while /usr/bin/test ! -e RELEASE ; do \
     11 	dir=`cd ../;pwd`;			\
     12 	if [ "$$dir" = "/" ] ; then		\
     13 	   echo Cannot find SDK in $(lastword $(MAKEFILE_LIST)) 1>&2;		\
     14 	   exit 1;				\
     15 	fi ;					\
     16 	cd $$dir;				\
     17 	done ;					\
     18 	pwd;					\
     19 	fi)
     20 
     21 ifeq ($(SDK),)					
     22 $(error Please run this in a tree)		
     23 endif 				
     24 
     25 export SDK
     26 
     27 override kernel_version=2_4
     28 platform=x86-rh72
     29 
     30 LINUX_MAKE_USER=1
     31 include ${SDK}/make/Make.linux