2001-05-13 11:40:29 +00:00
|
|
|
DEPTH=.
|
2001-10-06 14:18:01 +00:00
|
|
|
COMMONPREF = root
|
|
|
|
include Makecommon
|
2001-05-13 11:40:29 +00:00
|
|
|
|
|
|
|
#
|
2001-10-06 14:18:01 +00:00
|
|
|
# subdirectories
|
|
|
|
#
|
|
|
|
SUBDIRS = \
|
|
|
|
base \
|
|
|
|
mt \
|
|
|
|
io \
|
2002-05-30 16:13:16 +00:00
|
|
|
http \
|
2001-10-06 14:18:01 +00:00
|
|
|
net \
|
2001-11-10 22:28:30 +00:00
|
|
|
synergy \
|
2001-11-18 23:14:28 +00:00
|
|
|
client \
|
|
|
|
server \
|
2001-10-06 14:18:01 +00:00
|
|
|
$(NULL)
|
2001-11-18 23:14:28 +00:00
|
|
|
|
2001-10-06 14:18:01 +00:00
|
|
|
#
|
|
|
|
# targets
|
|
|
|
#
|
|
|
|
|
|
|
|
default: $(COMMONPREF)_force
|
|
|
|
$(SUBDIRS_MAKERULE)
|
|
|
|
|
|
|
|
all targets: default
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RMR) $(LIBDIR)
|
|
|
|
$(SUBDIRS_MAKERULE)
|
|
|
|
|
|
|
|
clobber:
|
|
|
|
$(RMR) $(LIBDIR)
|
|
|
|
$(SUBDIRS_MAKERULE)
|
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# test
|
|
|
|
#
|
2001-05-13 11:40:29 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# source files
|
|
|
|
#
|
2001-10-06 14:18:01 +00:00
|
|
|
LCXXINCS = \
|
|
|
|
-I$(DEPTH)/base \
|
|
|
|
-I$(DEPTH)/mt \
|
|
|
|
-I$(DEPTH)/io \
|
|
|
|
-I$(DEPTH)/net \
|
2001-10-08 19:24:46 +00:00
|
|
|
-I$(DEPTH)/synergy \
|
2001-05-13 11:40:29 +00:00
|
|
|
$(NULL)
|
2001-10-06 14:18:01 +00:00
|
|
|
CXXFILES = test.cpp
|
2001-05-13 11:40:29 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# libraries we depend on
|
|
|
|
#
|
2001-10-06 14:18:01 +00:00
|
|
|
DEPLIBS = \
|
2001-10-08 19:24:46 +00:00
|
|
|
$(LIBDIR)/libsynergy.a \
|
2001-10-06 14:18:01 +00:00
|
|
|
$(LIBDIR)/libnet.a \
|
|
|
|
$(LIBDIR)/libio.a \
|
|
|
|
$(LIBDIR)/libmt.a \
|
|
|
|
$(LIBDIR)/libbase.a \
|
|
|
|
$(NULL)
|
|
|
|
LLDLIBS = \
|
|
|
|
$(DEPLIBS) \
|
|
|
|
-lpthread \
|
2001-05-13 11:40:29 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2001-10-06 14:18:01 +00:00
|
|
|
test: $(OBJECTS) $(DEPLIBS)
|
2001-05-13 11:40:29 +00:00
|
|
|
$(CXX) $(CXXFLAGS) -o $@ $(OBJECTS) $(LDFLAGS)
|
2001-10-08 19:24:46 +00:00
|
|
|
|