# Makefile - makefile for target/src/scopetools
#
# modification history
# --------------------
# 01b,30jun11,wzc  Porting stacktrace-1.0 into analysis.(RQ:WIND00061556)
# 01a,10apr08,pca   created.
#
# DESCRIPTION
# This file contains the makefile rules for building the scopetools libraries
#
#*/

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

vpath %.c	$(CURDIR)/vx
LIB_BASE_NAME   = profile

EXTRA_DEFINE	+=	-DSCOPEPROFILEVERSION=\"4.11a\"
EXTRA_INCLUDE	=	-I$(TOOLS_SRC_ROOT)/rtilib/include/share \
	-I$(TOOLS_SRC_ROOT)/scopeutils/include/vx \
	-I$(COMP_STACKTRACE_PATH)/include \
	-Ivx
DOC_FILES=	

OBJS=	profileapi.o profilesample.o profile.o

PKG_H	= profileapi.pkg.h profilesample.pkg.h profile.pkg.h

HDR_PATH = ../include
HEADERS = $(HDR_PATH)/profile_vx.h

include $(TOOLS_SRC_ROOT)/make/common_rules.mk


# Public header generation (needs to occur after inclusion of rules.library,
# otherwise it hides the default build rule).

$(HDR_PATH)/profile_vx.h : profileapi.c profile.c
	$(MAKEHEADER) -C $(MAKEHEADERPUBKEYS) -o $@ $^
