#
# Targets
#

# Place the sipconn executable in DEST
DEST          = $(SNS_ROOT)/bin

# List of the source-files in this directory
SRCS          = SipAlarm.cpp SipConn.cpp LogPool.cpp ScCfg.pc

# list of the object-files in this directory
OBJS          = SipAlarm.o SipConn.o  LogPool.o ScCfg.o

# list of the generated-files in this directory
GENS          = ScCfg.cpp

# Directories to search for header-files
INCL          = -DSERVER_COMMON_APP_DLL= $(SSPINCL) $(ASNINCL) \
		-I$(SNS_ROOT)/src/event \
		-I$(SNS_ROOT)/src/networkcall \
		-I$(SNS_ROOT)/src/status \
		-I$(SNS_ROOT)/src/sicc \
		-I$(SNS_ROOT)/src/rtt \
		-I$(SNS_ROOT)/src/sipha \
		-I$(SNS_ROOT)/src/status \
		-I$(SNS_ROOT)/src/sipstack \
		-I$(SNS_ROOT)/src/utils \
		-I$(SNS_ROOT)/src/connector \
		-I$(SNS_ROOT)/src/condition \
		-I$(SNS_ROOT)/src/sipconn \
        -I$(SNS_ROOT)/src/statistics \
        -I$(SNS_ROOT)/src/unitTest \
		-I$(SNS_ROOT)/src/sippresence \
		-I$(UTL_ROOT)/src/include \
		-I$(UTL_ROOT)/src/libOam \
		-I$(CSN_ROOT)/infrastructure/failover/status/c++/src \
		-I$(CSN_ROOT)/infrastructure/failover/role/c++/src \
		-I$(CSN_ROOT)/infrastructure/replication/c++/src \
		-I$(CSN_ROOT)/infrastructure/replication/c++/src/comm \
		-I$(UTL_ROOT)/src/libeICC \
		-I$(ORACLE_HOME)/precomp/public

# -L is a search-path for libraries
# -l is a librariy to include in linking
LIBS=	 -L$(CSN_ROOT)/infrastructure/failover/status/c++/lib -lFailoverStatus -L$(CSN_ROOT)/infrastructure/failover/role/c++/lib -lFailoverRole -L$(SNS_ROOT)/lib\
		 -lSnsConnector -lSnsNetworkCall -lSnsSipStack \
	-lSnsEvent -lSnsSicc -lSnsUtils -lSnsSipPresence -lSnsStatistics -lSnsUnitTest -lSnsRtt -lSnsSipHA \
	-L$(CSN_ROOT)/infrastructure/replication/c++/lib -lReplication -lReplicationComm -lSnsStatus -lSnsCondition \
	$(ASNLIB) -L$(UTL_ROOT)/lib -lpthread \
	-L$(UTL_ROOT)/lib -lLogs -lTimer -leICC \
	-lOam -lrt -lasn1ber -lasn1rt \
	-lCore++ -lAlarm $(SSPLIB) -L$(ORACLE_HOME)/$(ORALIB) -lclntsh -lRdnPool \
	$(PNX_LIBSQL)

# the name of the executable to produce
EXEC          = sipconn

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

# 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

