File: Makefile.in

package info (click to toggle)
tinymux 2.10.1.14-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 6,212 kB
  • ctags: 8,535
  • sloc: cpp: 111,587; sh: 5,867; ansic: 141; makefile: 139
file content (220 lines) | stat: -rw-r--r-- 8,221 bytes parent folder | download
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
# Makefile for TinyMUX 2.10
#
# Search for the text 'CONFIGURATION SECTION' and make any changes needed
# there.
#

SHELL=/bin/sh
srcdir = @srcdir@
VPATH = @srcdir@
BIN = ../game/bin
CC = @CC@
CXX = @CXX@
CXXCPP = @CXXCPP@
LIBS = @LIBS@ @FIRANLIBS@

.SUFFIXES: .cpp

# After we finish beta testing, we'll take away the debugging -g flag.
# If you don't use GCC, don't use -g. Add -pg for profiling (gprof netmux
# gmon.out)
#
#OPTIM = -O
#OPTIM = -g -pg -O
OPTIM = -g -O

# By default, REALITY_LVLS is not enabled.  If you wish to use REALITY_LVLS,
# run configure with --enable-realitylvls.  Please read the docs/REALITY.
#
# NOTE: To ensure a clean build, please 'make clean' first.
#
REALITY_LVLS = @REALITY_LVLS@
REALITY_SRC = @REALITY_SRC@
REALITY_OBJ = @REALITY_OBJ@

# By default, WOD_REALMS is not enabled.  If you wish to use WOD_REALMS,
# run configure with --enable-wodrealms.  Please read the docs/REALMS.
#
# NOTE: To ensure a clean build, please 'make clean' first.
#
WOD_REALMS = @WOD_REALMS@

# Disk-based caching is the default.  If you wish to use memory-based, run
# configure with --enable-memorybased.  Disk-based usually uses less memory,
# but more disk space.  Memory-based usually uses more memory, less
# disk-space, and some gain in performance for a very narrow set of
# operations.
#
# NOTE: To ensure a clean build, please 'make clean' first.
#
MEMORY_BASED = @MEMORY_BASED@

# Stub Slave. By default, this is off. This can be turned on by running
# configure with --enable-stubslave. The Stub Slave is how to load modules in
# a separate process including support for asyncronous SQL.
#
STUB_SLAVE = @STUB_SLAVE@
STUBLIBS   =  # -ldbi

# Firan MUX. By default, this is off. This can be turned on by running
# configure with --enable-firanmux. Firan MUX modifications are necessary
# in order to run Firan's database.  Typically, --enable-memorybased is also
# necessary.
#
FIRANMUX    = @FIRANMUX@

# Inline SQL support.  This provides an inline sql() function which links
# to a MySQL database, providing softcode compatibility with the SQL support
# in TinyMUSH 3.x and PennMUSH.
#
INLINESQL         = @INLINESQL@
INLINESQL_LIBS    = @INLINESQL_LIBPATH@ @INLINESQL_LIBS@
INLINESQL_INCLUDE = @INLINESQL_INCLUDE@

# SSL encryption support.  This provides a 'port_ssl' configuration directive
# which adds SSL-enabled ports to the listening MUX ports.  It also enables the
# 'ssl_certificate_file' and 'ssl_certificate_key' and 'ssl_certificate_password'
# configuration options.
#
SSL               = @SSL@
SSL_LIBS          = @SSL_LIBS@

# Deprecated Features. By default, this is off. This can be turned on by
# running configure with --enable-deprecated. Features which are infrequently
# used become deprecated and are eventually removed from the source.
#
DEPRECATED = @DEPRECATED@

# Potentially expensive internal self-checking of the server. This does not
# increase softcode validation or validation of the operating environment.
# It's useful primarily during development while running test cases.
#
SELFCHECK = @SELFCHECK@

# Base source and object files for building netmux
#
NETMUX_BASE_SRC = _build.cpp alarm.cpp alloc.cpp attrcache.cpp boolexp.cpp \
    bsd.cpp command.cpp comsys.cpp conf.cpp cque.cpp create.cpp db.cpp \
    db_rw.cpp eval.cpp file_c.cpp flags.cpp funceval.cpp funceval2.cpp \
    functions.cpp funmath.cpp game.cpp help.cpp htab.cpp local.cpp log.cpp \
    look.cpp mail.cpp match.cpp mathutil.cpp mguests.cpp modules.cpp move.cpp \
    muxcli.cpp netcommon.cpp object.cpp predicates.cpp player.cpp player_c.cpp \
    plusemail.cpp powers.cpp quota.cpp rob.cpp pcre.cpp set.cpp sha1.cpp \
    speech.cpp stringutil.cpp strtod.cpp svdrand.cpp svdhash.cpp timer.cpp \
    timeabsolute.cpp timedelta.cpp timeparser.cpp timeutil.cpp timezone.cpp \
    unparse.cpp utf8tables.cpp vattr.cpp walkdb.cpp wild.cpp wiz.cpp
NETMUX_BASE_OBJ = _build.o alarm.o alloc.o attrcache.o boolexp.o bsd.o \
    command.o comsys.o conf.o cque.o create.o db.o db_rw.o eval.o file_c.o \
    flags.o funceval.o funceval2.o functions.o funmath.o game.o help.o \
    htab.o local.o log.o look.o mail.o match.o mathutil.o mguests.o modules.o \
    move.o muxcli.o netcommon.o object.o predicates.o player.o player_c.o \
    plusemail.o powers.o quota.o rob.o pcre.o set.o sha1.o speech.o \
    stringutil.o strtod.o svdrand.o svdhash.o timer.o timeabsolute.o \
    timedelta.o timeparser.o timeutil.o timezone.o unparse.o utf8tables.o \
    vattr.o walkdb.o wild.o wiz.o

# Base sources and object files for building @DYNAMICLIB_TARGET@
#
LIBMUX_BASE_SRC = libmux.cpp
LIBMUX_BASE_OBJ = libmux.o
MUX_LIBS = @MUX_LIBS@
DL_LIB = @DL_LIB@

# Version number routines
#
VER_SRC = version.cpp
VER_OBJ = version.o
VER_FLG = -DMUX_BUILD_DATE="\"`date`\"" \
          -DMUX_BUILD_NUM="\"`sh ./buildnum.sh`\""

# ===================== CONFIGURATION SECTION ====================
#
# Select the correct C compiler.  Whatever you choose, it must be able
# to grok ANSI C (function prototypes)
#
#-----CC or GCC (must be able to grok function prototypes)
#
DEFS =
#
#-----CC on a NeXT system, really weird derivative of GCC
#
#DEFS = -DNEXT -DNEED_STRDUP
#
#-----GCC if the libraries were built for a pcc-derived cc compiler
#     (most systems)
#
#DEFS = -fpcc-struct-return -Wall
#
#-----GCC with GCC-compatible libraries if you want verbose error messages
#
#DEFS = -Wall
#
#-----HP-UX C compiler
#
#DEFS = -w +Obb800 -Aa -D_INCLUDE_POSIX_SOURCE -D_INCLUDE_HPUX_SOURCE -D_INCLUDE_XOPEN_SOURCE
#
#-----MIPS C compiler (also DEC 3xxx, Prime EXL7xxx)
#
#DEFS = -signed
#

# ================== END OF CONFIGURATION SECTION =================

# Auxiliary source files: only used by offline utilities.
#
AUX_SRC = unsplit.cpp
ALLCXXFLAGS = $(CXXFLAGS) $(CPPFLAGS) $(OPTIM) $(DEFS) $(MEMORY_BASED) $(WOD_REALMS) \
    $(REALITY_LVLS) $(STUB_SLAVE) $(FIRANMUX) $(DEPRECATED) $(SELFCHECK) \
    $(INLINESQL) $(INLINESQL_INCLUDE) $(SSL)

# Compiliation source files.
#
ALLSRC     = $(NETMUX_BASE_SRC) $(LIBMUX_BASE_SRC) $(REALITY_SRC) $(VER_SRC) $(AUX_SRC)
NETMUX_SRC = $(NETMUX_BASE_SRC) $(REALITY_SRC)
NETMUX_OBJ = $(NETMUX_BASE_OBJ) $(REALITY_OBJ)

.cpp.o:
	$(CXX) $(ALLCXXFLAGS) -c $<

all: @DYNAMICLIB_TARGET@ netmux slave @STUBSLAVE_TARGET@ links

links: netmux slave @STUBSLAVE_TARGET@
	cd ../game/bin ; rm -f dbconvert ; ln -s ../../src/netmux dbconvert
	cd ../game/bin ; rm -f netmux ; ln -s ../../src/netmux netmux
	cd ../game/bin ; rm -f slave ; ln -s ../../src/slave slave
	( if [ ! -z "@STUBSLAVE_TARGET@" -a -f "@STUBSLAVE_TARGET@" ]; then cd ../game/bin ; rm -f @STUBSLAVE_TARGET@; ln -s ../../src/@STUBSLAVE_TARGET@ @STUBSLAVE_TARGET@ ; fi )
	( if [ ! -z "@DYNAMICLIB_TARGET@" -a -f "@DYNAMICLIB_TARGET@" ]; then cd ../game/bin ; rm -f @DYNAMICLIB_TARGET@; ln -s ../../src/@DYNAMICLIB_TARGET@ @DYNAMICLIB_TARGET@ ; fi )

stubslave: stubslave.o @DYNAMICLIB_TARGET@
	$(CXX) $(ALLCXXFLAGS) $(LDFLAGS) -o stubslave stubslave.o -L. $(LIBS) $(MUX_LIBS) $(STUBLIBS)

slave: slave.o
	$(CXX) $(ALLCXXFLAGS) $(LDFLAGS) -o slave slave.o $(LIBS)

unsplit: unsplit.o
	$(CXX) $(ALLCXXFLAGS) $(LDFLAGS) -o unsplit unsplit.o

netmux: $(NETMUX_OBJ) $(VER_SRC) @DYNAMICLIB_TARGET@
	$(CXX) $(ALLCXXFLAGS) $(VER_FLG) -c $(VER_SRC)
	( if [ -f netmux ]; then mv -f netmux netmux~ ; fi )
	$(CXX) $(ALLCXXFLAGS) $(LDFLAGS) -o netmux $(NETMUX_OBJ) $(VER_OBJ) -L. $(LIBS) $(INLINESQL_LIBS) $(SSL_LIBS) $(MUX_LIBS)

@DYNAMICLIB_TARGET@: $(LIBMUX_BASE_SRC)
	( if [ -f @DYNAMICLIB_TARGET@ ]; then mv -f @DYNAMICLIB_TARGET@ @DYNAMICLIB_TARGET@~ ; fi )
	$(CXX) $(ALLCXXFLAGS) @DYNAMICLIB_CPPFLAGS@ $(LDFLAGS) -o @DYNAMICLIB_TARGET@ $(LIBMUX_BASE_SRC) $(LIBS) $(DL_LIB) $(INLINESQL_LIBS) $(SSL_LIBS)

depend: $(ALLSRC) unsplit
	for i in $(ALLSRC) slave.cpp stubslave.cpp ; do $(CXXCPP) $(ALLCXXFLAGS) -M $$i; done | sed -e 's:/usr[^ ]*[ ]*::g' | ./unsplit > .depend~
	mv .depend~ .depend

realclean:
	-rm -f *.o a.out core gmon.out dbconvert config.status config.log netmux netmux~ @DYNAMICLIB_TARGET@ @DYNAMICLIB_TARGET@~ slave @STUBSLAVE_TARGET@ Makefile

clean:
	-rm -f *.o a.out core gmon.out warn.log config.status config.log netmux~ @DYNAMICLIB_TARGET@~

docs:
	doxygen
	( cd doxygen/latex; make )

include .depend