blob: 8c465a2faf4588f64af9420ccac0f1a897125a5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
#----------------------------------------------------------------------------
# $Id$
#
# Makefile for the Reactor Server Logging Daemon
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
# Local macros
#----------------------------------------------------------------------------
BIN = server
FILES =
LSRC = $(addsuffix .cpp,$(FILES))
LOBJ = $(addsuffix .o,$(FILES))
SHOBJ = $(addsuffix .so,$(FILES))
LDLIBS = $(addprefix .shobj/,$(SHOBJ))
VLDLIBS = $(LDLIBS:%=%$(VAR))
BUILD = $(VBIN)
#----------------------------------------------------------------------------
# Include macros and targets
#----------------------------------------------------------------------------
include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
include $(ACE_ROOT)/include/makeinclude/macros.GNU
include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU
include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
#----------------------------------------------------------------------------
# Local targets
#----------------------------------------------------------------------------
# In order to make the generation of HTML pages from sourcecode
# easier, I've started putting the comments into *.pre and *.pst files.
# Those are then combined (via the perl script "combine") with the
# source code to create the HTMLs. In an effort to declutter the
# directory, I archive the component files in a shell-archive (eg --
# shar) file that is commited to the repository.
# Invoke the combine script to pull together the pre-code comments,
# code and post-code comments that makeup a tutorial page. 'combine'
# keys itself off of the *.pre files to know what it should build. An
# accessory file "bodies" specifies which source files comprise the
# body of each tutorial page.
HTML : #
[ -f hdr ] || $(MAKE) UNSHAR
perl ../combine *.pre ; chmod +r *.html
# The SHAR target simply invokes "shar" to create the shell archive.
# It is important to include all "component" files in the shar command
# line so that they will be included in the archive. It is not
# necessary to include the source code files since they're commited as-is.
SHAR : #
[ ! -f combine.shar ] || exit 1
shar -T hdr bodies *.pre *.pst > combine.shar && $(RM) hdr bodies *.pre *.pst
# For orthogonality, we have an UNSHAR to match SHAR.
UNSHAR : #
sh combine.shar
CLEAN : realclean
$(RM) hdr bodies *.pre *.pst .depend
#----------------------------------------------------------------------------
# Dependencies
#----------------------------------------------------------------------------
.obj/server.o .shobj/server.so: server.cpp acceptor.h logger.h
|