# Makefile - makefile for target/src/debug/wdb/vxWorks
#
# Copyright (c) 1996,1998,2000,2001,2003-2006,2008,2010-2011
# 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
# --------------------
# 02d,01feb11,rlp  System mode support for LP64.
# 02c,26apr10,jmp  Added wdbExternCoprocRegLib.c.
# 02b,01mar10,rlp  Removed wdbTyCoDrv object file for LP64.
# 02a,02feb10,rlp  Removed some object files for LP64.
# 01z,24jul08,dbt  Added wdbMipcSockLib.o.
# 01y,18jun08,dbt  Replaced wdbDynPrintfLib.o with wdbDynPrintfVxLib.o
# 01x,18apr08,dbt  Added wdbDynPrintfLib.o.
# 01w,18oct06,rlp  Removed wdbDbgLib.o (REQ007655).
# 01v,22nov05,dbt  Removed wdbGopherRtLib.o.
# 01u,07nov05,dbt  Added wdbBpSyncLib.o.
#		   Removed wdbFuncBind.o & wdbMemRtLib.o.
# 01t,25jul05,bpn  Added wdbRtpCtrlLib.o.
# 01s,30may05,dbt  Added wdbTipcSockLib.o.
# 01r,22jun04,elg  Replace relative path by an absolute one in EXTRA_INCLUDE.
# 01q,28may04,elg  Add wdbTaskRegLib.o
# 01p,12may04,dbt  Added WDB Modules & Symbols Synchronization.
# 01o,04may04,pch  SPR 94932: add include of defs.library
# 01n,26apr04,elg  Add wdbExternRegLib.o
# 01m,17feb04,pch  Adjust PPC32 support
# 01l,11dec03,elg  Add wdbRtpBpLib.o & wdbTaskHookLib.o
# 01k,27aug03,elg  Add wdbRtpLib.o.
# 01j,31jul03,pch  Add PPC32 support
# 01i,03mar03,elg  Add new files: wdbMemRtLib.c wdbTaskRtLib.c wdbGopherLib.c.
# 01h,12oct01,tam  added repackaging support
# 01g,29jan01,dtr  Adding altivec register support library.
# 01f,03mar00,zl   merged SH support from T1
# 01e,25mar98,dbt  added wdbLib.c in doc for wdbSystemSuspend() routine.
# 01d,27feb98,dbt  added wdbCtxStartLib.o and wdbUserEvtLib.o
#		   added wdbUserEvtLib.c in DOC_FILES.
# 01c,26jan98,dbt  added wdbEvtptLib.o
# 01b,13jan98,dbt  added wdbDbgLib.o
# 01a,17aug96,yp   derived from 01c of MakeSkel
#
# DESCRIPTION
# This file contains the makefile rules for building the wdb library
#
#*/

TGT_DIR=$(WIND_BASE)/target

LIB_BASE_NAME   = wdb
DOC_FILES= wdbMdlSymSyncLib.c


EXTRA_INCLUDE= -I $(WIND_BASE)/share/src/agents/wdb

MIPC_HDR_DIR= $(TGT_DIR)/h/multios_ipc
MIPC_HDR_FILES= $(wildcard $(MIPC_HDR_DIR)/mipc.h)

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

OBJS =	wdbBpSyncLib.o wdbExternRegLib.o wdbExternCoprocRegLib.o \
	wdbMbufLib.o wdbMdlSymSyncLib.o wdbRtLib.o wdbRtpCtrlLib.o \
	wdbRtpLib.o \
	wdbSioTestLib.o wdbTaskLib.o wdbTaskHookLib.o wdbTaskRegLib.o \
	wdbTaskCoprocRegLib.o \
	wdbTipcSockLib.o wdbUdpLib.o wdbUdpSockLib.o wdbVioLib.o \
	wdbDynPrintfVxLib.o

ifndef _WRS_CONFIG_LP64
OBJS += mdlSymSyncLib.o wdbTyCoDrv.o
endif

# If MIPC support is not installed; don't build MIPC backend.

ifneq ($(MIPC_HDR_FILES),)
OBJS += wdbMipcSockLib.o
endif

# Suppress local build of wdbTaskBpLib.o and wdbRtpBpLib.o for all PPC
# including PPC32 as they are built in target/src/hwdb
ifneq ($(VX_CPU_FAMILY),ppc)
    OBJS += wdbRtpBpLib.o wdbTaskBpLib.o
endif

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