# Makefile - makefile for target/src/hwif/storage
#
# Copyright (c) 2007-2009, 2011, 2013, 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
# --------------------
# 01j,17jun16,l_z  include defs.drivers to correct document directory. (VXW6-5624)
# 01i,20nov13,e_d  remove APIs wrongly published. (WIND00444661)
# 01h,18sep13,e_d  add new SD/MMC/BLK driver
# 01g,18nov11,e_d  add vxbSataLib.o and vxbSataXbd.o
# 01f,21jan11,my_  add vxbSdhcStorage.o
# 01e,18aug09,b_m  add SD/MMC library support.
# 01d,07jul08,x_s  add driver Makefile stub
# 01c,05sep07,vik  Apigen changes
# 01b,20aug07,pmr  add vxbIntelIchStorage.o
# 01a,29mar07,dee  written
#
# DESCRIPTION
# This file contains the makefile rules for building vxBus mass storage
# drivers into the VxWorks library.
#

TGT_DIR=$(WIND_BASE)/target

DOC_FILES   = vxbSI31xxStorage.c vxbIntelIchStorage.c vxbIntelIchStorageShow.c \
              vxbSdMmcLib.c vxbSdMmcXbd.c vxbSdhcStorage.c vxbSataLib.c vxbSataXbd.c

#DOC_CHAPTER = Driver_APIs
#DOC_DIR     = com.windriver.ide.doc.vxworks_6.0/vxworks_drivers_api_reference_6.0

LIB_BASE_NAME=drv

EXTRA_INCLUDE=-I$(TGT_DIR)/src/hwif/h

OBJS_COMMON  = vxbSI31xxStorage.o vxbIntelIchStorage.o vxbIntelIchStorageShow.o \
               vxbSdMmcLib.o vxbSdMmcXbd.o vxbSdhcStorage.o vxbSataLib.o vxbSataXbd.o \
               blkXbd.o vxbMmcStorage.o vxbSdStorage.o 

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

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

EXTRA_DEFINE +=	-DINCLUDE_VXBUS

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

CC_OPTIM=$(CC_OPTIM_NORMAL)
