# Makefile - makefile for src/hwif/pwr
#
# Copyright (c) 2010-2012 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
# --------------------
# 01s,02jul12,rbc  WIND00357921 - APIs for pwrOrphanPciDevices should not be
#                  documented
# 01r,01oct11,j_l  WIND00308692 - Move contents of pwrIaTicklessSupportLib.c
#                                 into pwrTicklessIa.c
# 01q,25aug11,rec  WIND00292261 - Use IA developed power mgmt routines
# 01p,30aug11,rbc  WIND00295402 - Fix build error for guest OS with
#                  INCLUDE_PWR_POLICY_MGR
# 01o,16aug11,rbc  Fix build error.
# 01n,11aug11,jb   WIND00238999 Fix build errors
# 01m,09aug11,j_l  WIND00255353 - add IA tickless power management
#                                 support Library
# 01l,08aug11,rbc  WIND00290401 - Callback for orphan device power management
# 01k,25jul11,sem  WIND00255354 - Add CPU load monitor
# 01j,22jul11,rbc  WIND00255358 - Add PCI orphan power management.
# 01i,20jul11,jlv  WIND00255352, add Power Policy manager
# 01h,22jun11,rec  move perfMgrLib from src/wind to here
# 01g,14jun11,rec  move power management files from target/src/wind to here
# 01f,15jun11,rbc  Enable build for IA
# 01e,18may11,rec  add pwrDeviceLib
# 01d,07mar11,bsk  fix compiler warning
# 01c,21feb11,bsk  fixes for doc gen
# 01b,17feb11,rdl  Add tps65950 module
# 01a,27sep10,rec  written.
#
# DESCRIPTION
# This file contains the makefile rules for building the vxBus power 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=	 cpuPwrFuncBind.c cpuPwrLightLib.c \
                 perfMgrLib.c pwrDeviceLib.c \
                 vxbOmap35xDpll.c  vxbOmap35xSR.c tps65950.c windPwrLib.c \
                 pwrPolicyLib.c pwrPolicyMgr.c pwrCpuLib.c \
                 pwrCpuMonLib.c

EXTRA_INCLUDE=-I$(TGT_DIR)/h/

OBJS_COMMON	= perfMgrLib.o cpuPwrFuncBind.o cpuPwrLightLib.o windPwrLib.o
OBJS_ARMARCH7	= vxbOmap35xDpll.o vxbOmap35xSR.o tps65950.o \
                  pwrCpuLib.o pwrPolicyLib.o pwrPolicyMgr.o pwrCpuMonLib.o  \
                  pwrDeviceLib.o pwrDevFuncBind.o \
                  windPwrLib.o
OBJS_ARMARCH7_T2 = vxbOmap35xDpll.o vxbOmap35xSR.o tps65950.o \
                  pwrCpuLib.o pwrPolicyLib.o pwrPolicyMgr.o pwrCpuMonLib.o  \
                  pwrDeviceLib.o pwrDevFuncBind.o \
                  windPwrLib.o
ifdef _WRS_CONFIG_WRHV_GUEST
OBJS_CORE 	 = pwrDevFuncBind.o pwrPolicyLib.o pwrPolicyMgr.o \
                   pwrCpuLib.o pwrCpuMonLib.o
endif

OBJS_NEHALEM 	 = pwrDeviceLib.o pwrDevFuncBind.o \
                   pwrPolicyLib.o pwrPolicyMgr.o pwrCpuLib.o pwrCpuMonLib.o  \
                   pwrOrphanPciDevices.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

