Makefile (584B)
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 eth driver 7 # 8 9 LOCALDIR = systems/drv/eth 10 11 include ${SDK}/make/Make.config 12 13 ifeq (${targetbase},posix) 14 CFLAGS += -DLINUX 15 endif 16 17 ifeq (${targetbase},unix) 18 CFLAGS += -DLINUX 19 endif 20 21 ifeq (${targetbase},linux) 22 CFLAGS += -DLINUX -DKERNEL 23 endif 24 25 ifeq (${targetbase},vxworks) 26 CFLAGS += -DVXWORKS 27 endif 28 29 lib = libeth 30 include ${SDK}/make/Make.lib 31 32 include ${SDK}/make/Make.depend