summaryrefslogtreecommitdiff
path: root/src/Makefile
blob: 20a6c07ca2a52bcbf2d6841110d86844d908eff3 (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
# Don't edit Makefile! Use ../conf-* for configuration.

SHELL=/bin/sh

CXX = c++
CXXFLAGS = -Og -Iinclude -Wall
#LIBDL = -ldl

bincimapd_OBJECTS = bincimapd.o address.o argparser.o authenticate.o base64.o \
  broker.o convert.o depot.o iodevice.o iofactory.o \
  imapparser.o imapserver.o mailbox.o maildir.o maildir-close.o \
  maildir-create.o maildir-delete.o maildir-expunge.o maildir-readcache.o \
  maildir-scan.o maildir-scanfilesnames.o maildir-select.o \
  maildir-updateflags.o maildir-writecache.o maildirmessage.o mime.o \
  mime-getpart.o mime-parsefull.o mime-parseonlyheader.o mime-printbody.o \
  mime-printdoc.o mime-printheader.o multilogdevice.o \
  operator-authenticate.o operator-capability.o operator-idle.o \
  operator-id.o operator-noop.o operator-noop-pending.o operator-login.o \
  operator-logout.o operator-append.o operator-examine.o \
  operator-select.o operator-create.o operator-delete.o operator-list.o \
  operator-lsub.o operator-namespace.o operator-rename.o \
  operator-status.o operator-subscribe.o operator-unsubscribe.o \
  operator-check.o operator-close.o operator-copy.o operator-expunge.o \
  operator-fetch.o operator-search.o operator-store.o pendingupdates.o \
  recursivedescent.o regmatch.o session.o session-initialize-bincimapd.o \
  status.o stdiodevice.o syslogdevice.o tools.o

bincimap_up_OBJECTS = bincimap-up.o argparser.o authenticate.o base64.o \
  broker.o convert.o greeting.o imapparser.o imapserver.o iodevice.o \
  iofactory.o multilogdevice.o operator-authenticate.o \
  operator-capability.o operator-id.o operator-noop.o operator-login.o \
  operator-logout.o operator-starttls.o recursivedescent.o \
  session.o session-initialize-bincimap-up.o status.o stdiodevice.o \
  syslogdevice.o tools.o

bincimap_updatecache_OBJECTS = bincimap-updatecache.o address.o argparser.o \
  convert.o depot.o imapparser.o iodevice.o \
  iofactory.o mailbox.o maildir.o maildir-scan.o maildir-create.o \
  maildir-close.o maildir-expunge.o maildir-readcache.o \
  maildir-scanfilesnames.o maildir-select.o maildir-updateflags.o \
  maildir-writecache.o maildir-delete.o maildirmessage.o mime.o \
  mime-parsefull.o mime-parseonlyheader.o mime-printdoc.o \
  mime-printbody.o mime-printheader.o mime-getpart.o pendingupdates.o \
  session.o status.o tools.o

.PHONY: default
default: it-base
it-base: bincimapd bincimap-updatecache bincimap-up

bincimapd: $(bincimapd_OBJECTS)
	$(CXX) $(CXXFLAGS) -o $@ $(bincimapd_OBJECTS)
bincimap-up: $(bincimap_up_OBJECTS)
	$(CXX) $(CXXFLAGS) -o $@ $(bincimap_up_OBJECTS)
bincimap-updatecache: $(bincimap_updatecache_OBJECTS)
	$(CXX) $(CXXFLAGS) -o $@ $(bincimap_updatecache_OBJECTS)

.SUFFIXES:
.SUFFIXES: .cc .o

.cc.o:
	$(CXX) $(CXXFLAGS) -o $@ -c $<

.PHONY: clean
clean:
	rm -f `cat TARGETS`

# Header depends
address.o: address.cc include/address.h include/convert.h include/depot.h

argparser.o: argparser.cc include/argparser.h include/convert.h \
  include/address.h include/depot.h

authenticate.o: authenticate.cc include/authenticate.h include/depot.h \
  include/iodevice.h include/convert.h include/address.h \
  include/iofactory.h include/session.h include/argparser.h \
  include/globals.h

base64.o: base64.cc include/base64.h

bincimap-up.o: bincimap-up.cc include/imapserver.h

bincimap-updatecache.o: bincimap-updatecache.cc include/depot.h \
  include/mailbox.h include/imapparser.h include/maildir.h \
  include/maildirmessage.h include/message.h include/address.h \
  include/mime.h include/session.h include/argparser.h

bincimapd.o: bincimapd.cc include/imapserver.h

broker.o: broker.cc include/broker.h include/depot.h include/operators.h \
  include/imapparser.h include/message.h include/convert.h \
  include/address.h include/recursivedescent.h include/session.h \
  include/argparser.h

convert.o: convert.cc include/convert.h include/address.h include/depot.h

depot.o: depot.cc include/depot.h include/mailbox.h include/imapparser.h \
  include/status.h include/convert.h include/address.h \
  include/iodevice.h include/iofactory.h

greeting.o: greeting.cc include/iodevice.h include/convert.h \
  include/address.h include/depot.h include/iofactory.h \
  include/session.h include/argparser.h include/globals.h

imapparser.o: imapparser.cc include/imapparser.h include/convert.h \
  include/address.h include/depot.h

imapserver.o: imapserver.cc include/broker.h include/depot.h \
  include/operators.h include/imapparser.h include/message.h \
  include/globals.h include/imapserver.h include/iodevice.h \
  include/convert.h include/address.h include/iofactory.h \
  include/session.h include/argparser.h

iodevice.o: iodevice.cc include/iodevice.h include/convert.h \
  include/address.h include/depot.h include/session.h \
  include/argparser.h

iofactory.o: iofactory.cc include/iofactory.h include/iodevice.h \
  include/convert.h include/address.h include/depot.h

mailbox.o: mailbox.cc include/mailbox.h include/imapparser.h \
  include/message.h

maildir-close.o: maildir-close.cc include/maildir.h include/mailbox.h \
  include/imapparser.h include/maildirmessage.h include/message.h \
  include/address.h include/mime.h

maildir-create.o: maildir-create.cc include/maildir.h include/mailbox.h \
  include/imapparser.h include/maildirmessage.h include/message.h \
  include/address.h include/mime.h

maildir-delete.o: maildir-delete.cc include/maildir.h include/mailbox.h \
  include/imapparser.h include/maildirmessage.h include/message.h \
  include/address.h include/mime.h

maildir-expunge.o: maildir-expunge.cc include/iodevice.h \
  include/convert.h include/address.h include/depot.h \
  include/iofactory.h include/maildir.h include/mailbox.h \
  include/imapparser.h include/maildirmessage.h include/message.h \
  include/mime.h

maildir-readcache.o: maildir-readcache.cc include/maildir.h \
  include/mailbox.h include/imapparser.h include/maildirmessage.h \
  include/message.h include/address.h include/mime.h include/convert.h \
  include/depot.h include/globals.h

maildir-scan.o: maildir-scan.cc include/iodevice.h include/convert.h \
  include/address.h include/depot.h include/iofactory.h \
  include/maildir.h include/mailbox.h include/imapparser.h \
  include/maildirmessage.h include/message.h include/mime.h

maildir-scanfilesnames.o: maildir-scanfilesnames.cc include/maildir.h \
  include/mailbox.h include/imapparser.h include/maildirmessage.h \
  include/message.h include/address.h include/mime.h include/iodevice.h \
  include/convert.h include/depot.h include/iofactory.h

maildir-select.o: maildir-select.cc include/maildir.h include/mailbox.h \
  include/imapparser.h include/maildirmessage.h include/message.h \
  include/address.h include/mime.h

maildir-updateflags.o: maildir-updateflags.cc include/maildir.h \
  include/mailbox.h include/imapparser.h include/maildirmessage.h \
  include/message.h include/address.h include/mime.h include/iodevice.h \
  include/convert.h include/depot.h include/iofactory.h

maildir-writecache.o: maildir-writecache.cc include/globals.h \
  include/maildir.h include/mailbox.h include/imapparser.h \
  include/maildirmessage.h include/message.h include/address.h \
  include/mime.h

maildir.o: maildir.cc include/convert.h include/address.h include/depot.h \
  include/iodevice.h include/iofactory.h include/maildir.h \
  include/mailbox.h include/imapparser.h include/maildirmessage.h \
  include/message.h include/mime.h include/pendingupdates.h \
  include/session.h include/argparser.h include/status.h \
  include/globals.h

maildirmessage.o: maildirmessage.cc include/maildir.h include/mailbox.h \
  include/imapparser.h include/maildirmessage.h include/message.h \
  include/address.h include/mime.h include/convert.h include/depot.h \
  include/iodevice.h include/iofactory.h include/mime-utils.h \
  include/mime-inputsource.h

mime-getpart.o: mime-getpart.cc include/mime.h include/convert.h \
  include/address.h include/depot.h

mime-parsefull.o: mime-parsefull.cc include/mime.h include/mime-utils.h \
  include/mime-inputsource.h include/convert.h include/address.h \
  include/depot.h

mime-parseonlyheader.o: mime-parseonlyheader.cc include/mime.h \
  include/mime-utils.h include/mime-inputsource.h include/convert.h \
  include/address.h include/depot.h

mime-printbody.o: mime-printbody.cc include/mime.h include/mime-utils.h \
  include/mime-inputsource.h include/convert.h include/address.h \
  include/depot.h include/iodevice.h include/iofactory.h

mime-printdoc.o: mime-printdoc.cc include/mime.h include/mime-utils.h \
  include/mime-inputsource.h include/convert.h include/address.h \
  include/depot.h include/iodevice.h include/iofactory.h

mime-printheader.o: mime-printheader.cc include/mime.h \
  include/mime-utils.h include/mime-inputsource.h include/convert.h \
  include/address.h include/depot.h include/iodevice.h \
  include/iofactory.h

mime.o: mime.cc include/mime.h include/convert.h include/address.h \
  include/depot.h

multilogdevice.o: multilogdevice.cc include/multilogdevice.h \
  include/iodevice.h include/convert.h include/address.h include/depot.h

operator-append.o: operator-append.cc include/depot.h include/iodevice.h \
  include/convert.h include/address.h include/iofactory.h \
  include/mailbox.h include/imapparser.h include/operators.h \
  include/message.h include/recursivedescent.h include/pendingupdates.h \
  include/session.h include/argparser.h

operator-authenticate.o: operator-authenticate.cc include/authenticate.h \
  include/depot.h include/base64.h include/convert.h include/address.h \
  include/iodevice.h include/iofactory.h include/globals.h \
  include/operators.h include/imapparser.h include/message.h \
  include/recursivedescent.h include/session.h include/argparser.h

operator-capability.o: operator-capability.cc include/depot.h \
  include/iodevice.h include/convert.h include/address.h \
  include/iofactory.h include/operators.h include/imapparser.h \
  include/message.h include/recursivedescent.h include/session.h \
  include/argparser.h include/globals.h

operator-check.o: operator-check.cc include/depot.h include/mailbox.h \
  include/imapparser.h include/operators.h include/message.h \
  include/recursivedescent.h include/pendingupdates.h include/session.h \
  include/argparser.h

operator-close.o: operator-close.cc include/depot.h include/mailbox.h \
  include/imapparser.h include/operators.h include/message.h \
  include/recursivedescent.h include/session.h include/argparser.h

operator-copy.o: operator-copy.cc include/depot.h include/iodevice.h \
  include/convert.h include/address.h include/iofactory.h \
  include/maildir.h include/mailbox.h include/imapparser.h \
  include/maildirmessage.h include/message.h include/mime.h \
  include/operators.h include/recursivedescent.h include/session.h \
  include/argparser.h

operator-create.o: operator-create.cc include/depot.h include/mailbox.h \
  include/imapparser.h include/operators.h include/message.h \
  include/recursivedescent.h include/session.h include/argparser.h \
  include/convert.h include/address.h

operator-delete.o: operator-delete.cc include/depot.h include/mailbox.h \
  include/imapparser.h include/operators.h include/message.h \
  include/recursivedescent.h include/session.h include/argparser.h \
  include/convert.h include/address.h

operator-examine.o: operator-examine.cc include/operators.h \
  include/imapparser.h include/depot.h include/message.h

operator-expunge.o: operator-expunge.cc include/depot.h include/mailbox.h \
  include/imapparser.h include/operators.h include/message.h \
  include/recursivedescent.h include/pendingupdates.h include/session.h \
  include/argparser.h

operator-fetch.o: operator-fetch.cc include/depot.h include/iodevice.h \
  include/convert.h include/address.h include/iofactory.h \
  include/mailbox.h include/imapparser.h include/operators.h \
  include/message.h include/pendingupdates.h include/recursivedescent.h \
  include/session.h include/argparser.h

operator-id.o: operator-id.cc include/depot.h include/iodevice.h \
  include/convert.h include/address.h include/iofactory.h \
  include/operators.h include/imapparser.h include/message.h \
  include/recursivedescent.h include/session.h include/argparser.h \
  include/globals.h

operator-idle.o: operator-idle.cc include/iodevice.h include/convert.h \
  include/address.h include/depot.h include/iofactory.h \
  include/globals.h include/mailbox.h include/imapparser.h \
  include/operators.h include/message.h include/pendingupdates.h \
  include/recursivedescent.h include/session.h include/argparser.h

operator-list.o: operator-list.cc include/convert.h include/address.h \
  include/depot.h include/iodevice.h include/iofactory.h \
  include/mailbox.h include/imapparser.h include/operators.h \
  include/message.h include/recursivedescent.h include/regmatch.h \
  include/session.h include/argparser.h

operator-login.o: operator-login.cc include/authenticate.h \
  include/depot.h include/iodevice.h include/convert.h include/address.h \
  include/iofactory.h include/globals.h include/operators.h \
  include/imapparser.h include/message.h include/recursivedescent.h \
  include/session.h include/argparser.h

operator-logout.o: operator-logout.cc include/iodevice.h \
  include/convert.h include/address.h include/depot.h \
  include/iofactory.h include/mailbox.h include/imapparser.h \
  include/recursivedescent.h include/operators.h include/message.h \
  include/session.h include/argparser.h

operator-lsub.o: operator-lsub.cc include/convert.h include/address.h \
  include/depot.h include/iodevice.h include/iofactory.h \
  include/mailbox.h include/imapparser.h include/operators.h \
  include/message.h include/recursivedescent.h include/regmatch.h \
  include/session.h include/argparser.h

operator-namespace.o: operator-namespace.cc include/depot.h \
  include/iodevice.h include/convert.h include/address.h \
  include/iofactory.h include/operators.h include/imapparser.h \
  include/message.h include/recursivedescent.h include/session.h \
  include/argparser.h

operator-noop-pending.o: operator-noop-pending.cc include/mailbox.h \
  include/imapparser.h include/pendingupdates.h \
  include/recursivedescent.h include/operators.h include/depot.h \
  include/message.h include/session.h include/argparser.h

operator-noop.o: operator-noop.cc include/recursivedescent.h \
  include/imapparser.h include/operators.h include/depot.h \
  include/message.h include/session.h include/argparser.h

operator-logout.o: operator-logout.cc include/iodevice.h \
  include/depot.h include/mailbox.h include/imapparser.h \
  include/operators.h include/message.h include/recursivedescent.h \
  include/session.h include/argparser.h

operator-search.o: operator-search.cc include/convert.h include/address.h \
  include/depot.h include/imapparser.h include/iodevice.h \
  include/iofactory.h include/mailbox.h include/mime.h \
  include/operators.h include/message.h include/recursivedescent.h \
  include/session.h include/argparser.h

operator-select.o: operator-select.cc include/depot.h include/iodevice.h \
  include/convert.h include/address.h include/iofactory.h \
  include/mailbox.h include/imapparser.h include/operators.h \
  include/message.h include/recursivedescent.h include/pendingupdates.h \
  include/session.h include/argparser.h

operator-starttls.o: operator-starttls.cc include/recursivedescent.h \
  include/imapparser.h include/operators.h include/depot.h \
  include/message.h include/iodevice.h include/convert.h \
  include/address.h include/iofactory.h include/session.h \
  include/argparser.h

operator-status.o: operator-status.cc include/convert.h include/address.h \
  include/depot.h include/iodevice.h include/iofactory.h \
  include/mailbox.h include/imapparser.h include/operators.h \
  include/message.h include/recursivedescent.h include/session.h \
  include/argparser.h include/status.h

operator-store.o: operator-store.cc include/depot.h include/imapparser.h \
  include/mailbox.h include/operators.h include/message.h \
  include/pendingupdates.h include/recursivedescent.h include/session.h \
  include/argparser.h

operator-subscribe.o: operator-subscribe.cc include/convert.h \
  include/address.h include/depot.h include/recursivedescent.h \
  include/imapparser.h include/operators.h include/message.h \
  include/session.h include/argparser.h

operator-unsubscribe.o: operator-unsubscribe.cc include/convert.h \
  include/address.h include/depot.h include/recursivedescent.h \
  include/imapparser.h include/operators.h include/message.h \
  include/session.h include/argparser.h

pendingupdates.o: pendingupdates.cc include/iodevice.h include/convert.h \
  include/address.h include/depot.h include/iofactory.h \
  include/mailbox.h include/imapparser.h include/message.h \
  include/pendingupdates.h include/session.h include/argparser.h

recursivedescent.o: recursivedescent.cc include/imapparser.h \
  include/recursivedescent.h include/operators.h include/depot.h \
  include/message.h include/iodevice.h include/convert.h \
  include/address.h include/iofactory.h include/session.h \
  include/argparser.h

regmatch.o: regmatch.cc include/regmatch.h

session-initialize-bincimap-up.o: session-initialize-bincimap-up.cc \
  include/broker.h include/depot.h include/operators.h \
  include/imapparser.h include/message.h include/convert.h \
  include/address.h include/globals.h include/iodevice.h \
  include/iofactory.h include/multilogdevice.h include/syslogdevice.h \
  include/stdiodevice.h include/session.h include/argparser.h \
  include/tools.h

session-initialize-bincimapd.o: session-initialize-bincimapd.cc \
  include/broker.h include/depot.h include/operators.h \
  include/imapparser.h include/message.h include/maildir.h \
  include/mailbox.h include/maildirmessage.h include/address.h \
  include/mime.h include/globals.h include/iodevice.h include/convert.h \
  include/iofactory.h include/multilogdevice.h include/session.h \
  include/argparser.h include/stdiodevice.h include/syslogdevice.h \
  include/tools.h

session.o: session.cc include/argparser.h include/convert.h \
  include/address.h include/depot.h include/globals.h include/session.h \
  include/tools.h

status.o: status.cc include/status.h

stdiodevice.o: stdiodevice.cc include/stdiodevice.h include/iodevice.h \
  include/convert.h include/address.h include/depot.h

syslogdevice.o: syslogdevice.cc include/syslogdevice.h include/iodevice.h \
  include/convert.h include/address.h include/depot.h

tools.o: tools.cc include/tools.h