/
Netrek.tmpl
294 lines (265 loc) · 7.64 KB
/
Netrek.tmpl
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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
#include "Netrek.rules"
/* if you use gcc, you may need to uncomment the following line
so system-default C flags don't get passed to gcc */
CCOPTIONS =
CC = cc
CDEBUGFLAGS = -O2
#define RSA_ YES /* RSA */
#if RSA_
/* RSA paths */
MP_LIB = -L../gmp-1.3.2 -lgmp -lmp
MP_INCLUDE = -I../gmp-1.3.2
/* RSA boxes -- put here because the default # of boxes might change */
RSA_BOX_SRCS = rsa_box_0.c rsa_box_1.c rsa_box_2.c \
rsa_box_3.c rsa_box_4.c
RSA_BOX_OBJS = rsa_box_0.o rsa_box_1.o rsa_box_2.o \
rsa_box_3.o rsa_box_4.o
#endif /* _RSA_ */
/* BIN for binary installation if desired */
NETREK_BIN =
/* OPTIONS/FEATURES */
#define TcpNodelay YES /* normally the X socket TCP_NODELAY
option is set by default. Some
servers don't do it (hp), making
the display far more jumpy then it
needs to be */
#define _UCI NO /* if using UCI's warped gcc setup */
#define NetStat YES /* Lag meter */
#define RotateRace YES /* galactic rotation */
#define MooTCursors YES /* cursors in team windows */
#define MooBitmaps YES /* moo planet bitmaps */
#define PacketLog NO /* allow ability to log packets */
#define LogMesg YES /* log message option */
#define DynamicBitmaps NO /* dynamic bitmaps (EM) */
#define TTS_ YES /* tactical tunnel syndrome fix */
#define Autologin YES /* defaults version of COW-lite a-l */
#define Hockey YES /* cosmetic changes for netrek hockey */
#define PhaserShrink YES /* phaser shrink option (hde -
Red Shirt's suggestion that phasers
shrink during hit to reduce
tactical clutter */
#define Metaserver YES /* -m option */
#define ForkNetrek YES /* keep metawindow up, fork netrek */
#define Gateway NO /* enable use of gateway/trekhopd */
#if Gateway
#define Trekhopd YES /* enable use of trekhopd */
/*
* IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT
*
* Set MyNet and MyNetMask to however much of the address is significant.
* For example, I want to restrict the use of my clients to the 129.212
* subnet (all machines within Amdahl), so I set MyNet=129.212.0.0
* MyNetMask to be 255.255.0.0. The host's address will be ANDed with the
* mask and then compared to MyNet.
*
* If you only want your client to be run on your host, then you'd use all
* eight bytes.
*/
#define MyNet 128.195.0.0
#define MyNetMask 255.255.0.0
#endif /* Gateway */
#define Feature YES /* various macros features by NBT,
JN */
#define ControlKey YES /* some things from cowlite */
#define MultiLineMacros YES /* multi-line macros (not implmnted) */
#define FontBitmaps NO /* Requires special fonts to run.
Available seperately as
BRMH-FONTBASED-fonts.tar.gz.
Not compatible with DynamicBitmaps */
#define XRCHelp NO /* xtrekrc defaults help window */
#define UdpDropFix YES /* heuristics to minimize affects of
dropped packets */
#if SystemV || SystemV4
#define HaveRandom NO /* if OS has srandom()/random() */
#define HaveRInt NO /* if OS has rint() */
#else
#define HaveRandom YES /* if OS has srandom()/random() */
#define HaveRInt YES /* if OS has rint() */
#endif
/* Change these at your own risk */
#define NBT_ YES /* changes by Nick Trown */
#define NBTDistress NO /* NBT distress (obsoleted by RCD) */
#define Galaxy YES /* changes from KSU */
#define TCursors YES /* special cursors for windows */
#define GodMessage YES /* message to god */
#define EM_ YES /* changes by Eric Mehlhaff */
#define NoTrap YES /* don't trap signals */
#define ShortPackets YES /* Heiko Wengler's short-packets */
#define Ping YES /* ping packets */
#define ForMorons NO /* netrek for Morons info borg */
/* CorrPackets -- some udp implementations don't do checksuming since udp
is used for NFS and as such requires the fastest possible performance,
but this means that garbage packets could be sent which could crash
the client if the proper checks aren't performed */
#define CorrPackets YES /* check for bad packets */
#define NoSprintf YES /* avoid using sprintf in a few places
(it's notoriously slow) */
#define Debug NO /* variables debugging */
#define UsePortSwap YES /* sometimes needed */
/* misc */
#define Record YES /* game record option (but no f
playback) */
#define RecordDebug NO /* Debug Recording */
#define BD_ NO /* minor borg detection (not release) */
#define SPTest NO /* client-to-client comparisons (-pg)*/
#define Xtra NO /* extra chance for x input (broke) */
#define Xsig NO /* SIGIO on X socket (test that hasn't
really panned out) */
/* non-release */
#define ShowDefaults NO
/* end of CONFIGURATION. No need to edit further */
/* kludges for older version of imake */
ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(SPECIAL_DEFINES)
ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
MKDIRHIER = $(BINDIR)/mkdirhier
/* tedium */
#if !HaveRandom
NEEDRANDOM=-DNEED_RANDOM
#endif
#if ShowDefaults
SHOWDEFAULTS=-DSHOW_DEFAULTS
#endif
#if RSA_
RSA=-DRSA
#endif
#if NetStat
NETSTAT=-DNETSTAT
#endif
#if RotateRace
ROTATERACE=-DROTATERACE
#endif
#if Debug
DEBUG=-DDEBUG
#endif
#if ForMorons
FOR_MORONS=-DFOR_MORONS
#endif
#if MooBitmaps
MOOBITMAPS=-DMOOBITMAPS
#endif
#if MooTCursors
MOOTCURSORS=-DMOOTCURSORS
#endif
#if DynamicBitmaps
DYNAMIC_BITMAPS=-DDYNAMIC_BITMAPS -DNO_READ_BITMAPFILE -DNETREK
#endif
#if TTS_
TTS=-DTTS
#endif
#if Autologin
AUTOLOGIN=-DAUTOLOGIN
#endif
#if Hockey
HOCKEY=-DHOCKEY
#endif
#if PhaserShrink
PHASER_SHRINK=-DPHASER_SHRINK
#endif
#if Metaserver
META = -DMETA
#endif
#if ForkNetrek
FORKNETREK = -DFORKNETREK
#endif
#if Gateway
GATEWAY=-DGATEWAY
#if Trekhopd
TREKHOPD=-DTREKHOPD
#endif
MYADDR=-DMYADDR=\"MyNet\"
MYADDRMASK=-DMYADDR_MASK=\"MyNetMask\"
#endif
#if Feature
FEATURE=-DFEATURE -DDIST_KEY_NAME
#endif
#if ControlKey
CONTROL_KEY=-DCONTROL_KEY
#endif
#if MultiLineMacros
MULTILINE_MACROS=-DMULTILINE_MACROS
#endif
#if FontBitmaps
FONTBITMAPS=-DFONT_BITMAPS
#endif
#if TcpNodelay
SETTCPNODELAY=-DSETTCPNODELAY
#endif
#if Xtra
XTRA=-DXTRA
#endif
#if Xsig
XSIG=-DXSIG
#endif
#if _UCI
UCI=-DUCI
#endif
#if PacketLog
PACKET_LOG=-DPACKET_LOG
#endif
#if XRCHelp
XTREKRC_HELP=-DXTREKRC_HELP
#endif
#if LogMesg
LOGMESG=-DLOGMESG
#endif
#if Record
RECORD=-DRECORD
#endif
#if RecordDebug
RECORD=-DRECORD
RECORD_DEBUG=-DRECORD_DEBUG
#endif
#if NBT_
NBT=-DNBT
#endif
#if NBTDistress
NBTDIST=-DNBTDIST
#endif
#if Galaxy
GALAXY=-DGALAXY
#endif
#if TCursors
TCURSORS=-DTCURSORS
#endif
#if GodMessage
GODMESSAGE=-DGODMESSAGE
#endif
#if EM_
EM=-DEM
#endif
#if NoTrap
NO_TRAP=-DNO_TRAP
#endif
#if ShortPackets
SHORT_PACKETS=-DSHORT_PACKETS
#endif
#if Ping
PING=-DPING
#endif
#if CorrPackets
CORRUPTED_PACKETS=-DCORRUPTED_PACKETS
#endif
#if NoSprintf
NO_SPRINTF=-DNO_SPRINTF
#endif
#if UsePortSwap
USE_PORTSWAP=-DUSE_PORTSWAP
#endif
#if UdpDropFix
DROPFIX=-DDROP_FIX
#endif
#if BD_
BD=-DBD
#endif
#if SPTest
SPTEST=-DSPTEST
#endif
EXTRA_DEFINES = $(RSA) $(NETSTAT) $(ROTATERACE) $(DEBUG) $(FOR_MORONS) \
$(MOOBITMAPS) $(MOOTCURSORS) $(AUTOLOGIN) $(DYNAMIC_BITMAPS) \
$(TTS) $(GATEWAY) $(TREKHOPD) $(FEATURE) $(CONTROL_KEY) \
$(MULTILINE_MACROS) $(NEEDRANDOM) $(HOCKEY) $(PHASER_SHRINK) $(META)\
$(FORKNETREK) $(SETTCPNODELAY) $(XTRA) $(XSIG) $(UCI) $(PACKET_LOG) \
$(XTREKRC_HELP) $(LOGMESG) $(RECORD) $(NBT) $(NBTDIST) $(GALAXY) $(TCURSORS) \
$(GODMESSAGE) $(EM) $(NO_TRAP) $(SHORT_PACKETS) $(PING) $(CORRUPTED_PACKETS) \
$(NO_SPRINTF) $(USE_PORTSWAP) $(BD) $(SPTEST) $(SHOWDEFAULTS) $(FONTBITMAPS) \
$(DROPFIX) $(MYADDR) $(MYADDRMASK)