blob: f86e0195b3e2b21b537744170fa3966467d10fbd (
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
|
SHELL = /bin/sh
SRCS = smtp-source.c smtp-sink.c qmqp-source.c qmqp-sink.c
OBJS = smtp-source.o smtp-sink.o qmqp-source.o qmqp-sink.o
HDRS =
TESTSRC =
DEFS = -I. -I$(INC_DIR) -D$(SYSTYPE)
CFLAGS = $(DEBUG) $(OPT) $(DEFS)
TESTPROG=
INC_DIR = ../../include
PROG = smtp-source smtp-sink qmqp-source qmqp-sink
LIBS = ../../lib/lib$(LIB_PREFIX)global$(LIB_SUFFIX) \
../../lib/lib$(LIB_PREFIX)util$(LIB_SUFFIX)
.c.o:; $(CC) $(CFLAGS) -c $*.c
all: $(PROG)
$(OBJS): ../../conf/makedefs.out
Makefile: Makefile.in
cat ../../conf/makedefs.out $? >$@
smtp-sink: smtp-sink.o $(LIBS)
$(CC) $(CFLAGS) $(SHLIB_RPATH) -o $@ smtp-sink.o $(LIBS) $(SYSLIBS)
smtp-source: smtp-source.o $(LIBS)
$(CC) $(CFLAGS) $(SHLIB_RPATH) -o $@ smtp-source.o $(LIBS) $(SYSLIBS)
qmqp-sink: qmqp-sink.o $(LIBS)
$(CC) $(CFLAGS) $(SHLIB_RPATH) -o $@ qmqp-sink.o $(LIBS) $(SYSLIBS)
qmqp-source: qmqp-source.o $(LIBS)
$(CC) $(CFLAGS) $(SHLIB_RPATH) -o $@ qmqp-source.o $(LIBS) $(SYSLIBS)
test: $(TESTPROG)
tests:
root_tests:
update: ../../bin/smtp-source ../../bin/smtp-sink ../../bin/qmqp-source \
../../bin/qmqp-sink
../../bin/smtp-source: smtp-source
cp $? $@
../../bin/smtp-sink: smtp-sink
cp $? $@
../../bin/qmqp-source: qmqp-source
cp $? $@
../../bin/qmqp-sink: qmqp-sink
cp $? $@
printfck: $(OBJS) $(PROG)
rm -rf printfck
mkdir 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) $(TESTPROG) junk
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'
qmqp-sink.o: ../../include/check_arg.h
qmqp-sink.o: ../../include/events.h
qmqp-sink.o: ../../include/htable.h
qmqp-sink.o: ../../include/inet_proto.h
qmqp-sink.o: ../../include/iostuff.h
qmqp-sink.o: ../../include/listen.h
qmqp-sink.o: ../../include/mail_version.h
qmqp-sink.o: ../../include/msg.h
qmqp-sink.o: ../../include/msg_vstream.h
qmqp-sink.o: ../../include/mymalloc.h
qmqp-sink.o: ../../include/netstring.h
qmqp-sink.o: ../../include/qmqp_proto.h
qmqp-sink.o: ../../include/sys_defs.h
qmqp-sink.o: ../../include/vbuf.h
qmqp-sink.o: ../../include/vstream.h
qmqp-sink.o: ../../include/vstring.h
qmqp-sink.o: qmqp-sink.c
qmqp-source.o: ../../include/check_arg.h
qmqp-source.o: ../../include/connect.h
qmqp-source.o: ../../include/events.h
qmqp-source.o: ../../include/get_hostname.h
qmqp-source.o: ../../include/host_port.h
qmqp-source.o: ../../include/inet_proto.h
qmqp-source.o: ../../include/iostuff.h
qmqp-source.o: ../../include/mail_date.h
qmqp-source.o: ../../include/mail_version.h
qmqp-source.o: ../../include/msg.h
qmqp-source.o: ../../include/msg_vstream.h
qmqp-source.o: ../../include/myaddrinfo.h
qmqp-source.o: ../../include/mymalloc.h
qmqp-source.o: ../../include/netstring.h
qmqp-source.o: ../../include/qmqp_proto.h
qmqp-source.o: ../../include/sane_connect.h
qmqp-source.o: ../../include/split_at.h
qmqp-source.o: ../../include/sys_defs.h
qmqp-source.o: ../../include/valid_hostname.h
qmqp-source.o: ../../include/valid_mailhost_addr.h
qmqp-source.o: ../../include/vbuf.h
qmqp-source.o: ../../include/vstream.h
qmqp-source.o: ../../include/vstring.h
qmqp-source.o: qmqp-source.c
smtp-sink.o: ../../include/check_arg.h
smtp-sink.o: ../../include/chroot_uid.h
smtp-sink.o: ../../include/events.h
smtp-sink.o: ../../include/get_hostname.h
smtp-sink.o: ../../include/htable.h
smtp-sink.o: ../../include/inet_proto.h
smtp-sink.o: ../../include/iostuff.h
smtp-sink.o: ../../include/listen.h
smtp-sink.o: ../../include/mail_date.h
smtp-sink.o: ../../include/mail_version.h
smtp-sink.o: ../../include/make_dirs.h
smtp-sink.o: ../../include/msg.h
smtp-sink.o: ../../include/msg_vstream.h
smtp-sink.o: ../../include/myaddrinfo.h
smtp-sink.o: ../../include/mymalloc.h
smtp-sink.o: ../../include/myrand.h
smtp-sink.o: ../../include/sane_accept.h
smtp-sink.o: ../../include/smtp_stream.h
smtp-sink.o: ../../include/stringops.h
smtp-sink.o: ../../include/sys_defs.h
smtp-sink.o: ../../include/vbuf.h
smtp-sink.o: ../../include/vstream.h
smtp-sink.o: ../../include/vstring.h
smtp-sink.o: ../../include/vstring_vstream.h
smtp-sink.o: smtp-sink.c
smtp-source.o: ../../include/check_arg.h
smtp-source.o: ../../include/compat_va_copy.h
smtp-source.o: ../../include/connect.h
smtp-source.o: ../../include/events.h
smtp-source.o: ../../include/get_hostname.h
smtp-source.o: ../../include/host_port.h
smtp-source.o: ../../include/inet_proto.h
smtp-source.o: ../../include/iostuff.h
smtp-source.o: ../../include/mail_date.h
smtp-source.o: ../../include/mail_version.h
smtp-source.o: ../../include/msg.h
smtp-source.o: ../../include/msg_vstream.h
smtp-source.o: ../../include/myaddrinfo.h
smtp-source.o: ../../include/mymalloc.h
smtp-source.o: ../../include/sane_connect.h
smtp-source.o: ../../include/smtp_stream.h
smtp-source.o: ../../include/split_at.h
smtp-source.o: ../../include/sys_defs.h
smtp-source.o: ../../include/valid_hostname.h
smtp-source.o: ../../include/valid_mailhost_addr.h
smtp-source.o: ../../include/vbuf.h
smtp-source.o: ../../include/vstream.h
smtp-source.o: ../../include/vstring.h
smtp-source.o: ../../include/vstring_vstream.h
smtp-source.o: smtp-source.c
|