# Makefile - makefile for target/src/scopetools
#
# modification history
# --------------------
# 01c,30jun11,wzc  Porting stacktrace-1.0 into analysis.(RQ:WIND00061556)
# 01b,03jun10,jpb  Added _WRS_CONFIG_RTP conditionals.
# 01a,26mar06,c_c   created.
#
# DESCRIPTION
# This file contains the makefile rules for building the scopetools libraries
#
#*/

TGT_DIR=$(WIND_BASE)/target
TOOLS_SRC_ROOT = ../..

vpath %.c	$(TOOLS_SRC_ROOT)/memscope/comm
LIB_BASE_NAME   = memscope

# 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_DEFINE	+=	-DMEMSCOPEVERSION=\"3.7a\"
EXTRA_INCLUDE	=	-I$(TOOLS_SRC_ROOT)/rtilib/include/share \
	-I$(TOOLS_SRC_ROOT)/rtilib/include/vx \
	-I$(TOOLS_SRC_ROOT)/scopeutils/include/vx \
	-I$(COMP_STACKTRACE_PATH)/include \
	-I$(TOOLS_SRC_ROOT)/scopeutils/include

DOC_FILES=	

OBJS=	memlink.o memscope.o memscope_old.o wtxcalls.o memlinkcomm.o

ifdef _WRS_CONFIG_RTP
OBJS += rtp_support.o
endif

PKG_H=	memscope.pkg.h memscope_old.pkg.h wtxcalls.pkg.h rtp_support.pkg.h \
		memlinkcomm.pkg.h memlink.pkg.h

include $(TOOLS_SRC_ROOT)/make/common_rules.mk


# end of memscope/target
