moved client and server files into their own respective

directories.
This commit is contained in:
crs 2001-11-18 23:14:28 +00:00
parent 6a223b7da5
commit 51505783aa
20 changed files with 105 additions and 29 deletions

View File

@ -11,7 +11,10 @@ SUBDIRS = \
io \ io \
net \ net \
synergy \ synergy \
client \
server \
$(NULL) $(NULL)
# #
# targets # targets
# #

44
client/Makefile Normal file
View File

@ -0,0 +1,44 @@
DEPTH=..
include $(DEPTH)/Makecommon
#
# target file
#
TARGET = client
#
# source files
#
LCXXINCS = \
-I$(DEPTH)/base \
-I$(DEPTH)/mt \
-I$(DEPTH)/io \
-I$(DEPTH)/net \
-I$(DEPTH)/synergy \
$(NULL)
CXXFILES = \
CXWindowsSecondaryScreen.cpp \
CClient.cpp \
client.cpp \
$(NULL)
#
# libraries we depend on
#
DEPLIBS = \
$(LIBDIR)/libsynergy.a \
$(LIBDIR)/libnet.a \
$(LIBDIR)/libio.a \
$(LIBDIR)/libmt.a \
$(LIBDIR)/libbase.a \
$(NULL)
LLDLIBS = \
$(DEPLIBS) \
-lpthread \
$(NULL)
targets: $(TARGET)
$(TARGET): $(OBJECTS) $(DEPLIBS)
$(CXX) $(CXXFLAGS) -o $@ $(OBJECTS) $(LDFLAGS)

47
server/Makefile Normal file
View File

@ -0,0 +1,47 @@
DEPTH=..
include $(DEPTH)/Makecommon
#
# target file
#
TARGET = server
#
# source files
#
LCXXINCS = \
-I$(DEPTH)/base \
-I$(DEPTH)/mt \
-I$(DEPTH)/io \
-I$(DEPTH)/net \
-I$(DEPTH)/synergy \
$(NULL)
CXXFILES = \
CScreenMap.cpp \
CServerProtocol.cpp \
CServerProtocol1_0.cpp \
CXWindowsPrimaryScreen.cpp \
CServer.cpp \
server.cpp \
$(NULL)
#
# libraries we depend on
#
DEPLIBS = \
$(LIBDIR)/libsynergy.a \
$(LIBDIR)/libnet.a \
$(LIBDIR)/libio.a \
$(LIBDIR)/libmt.a \
$(LIBDIR)/libbase.a \
$(NULL)
LLDLIBS = \
$(DEPLIBS) \
-lpthread \
$(NULL)
targets: $(TARGET)
$(TARGET): $(OBJECTS) $(DEPLIBS)
$(CXX) $(CXXFLAGS) -o $@ $(OBJECTS) $(LDFLAGS)

View File

@ -1,6 +1,11 @@
DEPTH=.. DEPTH=..
include $(DEPTH)/Makecommon include $(DEPTH)/Makecommon
#
# target file
#
TARGET = synergy
# #
# source files # source files
# #
@ -13,39 +18,16 @@ LCXXINCS = \
CXXFILES = \ CXXFILES = \
CInputPacketStream.cpp \ CInputPacketStream.cpp \
COutputPacketStream.cpp \ COutputPacketStream.cpp \
CTCPSocketFactory.cpp \
CProtocolUtil.cpp \ CProtocolUtil.cpp \
CClient.cpp \ CTCPSocketFactory.cpp \
CServerProtocol.cpp \
CServerProtocol1_0.cpp \
CScreenMap.cpp \
CServer.cpp \
CXWindowsScreen.cpp \
CXWindowsPrimaryScreen.cpp \
CXWindowsSecondaryScreen.cpp \
CXWindowsClipboard.cpp \ CXWindowsClipboard.cpp \
CXWindowsScreen.cpp \
XSynergy.cpp \ XSynergy.cpp \
$(NULL) $(NULL)
# targets: $(LIBTARGET)
# libraries we depend on
#
DEPLIBS = \
$(LIBDIR)/libnet.a \
$(LIBDIR)/libio.a \
$(LIBDIR)/libmt.a \
$(LIBDIR)/libbase.a \
$(NULL)
LLDLIBS = \
$(DEPLIBS) \
-lpthread \
$(NULL)
targets: server client $(LIBTARGET): $(OBJECTS)
if test ! -d $(LIBDIR); then $(MKDIR) $(LIBDIR); fi
server: server.o $(OBJECTS) $(DEPLIBS) $(ARF) $(LIBTARGET) $(OBJECTS)
$(CXX) $(CXXFLAGS) -o $@ server.o $(OBJECTS) $(LDFLAGS)
client: client.o $(OBJECTS) $(DEPLIBS)
$(CXX) $(CXXFLAGS) -o $@ client.o $(OBJECTS) $(LDFLAGS)