# Makefile - makefile for target/src/hwif/end
#
# Copyright (c) 2006-2011, 2016 Wind River Systems, Inc.
#
# The right to copy, distribute, modify or otherwise make use
# of this software may be licensed only pursuant to the terms
# of an applicable Wind River license agreement.
#
# modification history
# --------------------
# 02g,17jun16,l_z  include defs.drivers to correct document directory. (VXW6-5624)
# 02f,20sep11,rlg  removing sibyte/broadcom code modules
# 02e,08mar11,bsk  remove most recent addition to doc files, not needed
# 02d,22feb11,bsk  add vxbSmscLan9118End to doc files
# 02c,17jun09,rlg  fix checkin bug
# 02b,15jun09,rlg  update the DOCS file list
# 02a,13may09,rlg  test
# 01z,07jul08,jpb  Changed SMP conditional.
# 01y,22jun08,l_g  add driver Makefile stub
# 01x,08apr08,wap  Rename EMAC driver, move to SMP safe list
# 01w,17mar08,wap  Add Freescale UCC driver
# 01v,03jan08,wap  Add MCF52xx/MCF53xx FEC driver
# 01u,19oct07,wap  Add Raza Micro driver
# 01t,04sep07,ami  Doc Files entries added
# 01s,19jul07,wap  Exclude non-SMP drivers from SMP build
# 01r,03jul07,wap  Add ETSEC driver
# 01q,28may07,wap  Add SMSC LAN9118 driver
# 01p,14feb07,wap  Add GEI driver
# 01o,07feb07,wap  Add FEC driver
# 01n,31jan07,wap  Add TSEC driver
# 01m,07feb07,rcs  Add vxbEmacNet VxBus driver
# 01l,09mar07,pes  Update to new MIPS library structure.
# 01k,17jan07,wap  Add NE2000 driver
# 01j,05jan07,wap  Add NS83902 VxBus driver
# 01i,25aug06,wap  Add 3c905/B/C driver
# 01h,23aug06,wap  Add NatSemi DP83815/6 driver
# 01g,21aug06,wap  Add Yukon I and Infineon AN983 drivers
# 01f,21aug06,wap  Add SCC and FCC drivers
# 01e,24jul06,wap  Add Marvell Yukon II driver
# 01d,08jul06,wap  Add Broadcom SB1 driver
# 01c,14jun06,wap  Add Am79c79x driver
# 01b,02jun06,wap  Add RealTek 8169/8168/8101E driver
# 01a,25may06,wap  Written
#
# DESCRIPTION
# This file contains the makefile rules for building VxBus END drivers
# into the VxWorks library.
#

TGT_DIR=$(WIND_BASE)/target
LIB_BASE_NAME=drv

# Including defs.library to see if _WRS_CONFIG_SMP is defined.
# It must be after LIB_BASE_NAME
include $(TGT_DIR)/h/make/defs.library

EXTRA_INCLUDE=-I$(TGT_DIR)/h/

DOC_FILES =	fei8255xVxbEnd.c rtl8139VxbEnd.c am79c97xVxbEnd.c fccVxbEnd.c \
		am79c97xVxbEnd.c mvYukonIIVxbEnd.c mvYukonVxbEnd.c \
		an983VxbEnd.c ns8381xVxbEnd.c tc3c905VxbEnd.c gei825xxVxbEnd.c \
		vxbSmscLan9118End.c  tsecVxbEnd.c vxbEtsecEnd.c \
		fecVxbEnd.c ne2000VxbEnd.c ns83902VxbEnd.c rtl8169VxbEnd.c \
		vxbUccEnd.c sccVxbEnd.c vxbIbmEmacEnd.c \
		vxbRmiGmacEnd.c

OBJS_COMMON=	fei8255xVxbEnd.o rtl8139VxbEnd.o rtl8169VxbEnd.o
OBJS_COMMON+=	am79c97xVxbEnd.o mvYukonIIVxbEnd.o mvYukonVxbEnd.o
OBJS_COMMON+=	an983VxbEnd.o ns8381xVxbEnd.o tc3c905VxbEnd.o
OBJS_COMMON+=	gei825xxVxbEnd.o vxbSmscLan9118End.o

OBJS_MIPSI64=	vxbRmiGmacEnd.o

OBJS_PPC32=	tsecVxbEnd.o vxbEtsecEnd.o fecVxbEnd.o vxbUccEnd.o
OBJS_PPC32+=	vxbIbmEmacEnd.o

# These drivers aren't SMP safe yet, but they aren't used on SMP
# targets either.

ifndef _WRS_CONFIG_SMP
OBJS_COMMON+=	ns83902VxbEnd.o ne2000VxbEnd.o
OBJS_PPC32+=	fccVxbEnd.o sccVxbEnd.o
endif

OBJS_MCF5400=	fecVxbEnd.o

# This actually covers both MCF5200 and MCF5300 for now.

OBJS_MCF5200=	fecVxbEnd.o

include $(wildcard $(sort *.mk))

OBJS= $(OBJS_COMMON) $(OBJS_$(CPU))

include $(TGT_DIR)/h/make/rules.library
include $(TGT_DIR)/h/make/defs.drivers

EXTRA_DEFINE += -DINCLUDE_VXBUS
CC_OPTIM=$(CC_OPTIM_NORMAL)
