# Makefile - makefile for target/src/hwif/end
#
# Copyright (c) 2008, 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
# --------------------
# 01h,17jun16,l_z  include defs.drivers to correct document directory. (VXW6-5624)
# 01g,05jun08,dlk  Use driver-specific makefile fragments for END2 drivers.
# 01f,14may08,dlk  Added vxbDmaEnd2BufIxp4xxPci.o
# 01e,06may08,dlk  Added vxbTsecEnd2.o, .c.
# 01d,01may08,dlk  Added vxbEtsecEnd2.o, .c.  Rename gei825xxVxbEnd2.?
#                  as vxbGei825xxEnd2.?.
# 01c,01may08,dlk  Use the USE_IPDEFINES mechanism to get the preprocessor
#                  macro definitions set up by the ipcom build infrastructure.
# 01b,27mar08,dlk  Added vxbDmaEnd2BufLib.
# 01a,05mar08,dlk  Created based upon target/src/hwif/end/Makefile
#
# DESCRIPTION
# This file contains the makefile rules for building VxBus END2 drivers
# into the VxWorks library.
#

TGT_DIR=$(WIND_BASE)/target
LIB_BASE_NAME=drv

EXTRA_INCLUDE=-I$(TGT_DIR)/h/

DOC_FILES =	vxbDmaEnd2BufLib.c   \
		vxbDmaEnd2BufIxp4xxPci.c

OBJS_COMMON =	vxbDmaEnd2BufLib.o

OBJS_XSCALE =	vxbDmaEnd2BufIxp4xxPci.o

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

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

override USE_IPDEFINES = true

include $(TGT_DIR)/h/make/defs.library
include $(WRVX_COMPBASE)/$(COMP_IPNET2)/osconfig/vxworks/make/defs.ipcom
include $(TGT_DIR)/h/make/rules.library
include $(WRVX_COMPBASE)/$(COMP_IPNET2)/osconfig/vxworks/make/rules.ipcom
include $(TGT_DIR)/h/make/defs.drivers

EXTRA_DEFINE += -DINCLUDE_VXBUS
CC_OPTIM=$(CC_OPTIM_NORMAL)

ifeq (gnu,$(TOOL_FAMILY))
CFLAGS:=$(subst -ansi,-std=gnu99,$(CFLAGS))
endif
