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 \
net \
synergy \
client \
server \
$(NULL)
#
# 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=..
include $(DEPTH)/Makecommon
#
# target file
#
TARGET = synergy
#
# source files
#
@ -13,39 +18,16 @@ LCXXINCS = \
CXXFILES = \
CInputPacketStream.cpp \
COutputPacketStream.cpp \
CTCPSocketFactory.cpp \
CProtocolUtil.cpp \
CClient.cpp \
CServerProtocol.cpp \
CServerProtocol1_0.cpp \
CScreenMap.cpp \
CServer.cpp \
CXWindowsScreen.cpp \
CXWindowsPrimaryScreen.cpp \
CXWindowsSecondaryScreen.cpp \
CTCPSocketFactory.cpp \
CXWindowsClipboard.cpp \
CXWindowsScreen.cpp \
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)
targets: $(LIBTARGET)
targets: server client
server: server.o $(OBJECTS) $(DEPLIBS)
$(CXX) $(CXXFLAGS) -o $@ server.o $(OBJECTS) $(LDFLAGS)
client: client.o $(OBJECTS) $(DEPLIBS)
$(CXX) $(CXXFLAGS) -o $@ client.o $(OBJECTS) $(LDFLAGS)
$(LIBTARGET): $(OBJECTS)
if test ! -d $(LIBDIR); then $(MKDIR) $(LIBDIR); fi
$(ARF) $(LIBTARGET) $(OBJECTS)