# Makefile - makefile for building ProfileScope
#
# modification history
# --------------------
# 01a,10apr08,pca  created.
#
# DESCRIPTION
# This file contains the makefile rules for building ProfileScope
#
#*/

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

DOC_FILES     =

LIB_BASE_NAME =

SUBDIRS	= profileapi targetAgent
include $(TOOLS_SRC_ROOT)/make/common_rules.mk

DKMS = $(LIB_ROOT)/$(DKMDIRBASE)/profile.so
PROFILE_OBJS = $(LIB_ROOT)/$(LIBDIRBASE)/objprofile/*.o \
	$(LIB_ROOT)/$(LIBDIRBASE)/objclock/*.o \
	$(LIB_ROOT)/$(LIBDIRBASE)/objscopeutils/msgq.o

.PHONY: dkms

dkms: $(DKMS)

$(LIB_ROOT)/$(DKMDIRBASE)/profile.so: $(PROFILE_OBJS)
	$(LD_PARTIAL) $^ -o $@

LOCAL_CLEAN += $(DKMS)
