#
# Targets
#


# Place the .so file in DEST
DEST          = $(SNS_ROOT)/lib

# List of the source-files in this directory
SRCS          = CallManager.cpp \
		IncomingStateMachine.cpp \
		IncomingConnectedStateMachine.cpp \
		IncomingOutgoingStateMachine.cpp \
		ConnectedIncomingStateMachine.cpp \
		ConnectedOutgoingStateMachine.cpp \
		OutgoingConnectedStateMachine.cpp \
        	ConnectedConnectedStateMachine.cpp \
		IncomingIncomingStateMachine.cpp \
		EstablishCallStateMachine.cpp \
		HoldCallStateMachine.cpp \
		RedirectCallStateMachine.cpp \
		NetworkCall.cpp \
		UserAgentCall.cpp \
		EventDispatcher.cpp \
		StateMachine.cpp \
		StateMachineFactory.cpp \
		EventRescheduler.cpp \
		EventStorage.cpp  \
		CallStateReplication.cpp

# Object-files that are derived from the sources
OBJS          = $(SRCS:%.cpp=%.o)

# Directories to search for header-files
# Also any extra definisionts needed
#   SERVER_COMMON_APP_DLL is defined to be empty for Radvision stuff
INCL          = -DSERVER_COMMON_APP_DLL= $(SSPINCL) $(ASNINCL) \
		-I$(SNS_ROOT)/src/event \
		-I$(SNS_ROOT)/src/networkcall \
		-I$(SNS_ROOT)/src/sicc \
		-I$(SNS_ROOT)/src/condition \
		-I$(SNS_ROOT)/src/sipstack \
		-I$(SNS_ROOT)/src/utils \
		-I$(SNS_ROOT)/src/connector \
		-I$(SNS_ROOT)/src/sipconn \
		-I$(SNS_ROOT)/src/sippresence \
		-I$(SNS_ROOT)/src/statistics \
		-I$(SNS_ROOT)/src/sipha \
		-I$(CSN_ROOT)/infrastructure/replication/c++/src \
		-I$(CSN_ROOT)/infrastructure/replication/c++/src/comm \
		-I$(CSN_ROOT)/infrastructure/failover/status/c++/src \
		-I$(CSN_ROOT)/infrastructure/failover/role/c++/src \
		-I$(UTL_ROOT)/src/include \
		-I$(UTL_ROOT)/src/libOam \
		-I$(UTL_ROOT)/src/libeICC \
		-I$(ORACLE_HOME)/precomp/public

# Libraries to link against
LIBS          =

# Name of the .so to produce
LIBNAME       = libSnsNetworkCall

include $(UTL_ROOT)/MakeIncl/Makeflags.$(PNX_OS)
include $(UTL_ROOT)/MakeIncl/MakeLib

# Take any .pc files and use them to create .cpp
$(GENS): %.cpp: %.pc

# Take any OBJS files with .o and use the .cpp to create them
$(OBJS): %.o: %.cpp

