summaryrefslogtreecommitdiffstats
path: root/src/master/Makefile.in
blob: db67a68eb8e9da0ecedce48990a70db3c34ff206 (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
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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
SHELL	= /bin/sh
SRCS	= master.c master_conf.c master_ent.c master_sig.c master_avail.c \
	master_spawn.c master_service.c master_status.c master_listen.c \
	master_proto.c single_server.c multi_server.c master_vars.c \
	master_wakeup.c master_flow.c master_watch.c mail_flow.c \
	master_monitor.c dgram_server.c
OBJS	= master.o master_conf.o master_ent.o master_sig.o master_avail.o \
	master_spawn.o master_service.o master_status.o master_listen.o \
	master_vars.o master_wakeup.o master_watch.o master_flow.o \
	master_monitor.o
LIB_OBJ	= single_server.o multi_server.o trigger_server.o master_proto.o \
	mail_flow.o event_server.o dgram_server.o
HDRS	= mail_server.h master_proto.h mail_flow.h
INT_HDR	= master.h
DEFS	= -I. -I$(INC_DIR) -D$(SYSTYPE)
CFLAGS	= $(DEBUG) $(OPT) $(DEFS)
LIB	= lib$(LIB_PREFIX)master$(LIB_SUFFIX)
PROG	= master
TESTPROG= 
LIBS	= ../../lib/lib$(LIB_PREFIX)global$(LIB_SUFFIX) \
	../../lib/lib$(LIB_PREFIX)util$(LIB_SUFFIX)
LIB_DIR	= ../../lib
INC_DIR	= ../../include
BIN_DIR	= ../../libexec

.c.o:;	$(CC) `for i in $(LIB_OBJ); do if [ $$i = $@ ]; then echo $(SHLIB_CFLAGS); else true; fi; done` $(CFLAGS) -c $*.c

all:	$(PROG) $(LIB)

$(OBJS) $(LIB_OBJ): ../../conf/makedefs.out

Makefile: Makefile.in
	cat ../../conf/makedefs.out $? >$@

$(PROG): $(OBJS) $(LIBS)
	$(CC) $(CFLAGS) $(SHLIB_RPATH) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)

test:	$(TESTPROG)

tests:

root_tests:

$(LIB):	$(LIB_OBJ)
	$(AR) $(ARFL) $(LIB) $?
	$(RANLIB) $(LIB)
	$(SHLIB_LD) $(SHLIB_RPATH) -o $(LIB) $(LIB_OBJ) $(SHLIB_SYSLIBS)

$(LIB_DIR)/$(LIB): $(LIB)
	cp $(LIB) $(LIB_DIR)/$(LIB)
	$(RANLIB) $(LIB_DIR)/$(LIB)

$(BIN_DIR)/$(PROG): $(PROG)
	 cp $(PROG) $(BIN_DIR)

update: $(LIB_DIR)/$(LIB) $(BIN_DIR)/$(PROG) $(HDRS)
	-for i in $(HDRS); \
	do \
	  cmp -s $$i $(INC_DIR)/$$i 2>/dev/null || cp $$i $(INC_DIR); \
	done
	cd $(INC_DIR); chmod 644 $(HDRS)

printfck: $(OBJS) $(PROG)
	rm -rf printfck
	mkdir printfck
	cp *.h printfck
	sed '1,/^# do not edit/!d' Makefile >printfck/Makefile
	set -e; for i in *.c; do printfck -f .printfck $$i >printfck/$$i; done
	cd printfck; make "INC_DIR=../../../include" `cd ..; ls *.o`

lint:
	lint $(DEFS) $(SRCS) $(LINTFIX)

clean:
	rm -f *.o *core $(PROG) junk $(LIB) 
	rm -rf printfck

tidy:	clean

depend: $(MAKES)
	(sed '1,/^# do not edit/!d' Makefile.in; \
	set -e; for i in [a-z][a-z0-9]*.c; do \
	    $(CC) -E $(DEFS) $(INCL) $$i | grep -v '[<>]' | sed -n -e '/^# *1 *"\([^"]*\)".*/{' \
	    -e 's//'`echo $$i|sed 's/c$$/o/'`': \1/' \
	    -e 's/o: \.\//o: /' -e p -e '}' ; \
	done | LANG=C sort -u) | grep -v '[.][o][:][ ][/]' >$$$$ && mv $$$$ Makefile.in
	@$(EXPORT) make -f Makefile.in Makefile 1>&2

# do not edit below this line - it is generated by 'make depend'
dgram_server.o: ../../include/argv.h
dgram_server.o: ../../include/attr.h
dgram_server.o: ../../include/bounce.h
dgram_server.o: ../../include/check_arg.h
dgram_server.o: ../../include/chroot_uid.h
dgram_server.o: ../../include/debug_process.h
dgram_server.o: ../../include/deliver_request.h
dgram_server.o: ../../include/dict.h
dgram_server.o: ../../include/dsn.h
dgram_server.o: ../../include/dsn_buf.h
dgram_server.o: ../../include/events.h
dgram_server.o: ../../include/htable.h
dgram_server.o: ../../include/iostuff.h
dgram_server.o: ../../include/listen.h
dgram_server.o: ../../include/mail_conf.h
dgram_server.o: ../../include/mail_dict.h
dgram_server.o: ../../include/mail_params.h
dgram_server.o: ../../include/mail_task.h
dgram_server.o: ../../include/mail_version.h
dgram_server.o: ../../include/maillog_client.h
dgram_server.o: ../../include/msg.h
dgram_server.o: ../../include/msg_stats.h
dgram_server.o: ../../include/msg_vstream.h
dgram_server.o: ../../include/myflock.h
dgram_server.o: ../../include/mymalloc.h
dgram_server.o: ../../include/nvtable.h
dgram_server.o: ../../include/recipient_list.h
dgram_server.o: ../../include/resolve_local.h
dgram_server.o: ../../include/safe_open.h
dgram_server.o: ../../include/sane_accept.h
dgram_server.o: ../../include/split_at.h
dgram_server.o: ../../include/stringops.h
dgram_server.o: ../../include/sys_defs.h
dgram_server.o: ../../include/vbuf.h
dgram_server.o: ../../include/vstream.h
dgram_server.o: ../../include/vstring.h
dgram_server.o: ../../include/watchdog.h
dgram_server.o: dgram_server.c
dgram_server.o: mail_flow.h
dgram_server.o: mail_server.h
dgram_server.o: master_proto.h
event_server.o: ../../include/argv.h
event_server.o: ../../include/attr.h
event_server.o: ../../include/bounce.h
event_server.o: ../../include/check_arg.h
event_server.o: ../../include/chroot_uid.h
event_server.o: ../../include/debug_process.h
event_server.o: ../../include/deliver_request.h
event_server.o: ../../include/dict.h
event_server.o: ../../include/dsn.h
event_server.o: ../../include/dsn_buf.h
event_server.o: ../../include/events.h
event_server.o: ../../include/htable.h
event_server.o: ../../include/iostuff.h
event_server.o: ../../include/listen.h
event_server.o: ../../include/mail_conf.h
event_server.o: ../../include/mail_dict.h
event_server.o: ../../include/mail_params.h
event_server.o: ../../include/mail_task.h
event_server.o: ../../include/mail_version.h
event_server.o: ../../include/maillog_client.h
event_server.o: ../../include/msg.h
event_server.o: ../../include/msg_stats.h
event_server.o: ../../include/msg_vstream.h
event_server.o: ../../include/myflock.h
event_server.o: ../../include/mymalloc.h
event_server.o: ../../include/nvtable.h
event_server.o: ../../include/recipient_list.h
event_server.o: ../../include/resolve_local.h
event_server.o: ../../include/safe_open.h
event_server.o: ../../include/sane_accept.h
event_server.o: ../../include/split_at.h
event_server.o: ../../include/stringops.h
event_server.o: ../../include/sys_defs.h
event_server.o: ../../include/timed_ipc.h
event_server.o: ../../include/vbuf.h
event_server.o: ../../include/vstream.h
event_server.o: ../../include/vstring.h
event_server.o: ../../include/watchdog.h
event_server.o: event_server.c
event_server.o: mail_flow.h
event_server.o: mail_server.h
event_server.o: master_proto.h
mail_flow.o: ../../include/iostuff.h
mail_flow.o: ../../include/msg.h
mail_flow.o: ../../include/sys_defs.h
mail_flow.o: ../../include/warn_stat.h
mail_flow.o: mail_flow.c
mail_flow.o: mail_flow.h
mail_flow.o: master_proto.h
master.o: ../../include/argv.h
master.o: ../../include/check_arg.h
master.o: ../../include/clean_env.h
master.o: ../../include/debug_process.h
master.o: ../../include/events.h
master.o: ../../include/inet_proto.h
master.o: ../../include/iostuff.h
master.o: ../../include/mail_conf.h
master.o: ../../include/mail_params.h
master.o: ../../include/mail_parm_split.h
master.o: ../../include/mail_task.h
master.o: ../../include/mail_version.h
master.o: ../../include/maillog_client.h
master.o: ../../include/msg.h
master.o: ../../include/myflock.h
master.o: ../../include/mymalloc.h
master.o: ../../include/open_lock.h
master.o: ../../include/safe.h
master.o: ../../include/set_eugid.h
master.o: ../../include/set_ugid.h
master.o: ../../include/stringops.h
master.o: ../../include/sys_defs.h
master.o: ../../include/vbuf.h
master.o: ../../include/vstream.h
master.o: ../../include/vstring.h
master.o: ../../include/watchdog.h
master.o: master.c
master.o: master.h
master_avail.o: ../../include/events.h
master_avail.o: ../../include/msg.h
master_avail.o: ../../include/sys_defs.h
master_avail.o: master.h
master_avail.o: master_avail.c
master_avail.o: master_proto.h
master_conf.o: ../../include/argv.h
master_conf.o: ../../include/msg.h
master_conf.o: ../../include/sys_defs.h
master_conf.o: master.h
master_conf.o: master_conf.c
master_ent.o: ../../include/argv.h
master_ent.o: ../../include/attr.h
master_ent.o: ../../include/check_arg.h
master_ent.o: ../../include/compat_level.h
master_ent.o: ../../include/host_port.h
master_ent.o: ../../include/htable.h
master_ent.o: ../../include/inet_addr_host.h
master_ent.o: ../../include/inet_addr_list.h
master_ent.o: ../../include/inet_proto.h
master_ent.o: ../../include/iostuff.h
master_ent.o: ../../include/mail_conf.h
master_ent.o: ../../include/mail_params.h
master_ent.o: ../../include/mail_proto.h
master_ent.o: ../../include/match_service.h
master_ent.o: ../../include/msg.h
master_ent.o: ../../include/myaddrinfo.h
master_ent.o: ../../include/mymalloc.h
master_ent.o: ../../include/nvtable.h
master_ent.o: ../../include/own_inet_addr.h
master_ent.o: ../../include/readlline.h
master_ent.o: ../../include/sock_addr.h
master_ent.o: ../../include/stringops.h
master_ent.o: ../../include/sys_defs.h
master_ent.o: ../../include/vbuf.h
master_ent.o: ../../include/vstream.h
master_ent.o: ../../include/vstring.h
master_ent.o: ../../include/wildcard_inet_addr.h
master_ent.o: master.h
master_ent.o: master_ent.c
master_ent.o: master_proto.h
master_flow.o: ../../include/iostuff.h
master_flow.o: ../../include/msg.h
master_flow.o: ../../include/sys_defs.h
master_flow.o: master.h
master_flow.o: master_flow.c
master_flow.o: master_proto.h
master_listen.o: ../../include/check_arg.h
master_listen.o: ../../include/htable.h
master_listen.o: ../../include/inet_addr_list.h
master_listen.o: ../../include/iostuff.h
master_listen.o: ../../include/listen.h
master_listen.o: ../../include/mail_params.h
master_listen.o: ../../include/msg.h
master_listen.o: ../../include/myaddrinfo.h
master_listen.o: ../../include/mymalloc.h
master_listen.o: ../../include/set_eugid.h
master_listen.o: ../../include/set_ugid.h
master_listen.o: ../../include/sock_addr.h
master_listen.o: ../../include/stringops.h
master_listen.o: ../../include/sys_defs.h
master_listen.o: ../../include/vbuf.h
master_listen.o: ../../include/vstring.h
master_listen.o: master.h
master_listen.o: master_listen.c
master_monitor.o: ../../include/iostuff.h
master_monitor.o: ../../include/msg.h
master_monitor.o: ../../include/sys_defs.h
master_monitor.o: master.h
master_monitor.o: master_monitor.c
master_proto.o: ../../include/msg.h
master_proto.o: ../../include/sys_defs.h
master_proto.o: master_proto.c
master_proto.o: master_proto.h
master_service.o: ../../include/msg.h
master_service.o: ../../include/mymalloc.h
master_service.o: ../../include/sys_defs.h
master_service.o: master.h
master_service.o: master_service.c
master_sig.o: ../../include/events.h
master_sig.o: ../../include/iostuff.h
master_sig.o: ../../include/killme_after.h
master_sig.o: ../../include/msg.h
master_sig.o: ../../include/posix_signals.h
master_sig.o: ../../include/sys_defs.h
master_sig.o: master.h
master_sig.o: master_sig.c
master_spawn.o: ../../include/argv.h
master_spawn.o: ../../include/binhash.h
master_spawn.o: ../../include/check_arg.h
master_spawn.o: ../../include/events.h
master_spawn.o: ../../include/mail_conf.h
master_spawn.o: ../../include/msg.h
master_spawn.o: ../../include/mymalloc.h
master_spawn.o: ../../include/sys_defs.h
master_spawn.o: ../../include/vbuf.h
master_spawn.o: ../../include/vstring.h
master_spawn.o: master.h
master_spawn.o: master_proto.h
master_spawn.o: master_spawn.c
master_status.o: ../../include/binhash.h
master_status.o: ../../include/events.h
master_status.o: ../../include/iostuff.h
master_status.o: ../../include/msg.h
master_status.o: ../../include/sys_defs.h
master_status.o: master.h
master_status.o: master_proto.h
master_status.o: master_status.c
master_vars.o: ../../include/check_arg.h
master_vars.o: ../../include/mail_conf.h
master_vars.o: ../../include/mail_params.h
master_vars.o: ../../include/msg.h
master_vars.o: ../../include/mymalloc.h
master_vars.o: ../../include/stringops.h
master_vars.o: ../../include/sys_defs.h
master_vars.o: ../../include/vbuf.h
master_vars.o: ../../include/vstring.h
master_vars.o: master.h
master_vars.o: master_vars.c
master_wakeup.o: ../../include/attr.h
master_wakeup.o: ../../include/check_arg.h
master_wakeup.o: ../../include/events.h
master_wakeup.o: ../../include/htable.h
master_wakeup.o: ../../include/iostuff.h
master_wakeup.o: ../../include/mail_conf.h
master_wakeup.o: ../../include/mail_params.h
master_wakeup.o: ../../include/mail_proto.h
master_wakeup.o: ../../include/msg.h
master_wakeup.o: ../../include/mymalloc.h
master_wakeup.o: ../../include/nvtable.h
master_wakeup.o: ../../include/set_eugid.h
master_wakeup.o: ../../include/set_ugid.h
master_wakeup.o: ../../include/sys_defs.h
master_wakeup.o: ../../include/trigger.h
master_wakeup.o: ../../include/vbuf.h
master_wakeup.o: ../../include/vstream.h
master_wakeup.o: ../../include/vstring.h
master_wakeup.o: mail_server.h
master_wakeup.o: master.h
master_wakeup.o: master_wakeup.c
master_watch.o: ../../include/msg.h
master_watch.o: ../../include/mymalloc.h
master_watch.o: ../../include/sys_defs.h
master_watch.o: master.h
master_watch.o: master_watch.c
multi_server.o: ../../include/argv.h
multi_server.o: ../../include/attr.h
multi_server.o: ../../include/bounce.h
multi_server.o: ../../include/check_arg.h
multi_server.o: ../../include/chroot_uid.h
multi_server.o: ../../include/debug_process.h
multi_server.o: ../../include/deliver_request.h
multi_server.o: ../../include/dict.h
multi_server.o: ../../include/dsn.h
multi_server.o: ../../include/dsn_buf.h
multi_server.o: ../../include/events.h
multi_server.o: ../../include/htable.h
multi_server.o: ../../include/iostuff.h
multi_server.o: ../../include/listen.h
multi_server.o: ../../include/mail_conf.h
multi_server.o: ../../include/mail_dict.h
multi_server.o: ../../include/mail_params.h
multi_server.o: ../../include/mail_task.h
multi_server.o: ../../include/mail_version.h
multi_server.o: ../../include/maillog_client.h
multi_server.o: ../../include/msg.h
multi_server.o: ../../include/msg_stats.h
multi_server.o: ../../include/msg_vstream.h
multi_server.o: ../../include/myflock.h
multi_server.o: ../../include/mymalloc.h
multi_server.o: ../../include/nvtable.h
multi_server.o: ../../include/recipient_list.h
multi_server.o: ../../include/resolve_local.h
multi_server.o: ../../include/safe_open.h
multi_server.o: ../../include/sane_accept.h
multi_server.o: ../../include/split_at.h
multi_server.o: ../../include/stringops.h
multi_server.o: ../../include/sys_defs.h
multi_server.o: ../../include/timed_ipc.h
multi_server.o: ../../include/vbuf.h
multi_server.o: ../../include/vstream.h
multi_server.o: ../../include/vstring.h
multi_server.o: ../../include/watchdog.h
multi_server.o: mail_flow.h
multi_server.o: mail_server.h
multi_server.o: master_proto.h
multi_server.o: multi_server.c
single_server.o: ../../include/argv.h
single_server.o: ../../include/attr.h
single_server.o: ../../include/bounce.h
single_server.o: ../../include/check_arg.h
single_server.o: ../../include/chroot_uid.h
single_server.o: ../../include/debug_process.h
single_server.o: ../../include/deliver_request.h
single_server.o: ../../include/dict.h
single_server.o: ../../include/dsn.h
single_server.o: ../../include/dsn_buf.h
single_server.o: ../../include/events.h
single_server.o: ../../include/htable.h
single_server.o: ../../include/iostuff.h
single_server.o: ../../include/listen.h
single_server.o: ../../include/mail_conf.h
single_server.o: ../../include/mail_dict.h
single_server.o: ../../include/mail_params.h
single_server.o: ../../include/mail_task.h
single_server.o: ../../include/mail_version.h
single_server.o: ../../include/maillog_client.h
single_server.o: ../../include/msg.h
single_server.o: ../../include/msg_stats.h
single_server.o: ../../include/msg_vstream.h
single_server.o: ../../include/myflock.h
single_server.o: ../../include/mymalloc.h
single_server.o: ../../include/nvtable.h
single_server.o: ../../include/recipient_list.h
single_server.o: ../../include/resolve_local.h
single_server.o: ../../include/safe_open.h
single_server.o: ../../include/sane_accept.h
single_server.o: ../../include/split_at.h
single_server.o: ../../include/stringops.h
single_server.o: ../../include/sys_defs.h
single_server.o: ../../include/timed_ipc.h
single_server.o: ../../include/vbuf.h
single_server.o: ../../include/vstream.h
single_server.o: ../../include/vstring.h
single_server.o: ../../include/watchdog.h
single_server.o: mail_flow.h
single_server.o: mail_server.h
single_server.o: master_proto.h
single_server.o: single_server.c
trigger_server.o: ../../include/argv.h
trigger_server.o: ../../include/attr.h
trigger_server.o: ../../include/bounce.h
trigger_server.o: ../../include/check_arg.h
trigger_server.o: ../../include/chroot_uid.h
trigger_server.o: ../../include/debug_process.h
trigger_server.o: ../../include/deliver_request.h
trigger_server.o: ../../include/dict.h
trigger_server.o: ../../include/dsn.h
trigger_server.o: ../../include/dsn_buf.h
trigger_server.o: ../../include/events.h
trigger_server.o: ../../include/htable.h
trigger_server.o: ../../include/iostuff.h
trigger_server.o: ../../include/listen.h
trigger_server.o: ../../include/mail_conf.h
trigger_server.o: ../../include/mail_dict.h
trigger_server.o: ../../include/mail_params.h
trigger_server.o: ../../include/mail_task.h
trigger_server.o: ../../include/mail_version.h
trigger_server.o: ../../include/maillog_client.h
trigger_server.o: ../../include/msg.h
trigger_server.o: ../../include/msg_stats.h
trigger_server.o: ../../include/msg_vstream.h
trigger_server.o: ../../include/myflock.h
trigger_server.o: ../../include/mymalloc.h
trigger_server.o: ../../include/nvtable.h
trigger_server.o: ../../include/recipient_list.h
trigger_server.o: ../../include/resolve_local.h
trigger_server.o: ../../include/safe_open.h
trigger_server.o: ../../include/sane_accept.h
trigger_server.o: ../../include/split_at.h
trigger_server.o: ../../include/stringops.h
trigger_server.o: ../../include/sys_defs.h
trigger_server.o: ../../include/vbuf.h
trigger_server.o: ../../include/vstream.h
trigger_server.o: ../../include/vstring.h
trigger_server.o: ../../include/watchdog.h
trigger_server.o: mail_flow.h
trigger_server.o: mail_server.h
trigger_server.o: master_proto.h
trigger_server.o: trigger_server.c