# Makefile - makefile for src/hwif/dmaCtlr
#
# Copyright (c) 2007-2008 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,19aug08,j_z  Add support for external makefiles
# 01g,07jul08,jpb  Changed SMP conditional.
# 01f,10mar08,h_k  changed CC_OPTIM_DRIVER to CC_OPTIM_NORMAL.
# 01e,05sep07,pdg  updated DOC_FILES
# 01d,26jul07,h_k  added vxbIbmMalDma.o.
# 01c,19jul07,wap  Exclude non-SMP drivers from SMP build
# 01b,14mar07,wap  Fix DOC_FILES
# 01a,26jan07,wap  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_SMP is defined.
# It must be after LIB_BASE_NAME
include $(TGT_DIR)/h/make/defs.library

DOC_FILES= vxbM548xDma.c vxbIbmMalDma.c

EXTRA_INCLUDE=-I$(TGT_DIR)/h/

ifndef _WRS_CONFIG_SMP
OBJS_MCF5400	= dma_utils.o MCD_dmaApi.o MCD_tasks.o MCD_tasksInit.o
OBJS_MCF5400	+= vxbM548xDma.o
OBJS_PPC32	= vxbIbmMalDma.o
endif

# Pick up individual driver Makefiles
 
include $(wildcard $(sort *.mk))

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

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

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

