# Makefile - makefile for src/hwif/sd
#
# Copyright (c) 2012, 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
# --------------------
# 01d,28jan16,g_x  add vxbOcteonSdhcCtrl.o (US74580)
# 01c,22jan16,myt  add support for SD/eMMC new driver. (VXW6-83708)
# 01b,20nov13,e_d  remove APIs wrongly published. (WIND00444661)
# 01a,04jan12,e_d  written.

# DESCRIPTION
# This file contains the makefile rules for building the vxBus library
#

TGT_DIR=$(WIND_BASE)/target

LIB_BASE_NAME = drv

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

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

OBJS_COMMON = vxbSdhcCtrl.o vxbFslSdhcCtrl.o vxbPciSdhcCtrl.o vxbTiMmchsCtrl.o vxbZynqSdhcCtrl.o vxbOcteonSdhcCtrl.o

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

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

CC_OPTIM=$(CC_OPTIM_NORMAL)
include  $(TGT_DIR)/h/make/defs.drivers
