2001-10-06 14:13:28 +00: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 19:24:46 +00:00
|
|
|
CClient.cpp \
|
2001-10-06 14:13:28 +00:00
|
|
|
CServerProtocol.cpp \
|
|
|
|
CServerProtocol1_0.cpp \
|
|
|
|
CScreenMap.cpp \
|
|
|
|
CServer.cpp \
|
2001-11-11 21:15:30 +00:00
|
|
|
CXWindowsScreen.cpp \
|
2001-10-06 14:13:28 +00:00
|
|
|
CXWindowsPrimaryScreen.cpp \
|
2001-10-08 19:24:46 +00:00
|
|
|
CXWindowsSecondaryScreen.cpp \
|
2001-10-06 14:13:28 +00: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 19:24:46 +00:00
|
|
|
targets: server client
|
2001-10-06 14:13:28 +00:00
|
|
|
|
2001-10-08 19:24:46 +00: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 14:13:28 +00:00
|
|
|
|