2001-10-06 18:13:28 +04:00
|
|
|
DEPTH=..
|
|
|
|
include $(DEPTH)/Makecommon
|
|
|
|
|
|
|
|
#
|
|
|
|
# source files
|
|
|
|
#
|
|
|
|
LCXXINCS = \
|
|
|
|
-I$(DEPTH)/base \
|
|
|
|
-I$(DEPTH)/mt \
|
|
|
|
-I$(DEPTH)/io \
|
|
|
|
-I$(DEPTH)/net \
|
|
|
|
$(NULL)
|
|
|
|
CXXFILES = \
|
|
|
|
CInputPacketStream.cpp \
|
|
|
|
COutputPacketStream.cpp \
|
|
|
|
CTCPSocketFactory.cpp \
|
|
|
|
CProtocolUtil.cpp \
|
2001-10-08 23:24:46 +04:00
|
|
|
CClient.cpp \
|
2001-10-06 18:13:28 +04:00
|
|
|
CServerProtocol.cpp \
|
|
|
|
CServerProtocol1_0.cpp \
|
|
|
|
CScreenMap.cpp \
|
|
|
|
CServer.cpp \
|
|
|
|
CXWindowsPrimaryScreen.cpp \
|
2001-10-08 23:24:46 +04:00
|
|
|
CXWindowsSecondaryScreen.cpp \
|
2001-10-06 18:13:28 +04:00
|
|
|
XSynergy.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
#
|
|
|
|
# libraries we depend on
|
|
|
|
#
|
|
|
|
DEPLIBS = \
|
|
|
|
$(LIBDIR)/libnet.a \
|
|
|
|
$(LIBDIR)/libio.a \
|
|
|
|
$(LIBDIR)/libmt.a \
|
|
|
|
$(LIBDIR)/libbase.a \
|
|
|
|
$(NULL)
|
|
|
|
LLDLIBS = \
|
|
|
|
$(DEPLIBS) \
|
|
|
|
-lpthread \
|
|
|
|
$(NULL)
|
|
|
|
|
2001-10-08 23:24:46 +04:00
|
|
|
targets: server client
|
2001-10-06 18:13:28 +04:00
|
|
|
|
2001-10-08 23:24:46 +04:00
|
|
|
server: server.o $(OBJECTS) $(DEPLIBS)
|
|
|
|
$(CXX) $(CXXFLAGS) -o $@ server.o $(OBJECTS) $(LDFLAGS)
|
|
|
|
|
|
|
|
client: client.o $(OBJECTS) $(DEPLIBS)
|
|
|
|
$(CXX) $(CXXFLAGS) -o $@ client.o $(OBJECTS) $(LDFLAGS)
|
2001-10-06 18:13:28 +04:00
|
|
|
|