#
# Targets
#
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          = ReplicationManager.cpp

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

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

# Libraries to link against
LIBS          =

# Name of the .so to produce
LIBNAME       = libReplication

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
$(REPLICATION_ROOT)/lib/libReplicationComm.so:
	(cd $(REPLICATION_ROOT)/src/comm && $(MAKE) install) || exit 1;

ReplicationManager.o: ReplicationManager.cpp $(REPLICATION_ROOT)/lib/libReplicationComm.so
	$(CPP) -c $(CFLAGS) $(CPPFLAGS) $< -o $@

$(OBJS): %.o: %.cpp

