# Makefile - makefile for target/src/hwif/busCtlr/usb/hcd/uhcd
#
# modification history
# --------------------
# 01a,19nov08,mze  do not build for simulator
# 01d,20aug08.w_x  Removed usbUhcdManagePort.c
# 01c,27may08,jrp  Optimization change.
# 01b,28oct04,tpw  Add include of defs.docs for doc build settings.
# 01a,25jan00,cfc  created
#
# DESCRIPTION
# This file contains the makefile rules for building the usb2 usbd library
#
#*/


TGT_DIR=$(WIND_BASE)/target

DOC_FILES=	usbUhcdInitialization.c usbUhcdIsr.c usbUhcdRhEmulate.c usbUhcdScheduleQSupport.c usbUhcdScheduleQueue.c usbUhcdScheduleQWaitForSignal.c usbUhcdSupport.c

LIB_BASE_NAME	= usb2

EXTRA_INCLUDE=-I$(TGT_DIR)/src/hwif/busCtlr/usb/hcd/uhcd -I$(TGT_DIR)/h/usb

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

ifeq ($(findstring $(VX_CPU_FAMILY), simlinux simpc simso),)
OBJS=		usbUhcdInitialization.o usbUhcdIsr.o usbUhcdRhEmulate.o \
		usbUhcdScheduleQSupport.o usbUhcdScheduleQueue.o \
		usbUhcdScheduleQWaitForSignal.o usbUhcdSupport.o
else
OBJS=
endif

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

#
# Removed as part of the vxBus optimizations
#CC_OPTIM = $(CC_OPTIM_DRIVER)
#
DOC_DIR         = $(DOCS_ROOT)/vxworks/ref/usb2
DOC_CHAPTER     = USB2_libraries
DOC_OPTS        = $(DOC_OPTS_MAN) -category USB2

DOC_AREA_USB	= usb2
-include $(TGT_DIR)/h/make/config/comps/usb/defs.docs
