##########@@@SOFT@@@WARE@@@COPY@@@RIGHT@@@###################################
# DIALOGIC CONFIDENTIAL
#
# Copyright (C) 2008 Dialogic Corporation. All Rights Reserved.
# The source code contained or described herein and all documents related
# to the source code ("Material") are owned by Dialogic Corporation or its
# suppliers or licensors. Title to the Material remains with Dialogic Corporation
# or its suppliers and licensors. The Material contains trade secrets and
# proprietary and confidential information of Dialogic or its suppliers and
# licensors. The Material is protected by worldwide copyright and trade secret
# laws and treaty provisions. No part of the Material may be used, copied,
# reproduced, modified, published, uploaded, posted, transmitted, distributed,
# or disclosed in any way without Dialogic's prior express written permission.
#
# No license under any patent, copyright, trade secret or other intellectual
# property right is granted to or conferred upon you by disclosure or delivery
# of the Materials, either expressly, by implication, inducement, estoppel or
# otherwise. Any license under such intellectual property rights must be
# express and approved by Dialogic in writing.
#
##########@@@SOFT@@@WARE@@@COPY@@@RIGHT@@@###################################


ifdef INTEL_DIALOGIC_BIN
#build from an installation

SHELL			= /bin/sh
RM			= rm -f


all: clean mptestdemo

mptestdemo: mptestdemo.cpp 
ifeq ($(DEBUG),1)
	$(MAKDIR) ../../binaries/external/$(OS)/$(PROCESSOR_ARCH)/$(COMPILER)/$(BUILDTYPE) 
endif
	g++ -I/usr/dialogic/inc -L/usr/dialogic/lib -lmtkl $? -o $@

veryclean:	clean

clean:
	$(RM) mptestdemo *.o



else

top_srcdir = ..
top_reldir = ../../..

include $(top_reldir)/build/make.rules.mak
include $(top_reldir)/build/default_targets

FILENAME=mptest

ifeq ($(OS),unix)

CXXFLAGS=$(TCXXFLAGS)														\

LDFLAGS=-Wl,-rpath-link $(DM3HRT_IMPORT_LIB) -Wl,-rpath-link $(DM3HRT_BIN_EXTERNAL)		\
	-L$(DM3HRT_BIN_EXTERNAL)							\
	-L$(DM3HRT_IMPORT_LIB)								\
	$(TLDFLAGS)

LIBS=-lsrl										\
	-lmtkl


ifeq ($(OS),unix)
EXTENSION=
else
EXTENSION=.exe
endif

DM3HRT_BIN_EXTERNAL		= $(DM3HRT_BIN)/external/$(OS)/$(PROCESSOR_ARCH)/$(COMPILER)/$(BUILDTYPE)
DM3HRT_BIN_EXT          = ../../binaries/external/$(OS)/$(PROCESSOR_ARCH)/$(COMPILER)/$(BUILDTYPE)


endif

endif



