# Makefile - makefile for src/hwif/timer
#
# Copyright (c) 2006-2013 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
# --------------------
# 02g,20jun13,y_y  Fix typo. (WIND00422480)
# 02f,10jun13,y_y  Add vxbPpcQuiccTimer64.o.
# 02e,25apr13,rbc  WIND00414401 - Changes to support Unified BSP.
# 02d,19oct12,jpb  Include vxbVbOpenPicTimer only when VBI included.
# 02c,18oct12,c_t  add hpet for pentium4
# 02b,20sep11,rlg  removing sibyte/broadcom code modules
# 01a,10aug11,sem  WIND00291230 - Add vxbIaHpetTimer.o for IA targets
# 01z,05jul11,sem  Updates for new HPET driver
# 01y,06oct11,sas  Adding vxbVbOpenPicTimer.o
# 01x,21sep10,sem  Add new IA cpus. Remove pentium2/3
# 01w,19jul10,rlg  update to add vbxCn3xxxTimer.c - no longer pulled directly
#                  into bsp
# 01v,15jun10,m_h  Thumb-2 Support
# 01u,23jul09,mze  removing PAD64
# 01t,19jun09,mze  replacing PAD64
# 01s,06may09,h_k  added vxbIntelTimestamp.o and vxbLoApicTimer.o to PAD64.
# 01r,25feb09,rec  add defs.library
# 01q,25feb09,j_b  merge ARM SMP support:
#                  05jul07,to   added vxbAmbaTimer.o
# 01p,02mar09,m_h  Support for ARMARCH7
# 01o,02mar09,m_h  Add Omap to DOC_FILES
# 01n,10jul08,m_h  Adding OMAP Timer
# 01m,16jun08,l_z  add driver Makefile stub
# 01m,20jun08,pmr  add vxbXlrTimer to DOC_FILES
# 01m,16jun08,l_z  add driver Makefile stub
# 01l,18apr08,b_m  add vxbM5xxxGPTimer.o
# 01k,10mar08,h_k  changed CC_OPTIM_DRIVER to CC_OPTIM_NORMAL.
# 01j,07dec07,rec  add coldfire MCF5200 drivers
# 01i,20jul07,jmt  Modify to cleanup vxbSb1Timer.o builds
# 01h,10jul07,vik  added vxbM85xxTimer.o
# 01g,24may07,h_k  vxbM54x5SliceTimer.o, vxbPpcDecTimer.o and
#                  vxbPpcQuiccTimer.o.
# 01f,19apr07,pch  add vxbOpenPicTimer
# 01e,17apr07,pes  Update to new MIPS library structure
# 01d,05mar07,ami  sb1Timer Driver Added
# 01c,28feb07,pdg  added timer drivers on pentium boards
# 01b,12sep06,pmr  added DRV_TIMER_IXP400 support.
# 01a,07sep06,h_k  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

DOC_FILES =	vxbAmbaTimer.c vxbCn3xxxTimer.c vxbI8253Timer.c \
		vxbIntelTimestamp.c vxbIxp400Timer.c vxbLoApicTimer.c \
		vxbM54x5SliceTimer.c vxbM5xxxGPTimer.c vxbM85xxDecTimer.c \
		vxbM85xxFITimer.c vxbM85xxTimer.c vxbM85xxWDTimer.c \
		vxbMc146818Rtc.c vxbMcfPitTimer.c vxbMipsR4KTimer.c \
		vxbOmap35xxTimer.c vxbOpenPicTimer.c vxbPpcDecTimer.c \
		vxbPpcQuiccTimer.c vxbPpcQuiccTimer64.c vxbSh7700Timer.c \
		vxbXlrTimer.c vxbIaHpetTimer.c

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

OBJS_COMMON = vxbMc146818Rtc.o vxbI8253Timer.o vxbOpenPicTimer.o

ifdef _WRS_CONFIG_MILS_VBI
OBJS_COMMON += vxbVbOpenPicTimer.o
endif

OBJS_PENTIUM  = vxbIntelTimestamp.o

OBJS_PENTIUM4 = vxbIntelTimestamp.o vxbLoApicTimer.o vxbIaHpetTimer.o

OBJS_CORE2 = vxbIntelTimestamp.o vxbLoApicTimer.o vxbIaHpetTimer.o

OBJS_X86_64 = vxbIntelTimestamp.o vxbLoApicTimer.o vxbIaHpetTimer.o

OBJS_ATOM = vxbIntelTimestamp.o vxbLoApicTimer.o vxbIaHpetTimer.o

OBJS_CORE = vxbIntelTimestamp.o vxbLoApicTimer.o vxbIaHpetTimer.o

OBJS_NEHALEM = vxbIntelTimestamp.o vxbLoApicTimer.o vxbIaHpetTimer.o

OBJS_SH7750 = vxbSh7700Timer.o

OBJS_ARMARCH6 = vxbAmbaTimer.o vxbOmap35xxTimer.o

OBJS_ARMARCH7 = vxbOmap35xxTimer.o
OBJS_ARMARCH7_T2 = $(OBJS_ARMARCH7)

OBJS_XSCALE = vxbIxp400Timer.o

OBJS_MIPSI3 = vxbMipsR4KTimer.o

OBJS_MIPSI64 = vxbMipsR4KTimer.o vxbXlrTimer.o

OBJS_MIPSI64R2 = vxbMipsR4KTimer.o vxbCn3xxxTimer.o

OBJS_MIPSI2 = vxbMipsR4KTimer.o

OBJS_MIPSI32 = vxbMipsR4KTimer.o

OBJS_MIPSI32R2 = vxbMipsR4KTimer.o

OBJS_MCF5200 = vxbM54x5SliceTimer.o vxbMcfPitTimer.o

OBJS_MCF5400 = vxbM54x5SliceTimer.o vxbMcfPitTimer.o

OBJS_PPC32 = vxbPpcDecTimer.o vxbPpcQuiccTimer.o vxbPpcQuiccTimer64.o vxbM85xxTimer.o vxbM5xxxGPTimer.o

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

