# $Id: Makefile,v 1.20.2.2 2003/02/04 22:02:26 bko Exp $

BUILD = ../../build

include $(BUILD)/Makefile.pre

PACKAGES += PROXYBASE SIP

ifeq ($(USE_SSL),1)
PACKAGES += OPENSSL
endif

ifeq ($(USE_PROV),1)
    HAS_PROV=1
else
    HAS_PROV=
endif
 
ifdef HAS_PROV
DEFINES += MASCARPONE
PACKAGES += PROVLIB PROVCOMMON SIPUA RADIUS SIP SDP2 PTHREAD UTIL LIBXML XERCES HTTP
else
PACKAGES +=  PSUTILIB SIPUA RADIUS SIP SDP2 PTHREAD UTIL LIBXML
endif

PACKAGES += LIBCEXT

INCDIRS += $(ROOT)/sip/b2b $(ROOT)//sip/b2b/controlState 

CODE_SUBDIRS =  controlState 


TESTPROGRAMS = \
    b2bua.cxx

SRC = \
B2bWorkerThread.cxx \
MultiLegCallControl.cxx \
AuthAgent.cxx \
controlState/ControlState.cxx \
controlState/StateAuthPending.cxx \
controlState/StateInCall.cxx \
controlState/StateInit.cxx \
controlState/ControlStateFactory.cxx \
AAATransceiver.cxx \
B2bConfig.cxx \
B2bCmdLine.cxx \
RegistrationAgent.cxx \
B2bFacade.cxx

EXTRA_HEADERS=\
controlState/ControlState.hxx \
controlState/StateAuthPending.hxx \
controlState/StateInCall.hxx \
controlState/StateInit.hxx \
controlState/ControlStateFactory.hxx 

include $(BUILD)/Makefile.post

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

