#
# Targets
#

#pragma VERSIONID "@(#) $Id: Makefile,v 1.1 2006/06/21 21:46:41 tkramar Exp $"

REPLICATION_ROOT 	  = $(CSN_ROOT)/infrastructure/replication/c++


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

# List of the source-files in this directory
SRCS  = ReplicationFactory.cpp \
		ReplicationTransport.cpp \
		ReplicationEncDec.cpp \
		replica_payload.cpp

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

GENS          = replica_payload.h replica_payload.cpp

# Directories to search for header-files
# Also any extra definisionts needed

# Directories to search for header-files
INCL          = -DSERVER_COMMON_APP_DLL= $(ASNINCL) \
				-I$(REPLICATION_ROOT)/src \
				-I$(REPLICATION_ROOT)/src/comm \
				-I$(UTL_ROOT)/src/include  \
				-I$(UTL_ROOT)/src/libOam

# Libraries to link against
LIBS          = $(ASNLIB) -lasn1ber -lasn1rt

# Name of the .so to produce
LIBNAME       = libReplicationComm

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

.NOTPARALLEL:
#
# Special case: ASN.1 code generation
#
generate: $(GENS)

# Take any .pc files and use them to create .cpp
$(GENS): replica-payload.asn
	$(ASN) *.asn  $(ASNFLAGS)


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

