BUILD = ../../build

include $(BUILD)/Makefile.pre

USE_HEARTBEAT = $(shell if [ -d ../../heartbeat ] ; then echo 1 ; fi)

ifeq ($(USE_HEARTBEAT),1)
     PACKAGES += HEARTBEAT PSLIB PSUTILIB LIBXML LIBCEXT
endif

PACKAGES += SIP SDP2 UTIL PTHREAD LIBCEXT

INCDIRS += .

TARGET_LIBRARY := libproxyBase
SRC = \
	Builder.cxx \
	CallContainer.cxx \
	CallInfo.cxx \
	DeviceEvent.cxx \
	SipProxyEvent.cxx \
	Feature.cxx \
	Operator.cxx \
	SipEvent.cxx \
	SipThread.cxx \
	State.cxx \
	TimerEvent.cxx \
	WorkerThread.cxx \
	HeartLessProxy.cxx \
	BaseCommandLine.cxx \
	StateMachnData.cxx \
	StatelessWorkerThread.cxx \
	BaseAuthentication.cxx \
	CommonFunctions.cxx

ifeq ($(USE_HEARTBEAT),1)

SRC += 	BasicProxy.cxx \
	StatelessBasicProxy.cxx 

# TESTPROGRAMS +=  BaseProxyTestMain.cxx

endif

include $(BUILD)/Makefile.post

docs:   doc++/config.txt
	doc++ --config doc++/config.txt
