# Makefile - makefile for bsp/src/drv/CAN
#
# Copyright (c) 2001, 2004-2005, 2007-2008, 2012-2013 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
# -------------------- 
# 01p,15apr13,hcl remove compilation support in SMP. (WIND00395068) 
# 01o,30nov12,wqi Added TIam335x dcan support
# 01n,30dec08,x_f Added mpc5121e mscan support
# 01m,20aug08,j_z Added support for tolapai
# 01l,16jul08,pee VSB.
# 01k,13jul08,pee VSB adaptation.
# 01j,09nov07,mdo Add bsptoucan and bspflexcan libraries
# 01i,18jun05,tpw Refactor doc build settings.
# 01h,15may05,tpw Update documentation build settings.
# 01g,18apr05,lsg removed building adlink, biscayne and tahoe amanda board
#                 objects
# 01f,29mar05,dat update for B6, using LIB_BASE_NAME
# 01f,07oct04,lsg remove ADDED_CFLAGS. 
# 01e,17sep04,lsg modify ref gen file list
# 01d,30aug04,mjk updated to build documentation.
# 01c,25jun04,bjn Make motMsCan.o and mpc5200Can.o PPC603 specific
# 01b,26feb04,bjn Added mpc5200 mscan support
# 01a,20dec01,dnb created
#
# DESCRIPTION
# This file contains the makefile rules for building the vx library
#

TGT_DIR=$(WIND_BASE)/target

LIB_BASE_NAME=wnCAN

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

EXTRA_INCLUDE=-I$(WIND_BASE)/target/h/

OBJS_PPC32 = motMsCan.o mpc5200Can.o mpc5121eCan.o

OBJS_PENTIUM4 = can_fifo.o icp_can.o

OBJS_COMMON = wnCAN.o can_api.o canBoard.o canController.o canFixedLL.o \
      esd_pc104_200.o esd_pci_200.o hcan2.o i82527.o am335XCan.o TiDcan.o \
      msmcan.o sja1000.o wncanDevIO.o

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

ifndef _WRS_CONFIG_COMPONENT_CAN
all : clean
endif

ifdef _WRS_CONFIG_SMP
all : rclean
endif

DOC_FILES = can_api.c       \
            motMsCan.c      \
	   ../../../config/comps/src/bsptoucan.c  \
	   ../../../config/comps/src/bspflexcan.c 

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

CC_OPTIM=$(CC_OPTIM_DRIVER)

include $(WIND_BASE)/vx_components/$(COMP_CAN)/config/defs.docs
