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 \
|
|
|
|
net \
|
2001-11-10 22:28:30 +00:00
|
|
|
synergy \
|
2001-10-06 14:18:01 +00:00
|
|
|
$(NULL)
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|