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