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-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 = \
|
|
|
|
$(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)
|