]>
Commit | Line | Data |
---|---|---|
a2794549 | 1 | # |
2 | # Makefile for the Squid Object Cache server | |
3 | # | |
a2794549 | 4 | # Uncomment and customize the following to suit your needs: |
5 | # | |
6 | ||
189f1e66 | 7 | include $(top_srcdir)/src/Common.am |
a46d2c0e | 8 | |
59b2d47f | 9 | AUTOMAKE_OPTIONS = subdir-objects |
a2794549 | 10 | if USE_DNSSERVER |
e6ccf245 | 11 | DNSSOURCE = dns.cc |
852a0ce1 | 12 | DNSSERVER = dnsserver |
13 | else | |
14 | DNSSOURCE = dns_internal.cc | |
15 | DNSSERVER = | |
16 | endif | |
17 | ||
3ff65596 AR |
18 | DNSSOURCE += \ |
19 | DnsLookupDetails.h \ | |
20 | DnsLookupDetails.cc | |
21 | ||
2cdb6869 | 22 | SNMP_ALL_SOURCE = \ |
23 | snmp_core.cc \ | |
24 | snmp_agent.cc | |
852a0ce1 | 25 | if USE_SNMP |
2cdb6869 | 26 | SNMP_SOURCE = $(SNMP_ALL_SOURCE) |
852a0ce1 | 27 | else |
2cdb6869 | 28 | SNMP_SOURCE = |
852a0ce1 | 29 | endif |
30 | ||
57afc994 AR |
31 | LOADABLE_MODULES_SOURCES = \ |
32 | LoadableModule.h \ | |
33 | LoadableModule.cc \ | |
34 | LoadableModules.h \ | |
35 | LoadableModules.cc | |
36 | ||
ee0927b6 | 37 | SUBDIRS = base eui acl fs repl auth ip icmp ident |
20f4520e | 38 | |
51a7ff6e AR |
39 | if USE_ADAPTATION |
40 | SUBDIRS += adaptation | |
41 | endif | |
42 | ||
1f3c65fc | 43 | ADAPTATION_LIBS = @ADAPTATION_LIBS@ |
51a7ff6e | 44 | |
f99c2cfe AR |
45 | if USE_ESI |
46 | SUBDIRS += esi | |
88bfe098 | 47 | ESI_LOCAL_LIBS = \ |
c41d7e69 AR |
48 | esi/libesi.la \ |
49 | $(top_builddir)/lib/libTrie/src/libTrie.a | |
88bfe098 AJ |
50 | ESI_LIBS = $(ESI_LOCAL_LIBS) \ |
51 | @XMLLIB@ \ | |
52 | @EXPATLIB@ | |
f99c2cfe AR |
53 | else |
54 | ESI_LIBS = | |
55 | endif | |
56 | ||
852a0ce1 | 57 | DELAY_POOL_ALL_SOURCE = \ |
58 | CommonPool.h \ | |
59 | CompositePoolNode.h \ | |
60 | delay_pools.cc \ | |
61 | DelayId.cc \ | |
62 | DelayId.h \ | |
63 | DelayIdComposite.h \ | |
64 | DelayBucket.cc \ | |
65 | DelayBucket.h \ | |
66 | DelayConfig.cc \ | |
67 | DelayConfig.h \ | |
68 | DelayPool.cc \ | |
69 | DelayPool.h \ | |
70 | DelayPools.h \ | |
71 | DelaySpec.cc \ | |
72 | DelaySpec.h \ | |
73 | DelayTagged.cc \ | |
74 | DelayTagged.h \ | |
75 | DelayUser.cc \ | |
76 | DelayUser.h \ | |
77 | DelayVector.cc \ | |
78 | DelayVector.h \ | |
79 | NullDelayId.cc \ | |
80 | NullDelayId.h | |
81 | if USE_DELAY_POOLS | |
82 | DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE) | |
83 | else | |
84 | DELAY_POOL_SOURCE = | |
85 | endif | |
86 | ||
852a0ce1 | 87 | if ENABLE_XPROF_STATS |
88 | XPROF_STATS_SOURCE = ProfStats.cc | |
89 | else | |
90 | XPROF_STATS_SOURCE = | |
91 | endif | |
92 | ||
93 | if ENABLE_HTCP | |
94 | HTCPSOURCE = htcp.cc htcp.h | |
95 | endif | |
96 | ||
97 | if MAKE_LEAKFINDER | |
ba126bee | 98 | LEAKFINDERSOURCE = LeakFinder.cc |
852a0ce1 | 99 | else |
100 | LEAKFINDERSOURCE = | |
101 | endif | |
102 | ||
103 | if ENABLE_UNLINKD | |
104 | UNLINKDSOURCE = unlinkd.cc | |
105 | UNLINKD = unlinkd | |
106 | else | |
107 | UNLINKDSOURCE = | |
108 | UNLINKD = | |
109 | endif | |
110 | ||
852a0ce1 | 111 | SSL_ALL_SOURCE = \ |
852a0ce1 | 112 | ssl_support.cc \ |
113 | ssl_support.h | |
cc192b50 | 114 | |
852a0ce1 | 115 | if ENABLE_SSL |
116 | SSL_SOURCE = $(SSL_ALL_SOURCE) | |
117 | else | |
118 | SSL_SOURCE = | |
119 | endif | |
120 | ||
9c8434f6 | 121 | WIN32_ALL_SOURCE = \ |
122 | win32.cc \ | |
123 | WinSvc.cc | |
852a0ce1 | 124 | if ENABLE_WIN32SPECIFIC |
9c8434f6 | 125 | WIN32_SOURCE = win32.cc |
126 | WINSVC_SOURCE = WinSvc.cc | |
852a0ce1 | 127 | else |
9c8434f6 | 128 | WIN32_SOURCE = |
129 | WINSVC_SOURCE = | |
852a0ce1 | 130 | endif |
131 | ||
b5d712b5 | 132 | if USE_IPC_WIN32 |
133 | IPC_SOURCE = ipc_win32.cc | |
134 | else | |
135 | IPC_SOURCE = ipc.cc | |
136 | endif | |
137 | ||
abb2a3d9 | 138 | AIO_WIN32_ALL_SOURCES = \ |
139 | DiskIO/AIO/aio_win32.cc \ | |
140 | DiskIO/AIO/aio_win32.h | |
141 | if USE_AIO_WIN32 | |
142 | AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES) | |
143 | else | |
144 | AIO_WIN32_SOURCES = | |
145 | endif | |
146 | ||
595c7973 | 147 | if USE_AIOPS_WIN32 |
148 | AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc | |
149 | else | |
150 | AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc | |
151 | endif | |
152 | ||
51a7ff6e AR |
153 | EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a |
154 | noinst_LIBRARIES = @DISK_LIBS@ | |
2d2b0bb7 | 155 | noinst_LTLIBRARIES = libsquid.la |
b9ae18aa | 156 | |
7d6fa4d4 AR |
157 | # libraries used by many targets |
158 | COMMON_LIBS = \ | |
b61a58df | 159 | base/libbase.la \ |
7d6fa4d4 | 160 | libsquid.la \ |
3ad63615 | 161 | auth/libacls.la \ |
4daaf3cb | 162 | ident/libident.la \ |
3ad63615 | 163 | acl/libacls.la \ |
ee0927b6 | 164 | eui/libeui.la \ |
3ad63615 AR |
165 | acl/libstate.la \ |
166 | auth/libauth.la \ | |
167 | acl/libapi.la \ | |
7b5b7ba8 CT |
168 | ip/libip.la \ |
169 | fs/libfs.la | |
7d6fa4d4 | 170 | |
189f1e66 AJ |
171 | ## Loadable Modules needs lib/libLtdl stuff |
172 | INCLUDES += -I$(top_srcdir)/lib | |
852a0ce1 | 173 | |
174 | EXTRA_PROGRAMS = \ | |
b9ae18aa | 175 | DiskIO/DiskDaemon/diskd \ |
852a0ce1 | 176 | unlinkd \ |
852a0ce1 | 177 | dnsserver \ |
178 | recv-announce \ | |
082a5e7a | 179 | tests/testUfs \ |
180 | tests/testCoss \ | |
181 | tests/testNull | |
852a0ce1 | 182 | |
596d3ba7 | 183 | ## cfgen is used when building squid |
184 | ## ufsdump is a debug utility, it is possibly useful for end users with cache | |
185 | ## corruption, but at this point we do not install it. | |
852a0ce1 | 186 | noinst_PROGRAMS = \ |
596d3ba7 | 187 | cf_gen \ |
188 | ufsdump | |
852a0ce1 | 189 | |
190 | sbin_PROGRAMS = \ | |
191 | squid | |
192 | ||
94ab55b0 | 193 | bin_PROGRAMS = |
852a0ce1 | 194 | |
195 | ||
196 | libexec_PROGRAMS = \ | |
852a0ce1 | 197 | $(DNSSERVER) \ |
b9ae18aa | 198 | @DISK_PROGRAMS@ \ |
94ab55b0 | 199 | $(UNLINKD) |
852a0ce1 | 200 | |
7d6fa4d4 | 201 | cf_gen_SOURCES = cf_gen.cc |
852a0ce1 | 202 | nodist_cf_gen_HEADER = cf_gen_defines.h |
9fb4efad | 203 | cf_gen_LDADD= \ |
f8b57b6c | 204 | $(COMPAT_LIB) \ |
9fb4efad AJ |
205 | @XTRA_LIBS@ \ |
206 | @EPOLL_LIBS@ \ | |
207 | @MINGW_LIBS@ | |
852a0ce1 | 208 | cf_gen.$(OBJEXT): cf_gen_defines.h |
852a0ce1 | 209 | |
189f1e66 AJ |
210 | ## cf_gen.cc needs src/cf_gen_defines.h |
211 | INCLUDES += -I$(top_builddir)/src | |
212 | ||
2d46f579 | 213 | |
f07e9e1f | 214 | ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc |
2d46f579 | 215 | |
c8f4eac4 | 216 | DISKIO_SOURCE = \ |
217 | DiskIO/DiskIOModule.cc \ | |
218 | DiskIO/ReadRequest.cc \ | |
219 | DiskIO/ReadRequest.h \ | |
220 | DiskIO/WriteRequest.cc \ | |
221 | DiskIO/WriteRequest.h \ | |
222 | DiskIO/DiskFile.h \ | |
223 | DiskIO/DiskIOStrategy.h \ | |
224 | DiskIO/IORequestor.h \ | |
225 | DiskIO/DiskIOModule.h \ | |
95329c22 HN |
226 | DiskIO/ReadRequest.h |
227 | ||
228 | DISKIO_GEN_SOURCE = \ | |
09c5ae5a AJ |
229 | DiskIO/DiskIOModules_gen.cc |
230 | ||
231 | DiskIO/DiskIOModules_gen.cc: Makefile | |
232 | $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc | |
233 | ||
c8f4eac4 | 234 | |
6a709184 | 235 | squid_COMMSOURCES = \ |
236 | comm_select.cc \ | |
237 | comm_select.h \ | |
663c0a38 | 238 | comm_select_win32.cc \ |
6a709184 | 239 | comm_poll.cc \ |
240 | comm_poll.h \ | |
663c0a38 | 241 | comm_epoll.cc \ |
242 | comm_epoll.h \ | |
6a709184 | 243 | comm_kqueue.cc \ |
244 | comm_kqueue.h | |
245 | ||
f24583c1 | 246 | |
247 | # common library for all the binaries and tests. This is kindof a catch all | |
248 | # and smaller libraries split from this are encouraged. Using lt convenience | |
249 | # libraries, dependencies should not be a problem either. | |
250 | libsquid_la_SOURCES = \ | |
251 | comm.cc \ | |
252 | comm.h \ | |
b0469965 | 253 | CommCalls.cc \ |
254 | CommCalls.h \ | |
877ce944 AR |
255 | DescriptorSet.cc \ |
256 | DescriptorSet.h \ | |
e1f7507e | 257 | SquidConfig.cc \ |
b0469965 | 258 | TextException.cc \ |
259 | TextException.h | |
f24583c1 | 260 | |
852a0ce1 | 261 | squid_SOURCES = \ |
2d46f579 | 262 | $(ACL_REGISTRATION_SOURCES) \ |
852a0ce1 | 263 | access_log.cc \ |
450e0c10 | 264 | AccessLogEntry.h \ |
8ff3fa2e | 265 | AsyncEngine.cc \ |
266 | AsyncEngine.h \ | |
852a0ce1 | 267 | cache_cf.cc \ |
1b26be8f | 268 | ProtoPort.cc \ |
269 | ProtoPort.h \ | |
852a0ce1 | 270 | CacheDigest.cc \ |
271 | cache_manager.cc \ | |
62ee09ca | 272 | CacheManager.h \ |
852a0ce1 | 273 | carp.cc \ |
274 | cbdata.cc \ | |
aa839030 | 275 | cbdata.h \ |
81c07a23 | 276 | ChunkedCodingParser.cc \ |
277 | ChunkedCodingParser.h \ | |
852a0ce1 | 278 | client_db.cc \ |
279 | client_side.cc \ | |
280 | client_side.h \ | |
281 | client_side_reply.cc \ | |
282 | client_side_reply.h \ | |
283 | client_side_request.cc \ | |
284 | client_side_request.h \ | |
281422f8 | 285 | ClientInfo.h \ |
5f8252d2 | 286 | BodyPipe.cc \ |
287 | BodyPipe.h \ | |
281422f8 | 288 | ClientInfo.h \ |
cd397896 | 289 | ClientRequestContext.h \ |
852a0ce1 | 290 | clientStream.cc \ |
291 | clientStream.h \ | |
663c0a38 | 292 | CommIO.h \ |
a553a5a3 | 293 | CompletionDispatcher.cc \ |
294 | CompletionDispatcher.h \ | |
6a709184 | 295 | $(squid_COMMSOURCES) \ |
852a0ce1 | 296 | CommRead.h \ |
b9ae18aa | 297 | ConfigOption.cc \ |
d295d770 | 298 | ConfigParser.cc \ |
852a0ce1 | 299 | ConfigParser.h \ |
300 | ConnectionDetail.h \ | |
301 | debug.cc \ | |
302 | Debug.h \ | |
303 | defines.h \ | |
304 | $(DELAY_POOL_SOURCE) \ | |
305 | disk.cc \ | |
c8f4eac4 | 306 | $(DISKIO_SOURCE) \ |
25b6a907 | 307 | dlink.h \ |
e1f7507e | 308 | dlink.cc \ |
852a0ce1 | 309 | $(DNSSOURCE) \ |
310 | enums.h \ | |
4b981814 | 311 | err_type.h \ |
852a0ce1 | 312 | errorpage.cc \ |
3ad63615 | 313 | errorpage.h \ |
852a0ce1 | 314 | ETag.cc \ |
315 | event.cc \ | |
a553a5a3 | 316 | event.h \ |
317 | EventLoop.h \ | |
318 | EventLoop.cc \ | |
852a0ce1 | 319 | external_acl.cc \ |
320 | ExternalACL.h \ | |
321 | ExternalACLEntry.cc \ | |
322 | ExternalACLEntry.h \ | |
323 | fd.cc \ | |
324 | fde.cc \ | |
325 | fde.h \ | |
326 | filemap.cc \ | |
327 | forward.cc \ | |
8bd61868 | 328 | forward.h \ |
852a0ce1 | 329 | fqdncache.cc \ |
330 | ftp.cc \ | |
331 | Generic.h \ | |
332 | globals.h \ | |
333 | gopher.cc \ | |
334 | helper.cc \ | |
335 | helper.h \ | |
bbaf2685 | 336 | hier_code.h \ |
b24880fe | 337 | HierarchyLogEntry.h \ |
852a0ce1 | 338 | $(HTCPSOURCE) \ |
339 | http.cc \ | |
340 | http.h \ | |
341 | HttpStatusLine.cc \ | |
450e0c10 | 342 | HttpStatusLine.h \ |
852a0ce1 | 343 | HttpHdrCc.cc \ |
344 | HttpHdrRange.cc \ | |
345 | HttpHdrSc.cc \ | |
25b6a907 | 346 | HttpHdrSc.h \ |
852a0ce1 | 347 | HttpHdrScTarget.cc \ |
25b6a907 | 348 | HttpHdrScTarget.h \ |
852a0ce1 | 349 | HttpHdrContRange.cc \ |
350 | HttpHdrContRange.h \ | |
351 | HttpHeader.cc \ | |
352 | HttpHeader.h \ | |
25b6a907 | 353 | HttpHeaderMask.h \ |
852a0ce1 | 354 | HttpHeaderRange.h \ |
355 | HttpHeaderTools.cc \ | |
356 | HttpBody.cc \ | |
357 | HttpMsg.cc \ | |
8596962e | 358 | HttpMsg.h \ |
852a0ce1 | 359 | HttpReply.cc \ |
360 | HttpReply.h \ | |
361 | HttpRequest.cc \ | |
362 | HttpRequest.h \ | |
985c86bc | 363 | HttpRequestMethod.cc \ |
364 | HttpRequestMethod.h \ | |
450e0c10 | 365 | HttpVersion.h \ |
852a0ce1 | 366 | ICP.h \ |
4b981814 | 367 | icp_opcode.h \ |
852a0ce1 | 368 | icp_v2.cc \ |
369 | icp_v3.cc \ | |
852a0ce1 | 370 | int.cc \ |
371 | internal.cc \ | |
b5d712b5 | 372 | $(IPC_SOURCE) \ |
852a0ce1 | 373 | ipcache.cc \ |
852a0ce1 | 374 | $(LEAKFINDERSOURCE) \ |
c8f4eac4 | 375 | list.cc \ |
852a0ce1 | 376 | logfile.cc \ |
4b981814 | 377 | lookup_t.h \ |
852a0ce1 | 378 | main.cc \ |
379 | mem.cc \ | |
380 | mem_node.cc \ | |
381 | mem_node.h \ | |
382 | Mem.h \ | |
383 | MemBuf.cc \ | |
384 | MemObject.cc \ | |
385 | MemObject.h \ | |
386 | mime.cc \ | |
0f9db2d6 | 387 | mime_header.cc \ |
852a0ce1 | 388 | multicast.cc \ |
389 | neighbors.cc \ | |
852a0ce1 | 390 | Packer.cc \ |
25b6a907 | 391 | Packer.h \ |
c8f4eac4 | 392 | Parsing.cc \ |
393 | Parsing.h \ | |
852a0ce1 | 394 | $(XPROF_STATS_SOURCE) \ |
395 | pconn.cc \ | |
2d3c24dc | 396 | pconn.h \ |
37c84c0b | 397 | PeerDigest.h \ |
852a0ce1 | 398 | peer_digest.cc \ |
9ca29d23 | 399 | peer_proxy_negotiate_auth.cc \ |
852a0ce1 | 400 | peer_select.cc \ |
f4a21650 HN |
401 | peer_sourcehash.cc \ |
402 | peer_userhash.cc \ | |
b24880fe | 403 | PeerSelectState.h \ |
404 | PingData.h \ | |
852a0ce1 | 405 | protos.h \ |
406 | redirect.cc \ | |
407 | referer.cc \ | |
408 | refresh.cc \ | |
aa839030 | 409 | RemovalPolicy.cc \ |
410 | RemovalPolicy.h \ | |
852a0ce1 | 411 | send-announce.cc \ |
2cdb6869 | 412 | $(SNMP_SOURCE) \ |
852a0ce1 | 413 | squid.h \ |
414 | SquidNew.cc \ | |
852a0ce1 | 415 | $(SSL_SOURCE) \ |
416 | stat.cc \ | |
417 | StatHist.cc \ | |
30abd221 | 418 | String.cc \ |
852a0ce1 | 419 | stmem.cc \ |
420 | stmem.h \ | |
421 | store.cc \ | |
422 | Store.h \ | |
59b2d47f | 423 | StoreFileSystem.cc \ |
424 | StoreFileSystem.h \ | |
c8f4eac4 | 425 | StoreHashIndex.h \ |
852a0ce1 | 426 | store_io.cc \ |
427 | StoreIOBuffer.h \ | |
428 | StoreIOState.cc \ | |
429 | StoreIOState.h \ | |
430 | store_client.cc \ | |
431 | StoreClient.h \ | |
432 | store_digest.cc \ | |
433 | store_dir.cc \ | |
434 | store_key_md5.cc \ | |
435 | store_log.cc \ | |
436 | store_rebuild.cc \ | |
437 | store_swapin.cc \ | |
438 | store_swapmeta.cc \ | |
439 | store_swapout.cc \ | |
440 | StoreMeta.cc \ | |
441 | StoreMeta.h \ | |
442 | StoreMetaMD5.cc \ | |
443 | StoreMetaMD5.h \ | |
444 | StoreMetaSTD.cc \ | |
445 | StoreMetaSTD.h \ | |
47f6e231 | 446 | StoreMetaSTDLFS.cc \ |
447 | StoreMetaSTDLFS.h \ | |
9e6e1d99 | 448 | StoreMetaObjSize.h \ |
852a0ce1 | 449 | StoreMetaUnpacker.cc \ |
450 | StoreMetaUnpacker.h \ | |
451 | StoreMetaURL.cc \ | |
452 | StoreMetaURL.h \ | |
453 | StoreMetaVary.cc \ | |
454 | StoreMetaVary.h \ | |
c8f4eac4 | 455 | StoreSearch.h \ |
852a0ce1 | 456 | StoreSwapLogData.cc \ |
457 | StoreSwapLogData.h \ | |
253caccb | 458 | Server.cc \ |
596d3ba7 | 459 | Server.h \ |
852a0ce1 | 460 | structs.h \ |
4b981814 | 461 | swap_log_op.h \ |
852a0ce1 | 462 | SwapDir.cc \ |
463 | SwapDir.h \ | |
c21ad0f5 | 464 | time.cc \ |
852a0ce1 | 465 | tools.cc \ |
aa839030 | 466 | tunnel.cc \ |
852a0ce1 | 467 | typedefs.h \ |
852a0ce1 | 468 | $(UNLINKDSOURCE) \ |
469 | url.cc \ | |
985c86bc | 470 | URL.h \ |
471 | URLScheme.cc \ | |
472 | URLScheme.h \ | |
852a0ce1 | 473 | urn.cc \ |
474 | useragent.cc \ | |
852a0ce1 | 475 | wccp.cc \ |
0b0cfcf2 | 476 | wccp2.cc \ |
852a0ce1 | 477 | whois.cc \ |
d295d770 | 478 | wordlist.cc \ |
479 | wordlist.h \ | |
9c8434f6 | 480 | $(WIN32_SOURCE) \ |
481 | $(WINSVC_SOURCE) | |
852a0ce1 | 482 | |
4b981814 AJ |
483 | EXTRA_squid_SOURCES = \ |
484 | $(AIO_WIN32_ALL_SOURCES) \ | |
485 | $(all_AUTHMODULES) \ | |
486 | ConfigOption.h \ | |
487 | $(DELAY_POOL_ALL_SOURCE) \ | |
488 | dns.cc \ | |
489 | dnsserver.cc \ | |
490 | dns_internal.cc \ | |
491 | DnsLookupDetails.cc \ | |
492 | DnsLookupDetails.h \ | |
493 | htcp.cc \ | |
494 | htcp.h \ | |
495 | ipc.cc \ | |
496 | ipc_win32.cc \ | |
497 | ProfStats.cc \ | |
498 | LeakFinder.cc \ | |
499 | LeakFinder.h \ | |
500 | $(SNMP_ALL_SOURCE) \ | |
501 | $(UNLINKDSOURCE) \ | |
502 | $(SSL_ALL_SOURCE) \ | |
503 | $(WIN32_ALL_SOURCE) \ | |
504 | $(LOADABLE_MODULES_SOURCES) \ | |
505 | DiskIO/DiskThreads/aiops.cc \ | |
506 | DiskIO/DiskThreads/aiops_win32.cc | |
507 | ||
3ad63615 | 508 | noinst_HEADERS = \ |
852a0ce1 | 509 | client_side_request.cci \ |
510 | MemBuf.cci \ | |
511 | MemBuf.h \ | |
512 | Store.cci \ | |
c21ad0f5 | 513 | StoreEntryStream.h \ |
30abd221 | 514 | String.cci \ |
1624365b | 515 | SquidString.h \ |
516 | SquidTime.h | |
852a0ce1 | 517 | |
4b981814 AJ |
518 | BUILT_SOURCES = \ |
519 | cf_gen_defines.h \ | |
852a0ce1 | 520 | cf_parser.h \ |
4b981814 | 521 | err_type.cc \ |
852a0ce1 | 522 | globals.cc \ |
4b981814 AJ |
523 | hier_code.cc \ |
524 | icp_opcode.cc \ | |
525 | lookup_t.cc \ | |
526 | repl_modules.cc \ | |
527 | swap_log_op.cc | |
528 | ||
529 | CLEANFILES += $(BUILT_SOURCES) | |
530 | ||
531 | nodist_squid_SOURCES = \ | |
532 | $(DISKIO_GEN_SOURCE) \ | |
533 | $(BUILT_SOURCES) | |
852a0ce1 | 534 | |
535 | squid_LDADD = \ | |
7d6fa4d4 | 536 | $(COMMON_LIBS) \ |
a98c2da5 | 537 | eui/libeui.la \ |
71787d05 | 538 | icmp/libicmp.la icmp/libicmp-core.la \ |
852a0ce1 | 539 | @XTRA_OBJS@ \ |
b9ae18aa | 540 | @DISK_LINKOBJS@ \ |
852a0ce1 | 541 | @REPL_OBJS@ \ |
b9ae18aa | 542 | @DISK_LIBS@ \ |
46577dd1 | 543 | @AIOLIB@ \ |
852a0ce1 | 544 | @CRYPTLIB@ \ |
545 | @REGEXLIB@ \ | |
546 | @SNMPLIB@ \ | |
51a7ff6e | 547 | ${ADAPTATION_LIBS} \ |
88bfe098 | 548 | $(ESI_LIBS) \ |
f8b57b6c | 549 | $(COMPAT_LIB) \ |
852a0ce1 | 550 | @SSLLIB@ \ |
852a0ce1 | 551 | @XTRA_LIBS@ \ |
790ebe36 | 552 | @EPOLL_LIBS@ \ |
9ca29d23 AJ |
553 | @MINGW_LIBS@ \ |
554 | @KRB5LIBS@ | |
aab300be | 555 | squid_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \ |
b9ae18aa | 556 | @DISK_LIBS@ \ |
557 | @DISK_LINKOBJS@ \ | |
d5475bf1 CT |
558 | @REPL_OBJS@ \ |
559 | @SNMPLIB@ \ | |
560 | ${ADAPTATION_LIBS} \ | |
88bfe098 | 561 | $(ESI_LOCAL_LIBS) \ |
d5475bf1 | 562 | $(COMMON_LIBS) |
c21ad0f5 | 563 | |
3e7b6055 | 564 | if USE_LOADABLE_MODULES |
57afc994 | 565 | squid_SOURCES += $(LOADABLE_MODULES_SOURCES) |
3e7b6055 AR |
566 | squid_LDADD += \ |
567 | @LIBLTDL@ | |
568 | squid_LDFLAGS = \ | |
569 | -export-dynamic -dlopen force | |
570 | # when static module linking is supported and enabled: | |
571 | # squid_LDFLAGS = \ | |
572 | # -all-static -dlopen self | |
573 | # | |
574 | endif | |
575 | ||
9ca29d23 AJ |
576 | ## Kerberos libraries require their include path... |
577 | INCLUDES += @KRB5INCS@ | |
578 | ||
3e7b6055 | 579 | |
128fe1c6 | 580 | unlinkd_SOURCES = unlinkd_daemon.cc SquidNew.cc |
852a0ce1 | 581 | |
852a0ce1 | 582 | dnsserver_SOURCES = dnsserver.cc SquidNew.cc |
583 | recv_announce_SOURCES = recv-announce.cc SquidNew.cc | |
584 | ||
a97576f3 | 585 | ## What requires what.. |
586 | ## many things want ACLChecklist.cc | |
587 | ## ACLChecklist.cc wants AuthUserRequest.cc | |
588 | ## ACLChecklist.cc wants AuthScheme.cc | |
589 | ## ACLChecklist.cc wants ACLProxyAuth.cc directly | |
590 | ## ACLProxyAuth.cc wants ACLUserData | |
591 | ## ACLProxyAuth.cc wants ACLRegexData | |
f24583c1 | 592 | ## cache_cf.cc wants libauth.la |
a97576f3 | 593 | ## cache_cf.cc wants Swapdir |
1b26be8f | 594 | ## cache_cf.cc wants ProtoPort |
a97576f3 | 595 | ## client_side wants client_db |
596 | ## client_db wants SNMP_SOURCE | |
597 | ## snmp_core wants ACLStringData | |
598 | ## SwapDir wants ConfigOption | |
9fb4efad AJ |
599 | ## tools.cc wants ip/libip.la |
600 | ## client_side.cc wants ip/libip.la | |
281422f8 | 601 | ## mem.cc wants ClientInfo.h |
b61a58df AJ |
602 | ## libbase.la wants cbdata.* |
603 | ## libbase.la wants MemBuf.* | |
596d3ba7 | 604 | ufsdump_SOURCES = \ |
281422f8 | 605 | ClientInfo.h \ |
b61a58df AJ |
606 | cbdata.h \ |
607 | cbdata.cc \ | |
596d3ba7 | 608 | debug.cc \ |
852a0ce1 | 609 | int.cc \ |
c21ad0f5 | 610 | mem.cc \ |
b61a58df AJ |
611 | MemBuf.cc \ |
612 | MemBuf.cci \ | |
613 | MemBuf.h \ | |
c21ad0f5 | 614 | store_key_md5.cc \ |
852a0ce1 | 615 | StoreMeta.cc \ |
852a0ce1 | 616 | StoreMetaMD5.cc \ |
852a0ce1 | 617 | StoreMetaSTD.cc \ |
47f6e231 | 618 | StoreMetaSTDLFS.cc \ |
852a0ce1 | 619 | StoreMetaUnpacker.cc \ |
852a0ce1 | 620 | StoreMetaURL.cc \ |
852a0ce1 | 621 | StoreMetaVary.cc \ |
30abd221 | 622 | String.cc \ |
c21ad0f5 | 623 | time.cc \ |
624 | ufsdump.cc \ | |
e1f7507e AJ |
625 | dlink.h \ |
626 | dlink.cc \ | |
985c86bc | 627 | HttpRequestMethod.cc \ |
aa839030 | 628 | RemovalPolicy.cc \ |
852a0ce1 | 629 | squid.h \ |
b61a58df AJ |
630 | $(WIN32_SOURCE) \ |
631 | tests/stub_fd.cc | |
852a0ce1 | 632 | ufsdump_LDADD = \ |
7d6fa4d4 | 633 | $(COMMON_LIBS) \ |
852a0ce1 | 634 | @XTRA_OBJS@ \ |
635 | @REPL_OBJS@ \ | |
852a0ce1 | 636 | @CRYPTLIB@ \ |
637 | @REGEXLIB@ \ | |
638 | @SNMPLIB@ \ | |
852a0ce1 | 639 | @SSLLIB@ \ |
641ac151 | 640 | -L$(top_builddir)/lib -lmiscutil \ |
852a0ce1 | 641 | @XTRA_LIBS@ \ |
790ebe36 | 642 | @EPOLL_LIBS@ \ |
9ca29d23 | 643 | @MINGW_LIBS@ |
aab300be | 644 | ufsdump_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \ |
7b5b7ba8 | 645 | $(COMMON_LIBS) \ |
aab300be | 646 | @DISK_LIBS@ \ |
647 | @DISK_LINKOBJS@ \ | |
3ad63615 | 648 | @REPL_OBJS@ |
aab300be | 649 | |
852a0ce1 | 650 | nodist_ufsdump_SOURCES = \ |
3ad63615 | 651 | globals.cc |
852a0ce1 | 652 | |
852a0ce1 | 653 | sysconf_DATA = \ |
654 | squid.conf.default \ | |
1446a5fd | 655 | squid.conf.documented \ |
852a0ce1 | 656 | mime.conf.default |
657 | ||
658 | data_DATA = \ | |
659 | mib.txt | |
660 | ||
7d6fa4d4 | 661 | LDADD = $(COMMON_LIBS) -L../lib -lmiscutil @XTRA_LIBS@ @EPOLL_LIBS@ @MINGW_LIBS@ |
852a0ce1 | 662 | |
663 | EXTRA_DIST = \ | |
664 | cf_gen_defines \ | |
665 | cf.data.pre \ | |
93c07e16 | 666 | cf.data.depend \ |
74253ee6 | 667 | DiskIO/modules.sh \ |
852a0ce1 | 668 | mk-globals-c.pl \ |
e1007e14 | 669 | mk-globals-c.awk \ |
852a0ce1 | 670 | mk-string-arrays.pl \ |
e1007e14 | 671 | mk-string-arrays.awk \ |
852a0ce1 | 672 | repl_modules.sh \ |
673 | mib.txt \ | |
c8f4eac4 | 674 | mime.conf.default |
b9ae18aa | 675 | |
676 | libAIO_a_SOURCES = \ | |
abb2a3d9 | 677 | $(AIO_WIN32_SOURCES) \ |
b9ae18aa | 678 | DiskIO/AIO/async_io.h \ |
679 | DiskIO/AIO/AIODiskFile.cc \ | |
680 | DiskIO/AIO/AIODiskFile.h \ | |
681 | DiskIO/AIO/AIODiskIOStrategy.cc \ | |
682 | DiskIO/AIO/AIODiskIOStrategy.h \ | |
638b9bab AJ |
683 | DiskIO/AIO/AIODiskIOModule.cc \ |
684 | DiskIO/AIO/AIODiskIOModule.h | |
b9ae18aa | 685 | |
686 | libBlocking_a_SOURCES = \ | |
687 | DiskIO/Blocking/BlockingFile.cc \ | |
688 | DiskIO/Blocking/BlockingFile.h \ | |
689 | DiskIO/Blocking/BlockingIOStrategy.cc \ | |
690 | DiskIO/Blocking/BlockingIOStrategy.h \ | |
a258fe8b | 691 | DiskIO/Blocking/BlockingDiskIOModule.cc \ |
b9ae18aa | 692 | DiskIO/Blocking/BlockingDiskIOModule.h |
693 | ||
694 | libDiskDaemon_a_SOURCES = \ | |
695 | DiskIO/DiskDaemon/DiskdFile.cc \ | |
696 | DiskIO/DiskDaemon/DiskdFile.h \ | |
697 | DiskIO/DiskDaemon/DiskdIOStrategy.cc \ | |
698 | DiskIO/DiskDaemon/DiskdIOStrategy.h \ | |
699 | DiskIO/DiskDaemon/diomsg.h \ | |
8423fe1f | 700 | DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \ |
b9ae18aa | 701 | DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h |
702 | ||
703 | libDiskThreads_a_SOURCES = \ | |
595c7973 | 704 | $(AIOPS_SOURCE) \ |
705 | DiskIO/DiskThreads/async_io.cc \ | |
706 | DiskIO/DiskThreads/DiskThreads.h \ | |
707 | DiskIO/DiskThreads/DiskThreadsDiskFile.cc \ | |
708 | DiskIO/DiskThreads/DiskThreadsDiskFile.h \ | |
8423fe1f | 709 | DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \ |
595c7973 | 710 | DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \ |
711 | DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \ | |
712 | DiskIO/DiskThreads/DiskThreadsIOStrategy.h | |
b9ae18aa | 713 | |
714 | DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc | |
715 | DiskIO_DiskDaemon_diskd_LDADD = $(top_builddir)/lib/libmiscutil.a @XTRA_LIBS@ | |
716 | ||
852a0ce1 | 717 | |
58c1507a | 718 | DEFAULT_HTTP_PORT = @CACHE_HTTP_PORT@ |
719 | DEFAULT_ICP_PORT = @CACHE_ICP_PORT@ | |
852a0ce1 | 720 | DEFAULT_PREFIX = $(prefix) |
5b52cb6c | 721 | DEFAULT_CONFIG_DIR = $(sysconfdir) |
aa55a81f HN |
722 | DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf |
723 | DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf | |
831eb43f | 724 | DEFAULT_DNSSERVER = $(libexecdir)/`echo dnsserver | sed '$(transform);s/$$/$(EXEEXT)/'` |
c8d2dc9b | 725 | DEFAULT_LOG_PREFIX = @DEFAULT_LOG_DIR@ |
852a0ce1 | 726 | DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log |
727 | DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log | |
728 | DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log | |
a7f6af35 | 729 | DEFAULT_PID_FILE = @DEFAULT_PIDFILE@ |
2b753521 | 730 | DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state |
852a0ce1 | 731 | DEFAULT_SWAP_DIR = $(localstatedir)/cache |
831eb43f | 732 | DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'` |
733 | DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'` | |
734 | DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'` | |
852a0ce1 | 735 | DEFAULT_ICON_DIR = $(datadir)/icons |
43000484 | 736 | DEFAULT_ERROR_DIR = $(datadir)/errors |
852a0ce1 | 737 | DEFAULT_HOSTS = @OPT_DEFAULT_HOSTS@ |
738 | ||
aa55a81f | 739 | # Make location configure settings available to the code |
189f1e66 | 740 | DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\" |
852a0ce1 | 741 | |
742 | snmp_core.o snmp_agent.o: ../snmplib/libsnmp.a $(top_srcdir)/include/cache_snmp.h | |
743 | ||
4b981814 | 744 | globals.cc: globals.h mk-globals-c.awk |
ae0c53fc | 745 | $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ |
852a0ce1 | 746 | |
4b981814 AJ |
747 | ## Generate files containing strng arrays for various enums.... |
748 | hier_code.cc: hier_code.h mk-string-arrays.awk | |
749 | $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ | |
750 | ||
751 | err_type.cc: err_type.h mk-string-arrays.awk | |
752 | $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ | |
753 | ||
754 | lookup_t.cc: lookup_t.h mk-string-arrays.awk | |
755 | $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ | |
756 | ||
757 | icp_opcode.cc: icp_opcode.h mk-string-arrays.awk | |
758 | $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ | |
759 | ||
760 | swap_log_op.cc: swap_log_op.h mk-string-arrays.awk | |
761 | $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ | |
762 | ||
763 | ||
764 | ## other generated files... | |
852a0ce1 | 765 | |
766 | cache_diff: cache_diff.o debug.o globals.o store_key_md5.o | |
767 | $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS) | |
768 | ||
769 | test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o | |
770 | $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS) | |
a2794549 | 771 | |
772 | ## If autodependency works well this is not needed anymore | |
852a0ce1 | 773 | cache_cf.o: cf_parser.h |
a2794549 | 774 | |
1446a5fd | 775 | # squid.conf.default is built by cf_gen when making cf_parser.h |
509fba1a | 776 | squid.conf.default squid.conf.documented: cf_parser.h |
34af43e2 | 777 | true |
a2794549 | 778 | |
852a0ce1 | 779 | cf_parser.h: cf.data cf_gen$(EXEEXT) |
41bd17a4 | 780 | ./cf_gen cf.data $(srcdir)/cf.data.depend |
a2794549 | 781 | |
852a0ce1 | 782 | cf_gen_defines.h: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre |
ae0c53fc | 783 | $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >cf_gen_defines.h |
a2794549 | 784 | |
785 | ||
786 | ## FIXME: generate a sed command file from configure. Then this doesn't | |
43000484 | 787 | ## depend on the Makefile. |
852a0ce1 | 788 | cf.data: cf.data.pre Makefile |
789 | sed "\ | |
58c1507a | 790 | s%@DEFAULT_HTTP_PORT@%$(DEFAULT_HTTP_PORT)%g;\ |
791 | s%@DEFAULT_ICP_PORT@%$(DEFAULT_ICP_PORT)%g;\ | |
5483d916 | 792 | s%@DEFAULT_CACHE_EFFECTIVE_USER@%${CACHE_EFFECTIVE_USER}%g;\ |
852a0ce1 | 793 | s%@DEFAULT_MIME_TABLE@%$(DEFAULT_MIME_TABLE)%g;\ |
794 | s%@DEFAULT_DNSSERVER@%$(DEFAULT_DNSSERVER)%g;\ | |
795 | s%@DEFAULT_UNLINKD@%$(DEFAULT_UNLINKD)%g;\ | |
796 | s%@DEFAULT_PINGER@%$(DEFAULT_PINGER)%g;\ | |
797 | s%@DEFAULT_DISKD@%$(DEFAULT_DISKD)%g;\ | |
798 | s%@DEFAULT_CACHE_LOG@%$(DEFAULT_CACHE_LOG)%g;\ | |
799 | s%@DEFAULT_ACCESS_LOG@%$(DEFAULT_ACCESS_LOG)%g;\ | |
800 | s%@DEFAULT_STORE_LOG@%$(DEFAULT_STORE_LOG)%g;\ | |
801 | s%@DEFAULT_PID_FILE@%$(DEFAULT_PID_FILE)%g;\ | |
2b753521 | 802 | s%@DEFAULT_NETDB_FILE@%$(DEFAULT_NETDB_FILE)%g;\ |
852a0ce1 | 803 | s%@DEFAULT_SWAP_DIR@%$(DEFAULT_SWAP_DIR)%g;\ |
804 | s%@DEFAULT_ICON_DIR@%$(DEFAULT_ICON_DIR)%g;\ | |
5b52cb6c | 805 | s%@DEFAULT_CONFIG_DIR@%$(DEFAULT_CONFIG_DIR)%g;\ |
852a0ce1 | 806 | s%@DEFAULT_PREFIX@%$(DEFAULT_PREFIX)%g;\ |
807 | s%@DEFAULT_HOSTS@%$(DEFAULT_HOSTS)%g;\ | |
ad12fb4b | 808 | s%@SQUID@%SQUID\ $(VERSION)%g;"\ |
852a0ce1 | 809 | < $(srcdir)/cf.data.pre >$@ |
810 | ||
852a0ce1 | 811 | repl_modules.cc: repl_modules.sh Makefile |
812 | $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc | |
813 | ||
852a0ce1 | 814 | install-data-local: install-sysconfDATA install-dataDATA |
815 | @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \ | |
816 | echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \ | |
817 | else \ | |
818 | echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\ | |
819 | $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \ | |
820 | fi | |
821 | @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \ | |
822 | echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \ | |
823 | else \ | |
824 | echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \ | |
825 | $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \ | |
826 | fi | |
1446a5fd AJ |
827 | echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \ |
828 | $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \ | |
829 | echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \ | |
830 | $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \ | |
852a0ce1 | 831 | $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX) |
a2794549 | 832 | |
5b218ff4 HN |
833 | uninstall-local: squid.conf.default |
834 | @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default | |
835 | @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default | |
a2794549 | 836 | |
4b981814 AJ |
837 | CLEANFILES += cf.data squid.conf.default squid.conf.documented \ |
838 | DiskIO/DiskIOModules_gen.cc \ | |
95329c22 HN |
839 | test_tools.cc *.a |
840 | ||
841 | test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc | |
842 | cp $(top_srcdir)/test-suite/test_tools.cc . | |
a2794549 | 843 | |
25b6a907 | 844 | # stock tools for unit tests - library independent versions of dlink_list |
845 | # etc. | |
95329c22 HN |
846 | # globals.cc is needed by test_tools.cc. |
847 | # Neither of these should be disted from here. | |
25b6a907 | 848 | TESTSOURCES= \ |
95329c22 | 849 | test_tools.cc \ |
25b6a907 | 850 | globals.cc |
851 | ||
e24ee19d | 852 | # sources needed by those tests that need event.cc; incomplete |
853 | TEST_CALL_SOURCES = \ | |
882255af | 854 | event.cc |
e24ee19d | 855 | |
e1f7507e | 856 | |
b707cdeb | 857 | check_PROGRAMS+= tests/testAuth \ |
d295d770 | 858 | tests/testACLMaxUserIP \ |
25b6a907 | 859 | tests/testBoilerplate \ |
62ee09ca | 860 | tests/testCacheManager \ |
b7717b61 | 861 | tests/testDiskIO \ |
a553a5a3 | 862 | tests/testEvent \ |
863 | tests/testEventLoop \ | |
f24583c1 | 864 | tests/test_http_range \ |
0f9db2d6 | 865 | tests/testHttpReply \ |
c21ad0f5 | 866 | tests/testHttpRequest \ |
25b6a907 | 867 | tests/testStore \ |
30abd221 | 868 | tests/testString \ |
985c86bc | 869 | tests/testURL \ |
082a5e7a | 870 | @STORE_TESTS@ |
f5691f9c | 871 | |
104ed46e AJ |
872 | ## NP: required to run the above list. check_PROGRAMS only builds the binaries... |
873 | TESTS += $(check_PROGRAMS) | |
874 | ||
e1a88700 | 875 | ### Template for new Unit Test Program |
876 | ## - add tests/testX to check_PROGRAMS above. | |
877 | ## - copy template below and substitue X for class name | |
878 | ## - add other component .(h|cc) files needed to link and run tests | |
879 | ## | |
880 | ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing | |
881 | ## | |
882 | #tests_testX_SOURCES=\ | |
883 | # tests/testX.h \ | |
884 | # tests/testX.cc \ | |
885 | # tests/testMain.cc \ | |
886 | # X.h \ | |
95329c22 HN |
887 | # X.cc |
888 | #nodist_tests_testX_SOURCES=\ | |
e1a88700 | 889 | # $(TESTSOURCES) |
890 | #tests_testX_LDFLAGS = $(LIBADD_DL) | |
891 | #tests_testX_LDADD=\ | |
892 | # @SQUID_CPPUNIT_LIBS@ \ | |
893 | # @SQUID_CPPUNIT_LA@ \ | |
894 | # -L../lib -lmiscutil | |
895 | #tests_testX_DEPENDENCIES= @SQUID_CPPUNIT_LA@ \ | |
896 | # $(top_builddir)/lib/libmiscutil.a | |
897 | ||
0f9db2d6 AJ |
898 | |
899 | # - add other component .(h|cc) files needed to link and run tests | |
900 | tests_testHttpReply_SOURCES=\ | |
901 | tests/testHttpReply.h \ | |
902 | tests/testHttpReply.cc \ | |
903 | tests/testMain.cc \ | |
904 | cbdata.h \ | |
905 | cbdata.cc \ | |
906 | ETag.cc \ | |
907 | HttpBody.cc \ | |
908 | HttpHdrCc.cc \ | |
909 | HttpHdrContRange.h \ | |
910 | HttpHdrContRange.cc \ | |
911 | HttpHdrRange.cc \ | |
912 | HttpHdrSc.h \ | |
913 | HttpHdrSc.cc \ | |
914 | HttpHdrScTarget.h \ | |
915 | HttpHdrScTarget.cc \ | |
916 | HttpHeader.h \ | |
917 | HttpHeader.cc \ | |
918 | HttpHeaderMask.h \ | |
919 | HttpHeaderTools.cc \ | |
920 | HttpMsg.h \ | |
921 | HttpMsg.cc \ | |
922 | HttpReply.h \ | |
923 | HttpReply.cc \ | |
924 | HttpStatusLine.h \ | |
925 | HttpStatusLine.cc \ | |
926 | mem.cc \ | |
927 | MemBuf.h \ | |
928 | MemBuf.cc \ | |
929 | mime_header.cc \ | |
930 | Packer.h \ | |
931 | Packer.cc \ | |
932 | tests/stub_cache_manager.cc \ | |
933 | tests/stub_StatHist.cc \ | |
934 | tests/stub_store.cc \ | |
935 | SquidString.h \ | |
936 | String.cc \ | |
937 | SquidTime.h \ | |
938 | time.cc | |
939 | nodist_tests_testHttpReply_SOURCES=\ | |
940 | $(TESTSOURCES) | |
941 | tests_testHttpReply_LDFLAGS = $(LIBADD_DL) | |
942 | tests_testHttpReply_LDADD=\ | |
943 | acl/libapi.la \ | |
944 | acl/libstate.la \ | |
945 | auth/libauth.la \ | |
946 | ip/libip.la \ | |
947 | @SQUID_CPPUNIT_LIBS@ \ | |
948 | @SQUID_CPPUNIT_LA@ \ | |
949 | -L../lib -lmiscutil | |
950 | tests_testHttpReply_DEPENDENCIES= @SQUID_CPPUNIT_LA@ \ | |
951 | $(top_builddir)/lib/libmiscutil.a | |
952 | ||
95329c22 HN |
953 | tests_testAuth_SOURCES = \ |
954 | tests/testAuth.cc tests/testMain.cc tests/testAuth.h \ | |
d295d770 | 955 | ConfigParser.cc \ |
f5691f9c | 956 | tests/stub_acl.cc tests/stub_cache_cf.cc \ |
30abd221 | 957 | tests/stub_helper.cc cbdata.cc String.cc \ |
281422f8 | 958 | tests/stub_store.cc HttpHeaderTools.cc HttpHeader.cc mem.cc ClientInfo.h \ |
3ad63615 AR |
959 | MemBuf.cc HttpHdrContRange.cc Packer.cc HttpHdrCc.cc HttpHdrSc.cc \ |
960 | HttpHdrScTarget.cc url.cc \ | |
f5691f9c | 961 | StatHist.cc HttpHdrRange.cc ETag.cc tests/stub_errorpage.cc \ |
81beaff8 | 962 | tests/stub_HttpRequest.cc tests/stub_DelayId.cc \ |
963 | tests/stub_MemObject.cc mem_node.cc \ | |
9b3ed82c | 964 | tests/stub_cache_manager.cc \ |
81beaff8 | 965 | stmem.cc \ |
966 | tests/stub_comm.cc \ | |
967 | tests/stub_http.cc \ | |
968 | HttpMsg.cc \ | |
985c86bc | 969 | HttpRequestMethod.cc \ |
81beaff8 | 970 | tests/stub_mime.cc \ |
d295d770 | 971 | tests/stub_access_log.cc \ |
985c86bc | 972 | time.cc \ |
973 | URLScheme.cc \ | |
e24ee19d | 974 | $(TEST_CALL_SOURCES) \ |
d295d770 | 975 | wordlist.cc |
f5691f9c | 976 | ## acl.cc cache_cf.cc tools.cc \ |
30abd221 | 977 | ## helper.cc String.cc cbdata.cc HttpHeaderTools.cc store.cc cache_manager.cc \ |
d295d770 | 978 | ## HttpHeader.cc url.cc mem.cc HttpRequest.cc Packer.cc access_log.cc \ |
f5691f9c | 979 | ## MemBuf.cc StatHist.cc logfile.cc |
95329c22 HN |
980 | nodist_tests_testAuth_SOURCES = \ |
981 | $(TESTSOURCES) | |
f5691f9c | 982 | |
983 | tests_testAuth_LDADD= \ | |
7d6fa4d4 | 984 | $(COMMON_LIBS) \ |
f5691f9c | 985 | -L../lib -lmiscutil \ |
7a7976e9 | 986 | @REGEXLIB@ \ |
8b5e106b | 987 | @SQUID_CPPUNIT_LIBS@ \ |
aa625860 | 988 | @SSLLIB@ |
f5691f9c | 989 | tests_testAuth_LDFLAGS = $(LIBADD_DL) |
990 | tests_testAuth_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \ | |
f5691f9c | 991 | @SQUID_CPPUNIT_LA@ |
c8f4eac4 | 992 | |
d295d770 | 993 | ## Tests for the ACLMaxUserIP class |
994 | ## acl needs wordlist. wordlist needs MemBug | |
995 | ## MemBuf needs mem, MemBuf needs event, | |
996 | ## event needs cbdata. | |
3ad63615 | 997 | ## ACLMaxUserUP needs libauth.la |
d295d770 | 998 | ## ACLMaxUserIP needs ACLChecklist |
999 | ## AuthUser request needs HttpHeader, which brings in | |
1000 | ## ETag.cc \ | |
1001 | ## HttpHeader.cc \ | |
1002 | ## HttpHeaderTools.cc \ | |
1003 | ## HttpHdrContRange.cc \ | |
1004 | ## HttpHdrCc.cc \ | |
1005 | ## HttpHdrRange.cc \ | |
1006 | ## HttpHdrSc.cc \ | |
1007 | ## HttpHdrScTarget.cc \ | |
1008 | ## Packer.cc \ | |
1009 | ## StatHist.cc \ | |
30abd221 | 1010 | ## String.cc \ |
d295d770 | 1011 | tests_testACLMaxUserIP_SOURCES= \ |
d295d770 | 1012 | cbdata.cc \ |
281422f8 | 1013 | ClientInfo.h \ |
d295d770 | 1014 | ConfigParser.cc \ |
d295d770 | 1015 | ETag.cc \ |
1016 | HttpHeader.cc \ | |
1017 | HttpHeaderTools.cc \ | |
1018 | HttpHdrContRange.cc \ | |
1019 | HttpHdrRange.cc \ | |
1020 | HttpHdrCc.cc \ | |
1021 | HttpHdrSc.cc \ | |
1022 | HttpHdrScTarget.cc \ | |
b1b15292 | 1023 | mem_node.cc \ |
d295d770 | 1024 | Packer.cc \ |
93a9ad6e | 1025 | Parsing.cc \ |
d295d770 | 1026 | StatHist.cc \ |
b1b15292 | 1027 | stmem.cc \ |
30abd221 | 1028 | String.cc \ |
e24ee19d | 1029 | $(TEST_CALL_SOURCES) \ |
93a9ad6e | 1030 | tests/stub_cache_cf.cc \ |
b1b15292 | 1031 | tests/stub_comm.cc \ |
1032 | tests/stub_DelayId.cc \ | |
1033 | tests/stub_MemObject.cc \ | |
d295d770 | 1034 | tests/stub_store.cc \ |
9b3ed82c | 1035 | tests/stub_cache_manager.cc \ |
d295d770 | 1036 | tests/testACLMaxUserIP.cc \ |
1037 | tests/testACLMaxUserIP.h \ | |
1038 | tests/testMain.cc \ | |
985c86bc | 1039 | time.cc \ |
d295d770 | 1040 | mem.cc \ |
1041 | MemBuf.cc \ | |
e24ee19d | 1042 | wordlist.cc |
95329c22 HN |
1043 | nodist_tests_testACLMaxUserIP_SOURCES= \ |
1044 | $(TESTSOURCES) | |
d295d770 | 1045 | tests_testACLMaxUserIP_LDADD= \ |
7d6fa4d4 | 1046 | $(COMMON_LIBS) \ |
d295d770 | 1047 | -L../lib -lmiscutil \ |
7a7976e9 | 1048 | @REGEXLIB@ \ |
8b5e106b | 1049 | @SQUID_CPPUNIT_LIBS@ \ |
d295d770 | 1050 | @SSLLIB@ |
1051 | tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL) | |
1052 | tests_testACLMaxUserIP_DEPENDENCIES = \ | |
1053 | @SQUID_CPPUNIT_LA@ | |
1054 | ||
25b6a907 | 1055 | ## a demonstration test that does nothing but shows the salient points |
1056 | ## involved in writing tests. | |
985c86bc | 1057 | tests_testBoilerplate_SOURCES = \ |
1058 | tests/testBoilerplate.cc \ | |
1059 | tests/testMain.cc \ | |
1060 | tests/testBoilerplate.h \ | |
985c86bc | 1061 | time.cc |
95329c22 HN |
1062 | nodist_tests_testBoilerplate_SOURCES = \ |
1063 | $(TESTSOURCES) | |
25b6a907 | 1064 | tests_testBoilerplate_LDADD= \ |
1065 | -L../lib -lmiscutil \ | |
8b5e106b | 1066 | @SQUID_CPPUNIT_LIBS@ \ |
25b6a907 | 1067 | @SSLLIB@ |
1068 | tests_testBoilerplate_LDFLAGS = $(LIBADD_DL) | |
1069 | tests_testBoilerplate_DEPENDENCIES = \ | |
1070 | @SQUID_CPPUNIT_LA@ | |
1071 | ||
62ee09ca | 1072 | ## Tests of the CacheManager module. |
1073 | tests_testCacheManager_SOURCES = \ | |
1074 | debug.cc \ | |
62ee09ca | 1075 | HttpRequest.cc \ |
1076 | HttpRequestMethod.cc \ | |
1077 | mem.cc \ | |
30abd221 | 1078 | String.cc \ |
62ee09ca | 1079 | tests/testCacheManager.cc \ |
a553a5a3 | 1080 | tests/testCacheManager.h \ |
62ee09ca | 1081 | tests/testMain.cc \ |
1082 | time.cc \ | |
1083 | access_log.cc \ | |
5f8252d2 | 1084 | BodyPipe.cc \ |
62ee09ca | 1085 | cache_manager.cc \ |
1086 | cache_cf.cc \ | |
1b26be8f | 1087 | ProtoPort.cc \ |
1088 | ProtoPort.h \ | |
62ee09ca | 1089 | CacheDigest.cc \ |
1090 | carp.cc \ | |
1091 | cbdata.cc \ | |
81c07a23 | 1092 | ChunkedCodingParser.cc \ |
62ee09ca | 1093 | client_db.cc \ |
1094 | client_side.cc \ | |
1095 | client_side_reply.cc \ | |
1096 | client_side_request.cc \ | |
281422f8 | 1097 | ClientInfo.h \ |
62ee09ca | 1098 | clientStream.cc \ |
6a709184 | 1099 | $(squid_COMMSOURCES) \ |
62ee09ca | 1100 | ConfigOption.cc \ |
1101 | ConfigParser.cc \ | |
1102 | $(DELAY_POOL_SOURCE) \ | |
1103 | disk.cc \ | |
e1f7507e AJ |
1104 | dlink.h \ |
1105 | dlink.cc \ | |
62ee09ca | 1106 | $(DNSSOURCE) \ |
62ee09ca | 1107 | errorpage.cc \ |
62ee09ca | 1108 | ETag.cc \ |
1109 | external_acl.cc \ | |
1110 | ExternalACLEntry.cc \ | |
1111 | fd.cc \ | |
1112 | fde.cc \ | |
1113 | forward.cc \ | |
1114 | fqdncache.cc \ | |
1115 | ftp.cc \ | |
1116 | gopher.cc \ | |
bbaf2685 | 1117 | hier_code.h \ |
62ee09ca | 1118 | helper.cc \ |
1119 | $(HTCPSOURCE) \ | |
1120 | http.cc \ | |
1121 | HttpBody.cc \ | |
1122 | HttpHeader.cc \ | |
1123 | HttpHeaderTools.cc \ | |
1124 | HttpHdrCc.cc \ | |
1125 | HttpHdrContRange.cc \ | |
1126 | HttpHdrRange.cc \ | |
1127 | HttpHdrSc.cc \ | |
1128 | HttpHdrScTarget.cc \ | |
1129 | HttpMsg.cc \ | |
1130 | HttpReply.cc \ | |
1131 | HttpStatusLine.cc \ | |
62ee09ca | 1132 | icp_v2.cc \ |
1133 | icp_v3.cc \ | |
b5d712b5 | 1134 | $(IPC_SOURCE) \ |
62ee09ca | 1135 | ipcache.cc \ |
1136 | int.cc \ | |
1137 | internal.cc \ | |
1138 | list.cc \ | |
1139 | logfile.cc \ | |
1140 | multicast.cc \ | |
1141 | mem_node.cc \ | |
1142 | MemBuf.cc \ | |
1143 | MemObject.cc \ | |
1144 | mime.cc \ | |
0f9db2d6 | 1145 | mime_header.cc \ |
62ee09ca | 1146 | neighbors.cc \ |
62ee09ca | 1147 | Packer.cc \ |
1148 | Parsing.cc \ | |
1149 | pconn.cc \ | |
1150 | peer_digest.cc \ | |
9ca29d23 | 1151 | peer_proxy_negotiate_auth.cc \ |
62ee09ca | 1152 | peer_select.cc \ |
f4a21650 HN |
1153 | peer_sourcehash.cc \ |
1154 | peer_userhash.cc \ | |
62ee09ca | 1155 | redirect.cc \ |
1156 | referer.cc \ | |
1157 | refresh.cc \ | |
aa839030 | 1158 | RemovalPolicy.cc \ |
62ee09ca | 1159 | Server.cc \ |
1160 | $(SNMP_SOURCE) \ | |
1161 | $(SSL_SOURCE) \ | |
1162 | stat.cc \ | |
1163 | StatHist.cc \ | |
1164 | stmem.cc \ | |
1165 | store.cc \ | |
1166 | store_client.cc \ | |
1167 | store_digest.cc \ | |
1168 | store_dir.cc \ | |
1169 | store_io.cc \ | |
1170 | store_key_md5.cc \ | |
1171 | store_log.cc \ | |
1172 | store_rebuild.cc \ | |
1173 | store_swapin.cc \ | |
1174 | store_swapmeta.cc \ | |
1175 | store_swapout.cc \ | |
1176 | StoreFileSystem.cc \ | |
1177 | StoreIOState.cc \ | |
1178 | StoreMeta.cc \ | |
1179 | StoreMetaMD5.cc \ | |
1180 | StoreMetaSTD.cc \ | |
47f6e231 | 1181 | StoreMetaSTDLFS.cc \ |
62ee09ca | 1182 | StoreMetaUnpacker.cc \ |
1183 | StoreMetaURL.cc \ | |
1184 | StoreMetaVary.cc \ | |
1185 | StoreSwapLogData.cc \ | |
e24ee19d | 1186 | $(TEST_CALL_SOURCES) \ |
62ee09ca | 1187 | tools.cc \ |
1188 | tunnel.cc \ | |
1189 | SwapDir.cc \ | |
1190 | url.cc \ | |
1191 | URLScheme.cc \ | |
1192 | urn.cc \ | |
1193 | useragent.cc \ | |
62288514 | 1194 | wccp2.cc \ |
62ee09ca | 1195 | whois.cc \ |
9c8434f6 | 1196 | $(WIN32_SOURCE) \ |
62ee09ca | 1197 | wordlist.cc |
1198 | nodist_tests_testCacheManager_SOURCES = \ | |
4b981814 | 1199 | $(BUILT_SOURCES) |
62ee09ca | 1200 | tests_testCacheManager_LDADD = \ |
7d6fa4d4 | 1201 | $(COMMON_LIBS) \ |
71787d05 | 1202 | icmp/libicmp.la icmp/libicmp-core.la \ |
62ee09ca | 1203 | @REPL_OBJS@ \ |
51a7ff6e | 1204 | ${ADAPTATION_LIBS} \ |
88bfe098 | 1205 | $(ESI_LIBS) \ |
62ee09ca | 1206 | @REGEXLIB@ \ |
bd3bca07 | 1207 | @SNMPLIB@ \ |
62ee09ca | 1208 | -L../lib -lmiscutil \ |
610ee341 | 1209 | @SQUID_CPPUNIT_LIBS@ \ |
62ee09ca | 1210 | @SQUID_CPPUNIT_LA@ \ |
bd3bca07 | 1211 | @SSLLIB@ \ |
9ca29d23 AJ |
1212 | @XTRA_LIBS@ \ |
1213 | @KRB5LIBS@ | |
62ee09ca | 1214 | tests_testCacheManager_LDFLAGS = $(LIBADD_DL) |
1215 | tests_testCacheManager_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \ | |
1216 | @REPL_OBJS@ \ | |
7f514ea7 | 1217 | @SQUID_CPPUNIT_LA@ |
62ee09ca | 1218 | |
95329c22 | 1219 | tests_testDiskIO_SOURCES = \ |
b7717b61 | 1220 | $(SWAP_TEST_SOURCES) \ |
1221 | tests/testDiskIO.cc \ | |
1222 | tests/testDiskIO.h \ | |
b707cdeb | 1223 | tests/testMain.cc \ |
fb36f587 | 1224 | tests/stub_cache_manager.cc |
95329c22 | 1225 | nodist_tests_testDiskIO_SOURCES= \ |
4b981814 AJ |
1226 | $(SWAP_TEST_GEN_SOURCES) \ |
1227 | swap_log_op.cc | |
95329c22 | 1228 | tests_testDiskIO_LDADD = \ |
b7717b61 | 1229 | $(SWAP_TEST_LDADD) \ |
3ad63615 | 1230 | @DISK_LIBS@ \ |
46577dd1 | 1231 | @AIOLIB@ \ |
3ad63615 | 1232 | $(COMMON_LIBS) \ |
638b9bab | 1233 | SquidConfig.o |
3ad63615 | 1234 | |
b7717b61 | 1235 | tests_testDiskIO_LDFLAGS = $(LIBADD_DL) |
1236 | tests_testDiskIO_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \ | |
638b9bab | 1237 | @DISK_LIBS@ \ |
46577dd1 | 1238 | @AIOLIB@ \ |
09c5ae5a | 1239 | $(SWAP_TEST_DS) \ |
b7717b61 | 1240 | @SQUID_CPPUNIT_LA@ |
1241 | ||
a553a5a3 | 1242 | ## Tests of the Even module. |
1243 | tests_testEvent_SOURCES = \ | |
1244 | debug.cc \ | |
1245 | EventLoop.h \ | |
1246 | EventLoop.cc \ | |
a553a5a3 | 1247 | HttpRequest.cc \ |
1248 | HttpRequestMethod.cc \ | |
1249 | mem.cc \ | |
aa839030 | 1250 | RemovalPolicy.cc \ |
30abd221 | 1251 | String.cc \ |
0e566514 | 1252 | tests/CapturingStoreEntry.h \ |
a553a5a3 | 1253 | tests/testEvent.cc \ |
1254 | tests/testEvent.h \ | |
1255 | tests/testMain.cc \ | |
1256 | time.cc \ | |
1257 | access_log.cc \ | |
5f8252d2 | 1258 | BodyPipe.cc \ |
a553a5a3 | 1259 | cache_manager.cc \ |
1260 | cache_cf.cc \ | |
1b26be8f | 1261 | ProtoPort.cc \ |
1262 | ProtoPort.h \ | |
a553a5a3 | 1263 | CacheDigest.cc \ |
1264 | carp.cc \ | |
1265 | cbdata.cc \ | |
81c07a23 | 1266 | ChunkedCodingParser.cc \ |
a553a5a3 | 1267 | client_db.cc \ |
1268 | client_side.cc \ | |
1269 | client_side_reply.cc \ | |
1270 | client_side_request.cc \ | |
281422f8 | 1271 | ClientInfo.h \ |
a553a5a3 | 1272 | clientStream.cc \ |
1273 | $(squid_COMMSOURCES) \ | |
1274 | ConfigOption.cc \ | |
1275 | ConfigParser.cc \ | |
1276 | $(DELAY_POOL_SOURCE) \ | |
1277 | disk.cc \ | |
e1f7507e AJ |
1278 | dlink.h \ |
1279 | dlink.cc \ | |
a553a5a3 | 1280 | $(DNSSOURCE) \ |
a553a5a3 | 1281 | errorpage.cc \ |
a553a5a3 | 1282 | ETag.cc \ |
1283 | external_acl.cc \ | |
1284 | ExternalACLEntry.cc \ | |
1285 | fd.cc \ | |
1286 | fde.cc \ | |
1287 | forward.cc \ | |
1288 | fqdncache.cc \ | |
1289 | ftp.cc \ | |
1290 | gopher.cc \ | |
bbaf2685 | 1291 | hier_code.h \ |
a553a5a3 | 1292 | helper.cc \ |
1293 | $(HTCPSOURCE) \ | |
1294 | http.cc \ | |
1295 | HttpBody.cc \ | |
1296 | HttpHeader.cc \ | |
1297 | HttpHeaderTools.cc \ | |
1298 | HttpHdrCc.cc \ | |
1299 | HttpHdrContRange.cc \ | |
1300 | HttpHdrRange.cc \ | |
1301 | HttpHdrSc.cc \ | |
1302 | HttpHdrScTarget.cc \ | |
1303 | HttpMsg.cc \ | |
1304 | HttpReply.cc \ | |
1305 | HttpStatusLine.cc \ | |
a553a5a3 | 1306 | icp_v2.cc \ |
1307 | icp_v3.cc \ | |
b5d712b5 | 1308 | $(IPC_SOURCE) \ |
a553a5a3 | 1309 | ipcache.cc \ |
1310 | int.cc \ | |
1311 | internal.cc \ | |
1312 | list.cc \ | |
1313 | logfile.cc \ | |
1314 | multicast.cc \ | |
1315 | mem_node.cc \ | |
1316 | MemBuf.cc \ | |
1317 | MemObject.cc \ | |
1318 | mime.cc \ | |
0f9db2d6 | 1319 | mime_header.cc \ |
a553a5a3 | 1320 | neighbors.cc \ |
a553a5a3 | 1321 | Packer.cc \ |
1322 | Parsing.cc \ | |
1323 | pconn.cc \ | |
1324 | peer_digest.cc \ | |
9ca29d23 | 1325 | peer_proxy_negotiate_auth.cc \ |
a553a5a3 | 1326 | peer_select.cc \ |
f4a21650 HN |
1327 | peer_sourcehash.cc \ |
1328 | peer_userhash.cc \ | |
a553a5a3 | 1329 | redirect.cc \ |
1330 | referer.cc \ | |
1331 | refresh.cc \ | |
1332 | Server.cc \ | |
1333 | $(SNMP_SOURCE) \ | |
1334 | $(SSL_SOURCE) \ | |
1335 | stat.cc \ | |
1336 | StatHist.cc \ | |
1337 | stmem.cc \ | |
1338 | store.cc \ | |
1339 | store_client.cc \ | |
1340 | store_digest.cc \ | |
1341 | store_dir.cc \ | |
1342 | store_io.cc \ | |
1343 | store_key_md5.cc \ | |
1344 | store_log.cc \ | |
1345 | store_rebuild.cc \ | |
1346 | store_swapin.cc \ | |
1347 | store_swapmeta.cc \ | |
1348 | store_swapout.cc \ | |
1349 | StoreFileSystem.cc \ | |
1350 | StoreIOState.cc \ | |
1351 | StoreMeta.cc \ | |
1352 | StoreMetaMD5.cc \ | |
1353 | StoreMetaSTD.cc \ | |
47f6e231 | 1354 | StoreMetaSTDLFS.cc \ |
a553a5a3 | 1355 | StoreMetaUnpacker.cc \ |
1356 | StoreMetaURL.cc \ | |
1357 | StoreMetaVary.cc \ | |
1358 | StoreSwapLogData.cc \ | |
e24ee19d | 1359 | $(TEST_CALL_SOURCES) \ |
a553a5a3 | 1360 | tools.cc \ |
1361 | tunnel.cc \ | |
1362 | SwapDir.cc \ | |
1363 | url.cc \ | |
1364 | URLScheme.cc \ | |
1365 | urn.cc \ | |
1366 | useragent.cc \ | |
a553a5a3 | 1367 | wccp2.cc \ |
1368 | whois.cc \ | |
9c8434f6 | 1369 | $(WIN32_SOURCE) \ |
a553a5a3 | 1370 | wordlist.cc |
1371 | nodist_tests_testEvent_SOURCES = \ | |
4b981814 | 1372 | $(BUILT_SOURCES) |
a553a5a3 | 1373 | tests_testEvent_LDADD = \ |
7d6fa4d4 | 1374 | $(COMMON_LIBS) \ |
9b5c4a9a | 1375 | icmp/libicmp.la icmp/libicmp-core.la \ |
a553a5a3 | 1376 | @REPL_OBJS@ \ |
51a7ff6e | 1377 | ${ADAPTATION_LIBS} \ |
88bfe098 | 1378 | $(ESI_LIBS) \ |
a553a5a3 | 1379 | @REGEXLIB@ \ |
bd3bca07 | 1380 | @SNMPLIB@ \ |
a553a5a3 | 1381 | -L../lib -lmiscutil \ |
a553a5a3 | 1382 | @SQUID_CPPUNIT_LIBS@ \ |
1383 | @SQUID_CPPUNIT_LA@ \ | |
bd3bca07 | 1384 | @SSLLIB@ \ |
9ca29d23 AJ |
1385 | @XTRA_LIBS@ \ |
1386 | @KRB5LIBS@ | |
a553a5a3 | 1387 | tests_testEvent_LDFLAGS = $(LIBADD_DL) |
1388 | tests_testEvent_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \ | |
1389 | @REPL_OBJS@ \ | |
7f514ea7 | 1390 | @SQUID_CPPUNIT_LA@ |
a553a5a3 | 1391 | |
1392 | ## Tests of the EventLoop module. | |
1393 | tests_testEventLoop_SOURCES = \ | |
1394 | debug.cc \ | |
1395 | EventLoop.h \ | |
1396 | EventLoop.cc \ | |
a553a5a3 | 1397 | HttpRequest.cc \ |
1398 | HttpRequestMethod.cc \ | |
1399 | mem.cc \ | |
aa839030 | 1400 | RemovalPolicy.cc \ |
30abd221 | 1401 | String.cc \ |
a553a5a3 | 1402 | tests/testEventLoop.cc \ |
1403 | tests/testEventLoop.h \ | |
1404 | tests/testMain.cc \ | |
1405 | time.cc \ | |
1406 | access_log.cc \ | |
5f8252d2 | 1407 | BodyPipe.cc \ |
a553a5a3 | 1408 | cache_manager.cc \ |
1409 | cache_cf.cc \ | |
1b26be8f | 1410 | ProtoPort.cc \ |
1411 | ProtoPort.h \ | |
a553a5a3 | 1412 | CacheDigest.cc \ |
1413 | carp.cc \ | |
1414 | cbdata.cc \ | |
81c07a23 | 1415 | ChunkedCodingParser.cc \ |
a553a5a3 | 1416 | client_db.cc \ |
1417 | client_side.cc \ | |
1418 | client_side_reply.cc \ | |
1419 | client_side_request.cc \ | |
281422f8 | 1420 | ClientInfo.h \ |
a553a5a3 | 1421 | clientStream.cc \ |
1422 | $(squid_COMMSOURCES) \ | |
1423 | ConfigOption.cc \ | |
1424 | ConfigParser.cc \ | |
1425 | $(DELAY_POOL_SOURCE) \ | |
1426 | disk.cc \ | |
e1f7507e AJ |
1427 | dlink.h \ |
1428 | dlink.cc \ | |
a553a5a3 | 1429 | $(DNSSOURCE) \ |
a553a5a3 | 1430 | errorpage.cc \ |
a553a5a3 | 1431 | ETag.cc \ |
1432 | external_acl.cc \ | |
1433 | ExternalACLEntry.cc \ | |
1434 | fd.cc \ | |
1435 | fde.cc \ | |
1436 | forward.cc \ | |
1437 | fqdncache.cc \ | |
1438 | ftp.cc \ | |
1439 | gopher.cc \ | |
1440 | helper.cc \ | |
bbaf2685 | 1441 | hier_code.h \ |
a553a5a3 | 1442 | $(HTCPSOURCE) \ |
1443 | http.cc \ | |
1444 | HttpBody.cc \ | |
1445 | HttpHeader.cc \ | |
1446 | HttpHeaderTools.cc \ | |
1447 | HttpHdrCc.cc \ | |
1448 | HttpHdrContRange.cc \ | |
1449 | HttpHdrRange.cc \ | |
1450 | HttpHdrSc.cc \ | |
1451 | HttpHdrScTarget.cc \ | |
1452 | HttpMsg.cc \ | |
1453 | HttpReply.cc \ | |
1454 | HttpStatusLine.cc \ | |
a553a5a3 | 1455 | icp_v2.cc \ |
1456 | icp_v3.cc \ | |
b5d712b5 | 1457 | $(IPC_SOURCE) \ |
a553a5a3 | 1458 | ipcache.cc \ |
1459 | int.cc \ | |
1460 | internal.cc \ | |
1461 | list.cc \ | |
1462 | logfile.cc \ | |
1463 | multicast.cc \ | |
1464 | mem_node.cc \ | |
1465 | MemBuf.cc \ | |
1466 | MemObject.cc \ | |
1467 | mime.cc \ | |
0f9db2d6 | 1468 | mime_header.cc \ |
a553a5a3 | 1469 | neighbors.cc \ |
a553a5a3 | 1470 | Packer.cc \ |
1471 | Parsing.cc \ | |
1472 | pconn.cc \ | |
1473 | peer_digest.cc \ | |
9ca29d23 | 1474 | peer_proxy_negotiate_auth.cc \ |
a553a5a3 | 1475 | peer_select.cc \ |
f4a21650 HN |
1476 | peer_sourcehash.cc \ |
1477 | peer_userhash.cc \ | |
a553a5a3 | 1478 | redirect.cc \ |
1479 | referer.cc \ | |
1480 | refresh.cc \ | |
1481 | Server.cc \ | |
1482 | $(SNMP_SOURCE) \ | |
1483 | $(SSL_SOURCE) \ | |
1484 | stat.cc \ | |
1485 | StatHist.cc \ | |
1486 | stmem.cc \ | |
1487 | store.cc \ | |
1488 | store_client.cc \ | |
1489 | store_digest.cc \ | |
1490 | store_dir.cc \ | |
1491 | store_io.cc \ | |
1492 | store_key_md5.cc \ | |
1493 | store_log.cc \ | |
1494 | store_rebuild.cc \ | |
1495 | store_swapin.cc \ | |
1496 | store_swapmeta.cc \ | |
1497 | store_swapout.cc \ | |
1498 | StoreFileSystem.cc \ | |
1499 | StoreIOState.cc \ | |
1500 | StoreMeta.cc \ | |
1501 | StoreMetaMD5.cc \ | |
1502 | StoreMetaSTD.cc \ | |
fa10da4a | 1503 | StoreMetaSTDLFS.cc \ |
a553a5a3 | 1504 | StoreMetaUnpacker.cc \ |
1505 | StoreMetaURL.cc \ | |
1506 | StoreMetaVary.cc \ | |
1507 | StoreSwapLogData.cc \ | |
e24ee19d | 1508 | $(TEST_CALL_SOURCES) \ |
a553a5a3 | 1509 | tools.cc \ |
1510 | tunnel.cc \ | |
1511 | SwapDir.cc \ | |
1512 | url.cc \ | |
1513 | URLScheme.cc \ | |
1514 | urn.cc \ | |
1515 | useragent.cc \ | |
a553a5a3 | 1516 | wccp2.cc \ |
1517 | whois.cc \ | |
9c8434f6 | 1518 | $(WIN32_SOURCE) \ |
a553a5a3 | 1519 | wordlist.cc |
1520 | nodist_tests_testEventLoop_SOURCES = \ | |
4b981814 | 1521 | $(BUILT_SOURCES) |
a553a5a3 | 1522 | tests_testEventLoop_LDADD = \ |
7d6fa4d4 | 1523 | $(COMMON_LIBS) \ |
9b5c4a9a | 1524 | icmp/libicmp.la icmp/libicmp-core.la \ |
a553a5a3 | 1525 | @REPL_OBJS@ \ |
51a7ff6e | 1526 | ${ADAPTATION_LIBS} \ |
88bfe098 | 1527 | $(ESI_LIBS) \ |
a553a5a3 | 1528 | @REGEXLIB@ \ |
bd3bca07 | 1529 | @SNMPLIB@ \ |
a553a5a3 | 1530 | -L../lib -lmiscutil \ |
a553a5a3 | 1531 | @SQUID_CPPUNIT_LIBS@ \ |
1532 | @SQUID_CPPUNIT_LA@ \ | |
bd3bca07 | 1533 | @SSLLIB@ \ |
9ca29d23 AJ |
1534 | @XTRA_LIBS@ \ |
1535 | @KRB5LIBS@ | |
a553a5a3 | 1536 | tests_testEventLoop_LDFLAGS = $(LIBADD_DL) |
1537 | tests_testEventLoop_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \ | |
1538 | @REPL_OBJS@ \ | |
7f514ea7 | 1539 | @SQUID_CPPUNIT_LA@ |
62ee09ca | 1540 | |
f24583c1 | 1541 | tests_test_http_range_SOURCES = \ |
1542 | tests/test_http_range.cc \ | |
1543 | access_log.cc \ | |
5f8252d2 | 1544 | BodyPipe.cc \ |
f24583c1 | 1545 | cache_cf.cc \ |
1b26be8f | 1546 | ProtoPort.cc \ |
1547 | ProtoPort.h \ | |
f24583c1 | 1548 | cache_manager.cc \ |
1549 | CacheDigest.cc \ | |
1550 | carp.cc \ | |
1551 | cbdata.cc \ | |
81c07a23 | 1552 | ChunkedCodingParser.cc \ |
f24583c1 | 1553 | client_db.cc \ |
1554 | client_side.cc \ | |
1555 | client_side_reply.cc \ | |
1556 | client_side_request.cc \ | |
281422f8 | 1557 | ClientInfo.h \ |
f24583c1 | 1558 | clientStream.cc \ |
6a709184 | 1559 | $(squid_COMMSOURCES) \ |
f24583c1 | 1560 | ConfigOption.cc \ |
1561 | ConfigParser.cc \ | |
1562 | debug.cc \ | |
1563 | $(DELAY_POOL_SOURCE) \ | |
1564 | disk.cc \ | |
e1f7507e AJ |
1565 | dlink.h \ |
1566 | dlink.cc \ | |
f24583c1 | 1567 | $(DNSSOURCE) \ |
f24583c1 | 1568 | errorpage.cc \ |
f24583c1 | 1569 | ETag.cc \ |
1570 | external_acl.cc \ | |
1571 | ExternalACLEntry.cc \ | |
1572 | fd.cc \ | |
1573 | fde.cc \ | |
1574 | forward.cc \ | |
1575 | fqdncache.cc \ | |
1576 | ftp.cc \ | |
f24583c1 | 1577 | gopher.cc \ |
1578 | helper.cc \ | |
bbaf2685 | 1579 | hier_code.h \ |
f24583c1 | 1580 | $(HTCPSOURCE) \ |
1581 | http.cc \ | |
1582 | HttpBody.cc \ | |
1583 | HttpHdrCc.cc \ | |
1584 | HttpHdrContRange.cc \ | |
1585 | HttpHdrRange.cc \ | |
1586 | HttpHdrSc.cc \ | |
1587 | HttpHdrScTarget.cc \ | |
1588 | HttpHeader.cc \ | |
1589 | HttpHeaderTools.cc \ | |
1590 | HttpMsg.cc \ | |
1591 | HttpReply.cc \ | |
1592 | HttpRequest.cc \ | |
1593 | HttpRequestMethod.cc \ | |
1594 | HttpStatusLine.cc \ | |
f24583c1 | 1595 | icp_v2.cc \ |
1596 | icp_v3.cc \ | |
f24583c1 | 1597 | int.cc \ |
1598 | internal.cc \ | |
b5d712b5 | 1599 | $(IPC_SOURCE) \ |
f24583c1 | 1600 | ipcache.cc \ |
1601 | list.cc \ | |
1602 | logfile.cc \ | |
1603 | mem.cc \ | |
1604 | mem_node.cc \ | |
1605 | MemObject.cc \ | |
1606 | mime.cc \ | |
0f9db2d6 | 1607 | mime_header.cc \ |
f24583c1 | 1608 | multicast.cc \ |
1609 | neighbors.cc \ | |
f24583c1 | 1610 | Parsing.cc \ |
1611 | peer_digest.cc \ | |
9ca29d23 | 1612 | peer_proxy_negotiate_auth.cc \ |
f24583c1 | 1613 | peer_select.cc \ |
f4a21650 HN |
1614 | peer_sourcehash.cc \ |
1615 | peer_userhash.cc \ | |
f24583c1 | 1616 | pconn.cc \ |
1617 | redirect.cc \ | |
8b41d40b | 1618 | referer.cc \ |
f24583c1 | 1619 | refresh.cc \ |
aa839030 | 1620 | RemovalPolicy.cc \ |
f24583c1 | 1621 | Server.cc \ |
1622 | $(SNMP_SOURCE) \ | |
1623 | $(SSL_SOURCE) \ | |
1624 | stat.cc \ | |
1625 | StatHist.cc \ | |
1626 | stmem.cc \ | |
1627 | store.cc \ | |
1628 | store_client.cc \ | |
1629 | store_digest.cc \ | |
1630 | store_dir.cc \ | |
1631 | store_key_md5.cc \ | |
1632 | store_io.cc \ | |
1633 | store_log.cc \ | |
1634 | store_rebuild.cc \ | |
1635 | store_swapin.cc \ | |
1636 | store_swapmeta.cc \ | |
1637 | store_swapout.cc \ | |
1638 | StoreFileSystem.cc \ | |
1639 | StoreIOState.cc \ | |
1640 | StoreMeta.cc \ | |
1641 | StoreMetaMD5.cc \ | |
1642 | StoreMetaSTD.cc \ | |
47f6e231 | 1643 | StoreMetaSTDLFS.cc \ |
f24583c1 | 1644 | StoreMetaUnpacker.cc \ |
1645 | StoreMetaURL.cc \ | |
1646 | StoreMetaVary.cc \ | |
1647 | StoreSwapLogData.cc \ | |
30abd221 | 1648 | String.cc \ |
f24583c1 | 1649 | SwapDir.cc \ |
e24ee19d | 1650 | $(TEST_CALL_SOURCES) \ |
f24583c1 | 1651 | time.cc \ |
1652 | tools.cc \ | |
1653 | tunnel.cc \ | |
1654 | url.cc \ | |
1655 | URLScheme.cc \ | |
1656 | urn.cc \ | |
8b41d40b | 1657 | useragent.cc \ |
62288514 | 1658 | wccp2.cc \ |
f24583c1 | 1659 | whois.cc \ |
9c8434f6 | 1660 | $(WIN32_SOURCE) \ |
f24583c1 | 1661 | wordlist.cc \ |
1662 | Packer.cc \ | |
1663 | MemBuf.cc | |
1664 | nodist_tests_test_http_range_SOURCES = \ | |
4b981814 | 1665 | $(BUILT_SOURCES) |
f24583c1 | 1666 | tests_test_http_range_LDADD = \ |
7d6fa4d4 | 1667 | $(COMMON_LIBS) \ |
9b5c4a9a | 1668 | icmp/libicmp.la icmp/libicmp-core.la \ |
f24583c1 | 1669 | @REPL_OBJS@ \ |
51a7ff6e | 1670 | ${ADAPTATION_LIBS} \ |
88bfe098 | 1671 | $(ESI_LIBS) \ |
f24583c1 | 1672 | @REGEXLIB@ \ |
bd3bca07 | 1673 | @SNMPLIB@ \ |
f24583c1 | 1674 | -L../lib -lmiscutil \ |
8b5e106b | 1675 | @SQUID_CPPUNIT_LIBS@ \ |
bd3bca07 | 1676 | @SQUID_CPPUNIT_LA@ \ |
1677 | @SSLLIB@ \ | |
9ca29d23 AJ |
1678 | @XTRA_LIBS@ \ |
1679 | @KRB5LIBS@ | |
36dca327 | 1680 | tests_test_http_range_LDFLAGS = $(LIBADD_DL) |
f24583c1 | 1681 | tests_test_http_range_DEPENDENCIES = \ |
1682 | @SQUID_CPPUNIT_LA@ | |
1683 | ||
25b6a907 | 1684 | |
c21ad0f5 | 1685 | ## Tests of the HttpRequest module. |
1686 | tests_testHttpRequest_SOURCES = \ | |
985c86bc | 1687 | debug.cc \ |
985c86bc | 1688 | HttpRequest.cc \ |
1689 | HttpRequestMethod.cc \ | |
1690 | mem.cc \ | |
30abd221 | 1691 | String.cc \ |
0e566514 | 1692 | tests/testHttpRequest.h \ |
985c86bc | 1693 | tests/testHttpRequest.cc \ |
0e566514 | 1694 | tests/testHttpRequestMethod.h \ |
985c86bc | 1695 | tests/testHttpRequestMethod.cc \ |
1696 | tests/testMain.cc \ | |
1697 | time.cc \ | |
c21ad0f5 | 1698 | access_log.cc \ |
5f8252d2 | 1699 | BodyPipe.cc \ |
c21ad0f5 | 1700 | cache_manager.cc \ |
1701 | cache_cf.cc \ | |
1b26be8f | 1702 | ProtoPort.cc \ |
1703 | ProtoPort.h \ | |
c21ad0f5 | 1704 | CacheDigest.cc \ |
1705 | carp.cc \ | |
1706 | cbdata.cc \ | |
81c07a23 | 1707 | ChunkedCodingParser.cc \ |
c21ad0f5 | 1708 | client_db.cc \ |
1709 | client_side.cc \ | |
1710 | client_side_reply.cc \ | |
1711 | client_side_request.cc \ | |
281422f8 | 1712 | ClientInfo.h \ |
c21ad0f5 | 1713 | clientStream.cc \ |
6a709184 | 1714 | $(squid_COMMSOURCES) \ |
c21ad0f5 | 1715 | ConfigOption.cc \ |
1716 | ConfigParser.cc \ | |
1717 | $(DELAY_POOL_SOURCE) \ | |
c21ad0f5 | 1718 | disk.cc \ |
e1f7507e AJ |
1719 | dlink.h \ |
1720 | dlink.cc \ | |
c21ad0f5 | 1721 | $(DNSSOURCE) \ |
c21ad0f5 | 1722 | errorpage.cc \ |
c21ad0f5 | 1723 | ETag.cc \ |
1724 | external_acl.cc \ | |
1725 | ExternalACLEntry.cc \ | |
1726 | fd.cc \ | |
1727 | fde.cc \ | |
1728 | forward.cc \ | |
1729 | fqdncache.cc \ | |
1730 | ftp.cc \ | |
c21ad0f5 | 1731 | gopher.cc \ |
1732 | helper.cc \ | |
bbaf2685 | 1733 | hier_code.h \ |
1edbd3b6 | 1734 | $(HTCPSOURCE) \ |
c21ad0f5 | 1735 | http.cc \ |
1736 | HttpBody.cc \ | |
1737 | HttpHeader.cc \ | |
1738 | HttpHeaderTools.cc \ | |
1739 | HttpHdrCc.cc \ | |
1740 | HttpHdrContRange.cc \ | |
1741 | HttpHdrRange.cc \ | |
1742 | HttpHdrSc.cc \ | |
1743 | HttpHdrScTarget.cc \ | |
1744 | HttpMsg.cc \ | |
c21ad0f5 | 1745 | HttpReply.cc \ |
1746 | HttpStatusLine.cc \ | |
c21ad0f5 | 1747 | icp_v2.cc \ |
1748 | icp_v3.cc \ | |
b5d712b5 | 1749 | $(IPC_SOURCE) \ |
c21ad0f5 | 1750 | ipcache.cc \ |
c21ad0f5 | 1751 | int.cc \ |
1752 | internal.cc \ | |
1753 | list.cc \ | |
1754 | logfile.cc \ | |
1755 | multicast.cc \ | |
c21ad0f5 | 1756 | mem_node.cc \ |
1757 | MemBuf.cc \ | |
1758 | MemObject.cc \ | |
1759 | mime.cc \ | |
0f9db2d6 | 1760 | mime_header.cc \ |
c21ad0f5 | 1761 | neighbors.cc \ |
c21ad0f5 | 1762 | Packer.cc \ |
1763 | Parsing.cc \ | |
1764 | pconn.cc \ | |
1765 | peer_digest.cc \ | |
9ca29d23 | 1766 | peer_proxy_negotiate_auth.cc \ |
c21ad0f5 | 1767 | peer_select.cc \ |
f4a21650 HN |
1768 | peer_sourcehash.cc \ |
1769 | peer_userhash.cc \ | |
c21ad0f5 | 1770 | redirect.cc \ |
87a95d7a | 1771 | referer.cc \ |
c21ad0f5 | 1772 | refresh.cc \ |
aa839030 | 1773 | RemovalPolicy.cc \ |
c21ad0f5 | 1774 | Server.cc \ |
1775 | $(SNMP_SOURCE) \ | |
1776 | $(SSL_SOURCE) \ | |
1777 | stat.cc \ | |
1778 | StatHist.cc \ | |
1779 | stmem.cc \ | |
1780 | store.cc \ | |
1781 | store_client.cc \ | |
1782 | store_digest.cc \ | |
1783 | store_dir.cc \ | |
1784 | store_io.cc \ | |
1785 | store_key_md5.cc \ | |
1786 | store_log.cc \ | |
1787 | store_rebuild.cc \ | |
1788 | store_swapin.cc \ | |
1789 | store_swapmeta.cc \ | |
1790 | store_swapout.cc \ | |
1791 | StoreFileSystem.cc \ | |
1792 | StoreIOState.cc \ | |
1793 | StoreMeta.cc \ | |
1794 | StoreMetaMD5.cc \ | |
1795 | StoreMetaSTD.cc \ | |
47f6e231 | 1796 | StoreMetaSTDLFS.cc \ |
c21ad0f5 | 1797 | StoreMetaUnpacker.cc \ |
1798 | StoreMetaURL.cc \ | |
1799 | StoreMetaVary.cc \ | |
1800 | StoreSwapLogData.cc \ | |
e24ee19d | 1801 | $(TEST_CALL_SOURCES) \ |
c21ad0f5 | 1802 | tools.cc \ |
1803 | tunnel.cc \ | |
1804 | SwapDir.cc \ | |
1805 | url.cc \ | |
985c86bc | 1806 | URLScheme.cc \ |
c21ad0f5 | 1807 | urn.cc \ |
87a95d7a | 1808 | useragent.cc \ |
62288514 | 1809 | wccp2.cc \ |
c21ad0f5 | 1810 | whois.cc \ |
9c8434f6 | 1811 | $(WIN32_SOURCE) \ |
c21ad0f5 | 1812 | wordlist.cc |
1813 | nodist_tests_testHttpRequest_SOURCES = \ | |
4b981814 | 1814 | $(BUILT_SOURCES) |
c21ad0f5 | 1815 | tests_testHttpRequest_LDADD = \ |
7d6fa4d4 | 1816 | $(COMMON_LIBS) \ |
9b5c4a9a | 1817 | icmp/libicmp.la icmp/libicmp-core.la \ |
c21ad0f5 | 1818 | @REPL_OBJS@ \ |
51a7ff6e | 1819 | ${ADAPTATION_LIBS} \ |
88bfe098 | 1820 | $(ESI_LIBS) \ |
87a95d7a | 1821 | @REGEXLIB@ \ |
bd3bca07 | 1822 | @SNMPLIB@ \ |
c21ad0f5 | 1823 | -L../lib -lmiscutil \ |
8b5e106b | 1824 | @SQUID_CPPUNIT_LIBS@ \ |
bd3bca07 | 1825 | @SQUID_CPPUNIT_LA@ \ |
1826 | @SSLLIB@ \ | |
9ca29d23 AJ |
1827 | @XTRA_LIBS@ \ |
1828 | @KRB5LIBS@ | |
c21ad0f5 | 1829 | tests_testHttpRequest_LDFLAGS = $(LIBADD_DL) |
1830 | tests_testHttpRequest_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \ | |
1831 | @REPL_OBJS@ \ | |
7f514ea7 | 1832 | @SQUID_CPPUNIT_LA@ |
c21ad0f5 | 1833 | |
25b6a907 | 1834 | # TODO:mime.cc drags in HttpReply.cc |
b1b15292 | 1835 | # delay pools need client_side_request.cc |
985c86bc | 1836 | # store_key_md5 wants the method. |
c8f4eac4 | 1837 | STORE_TEST_SOURCES=\ |
e24ee19d | 1838 | $(TEST_CALL_SOURCES) \ |
74925dd4 | 1839 | $(DELAY_POOL_SOURCE) \ |
c8f4eac4 | 1840 | CacheDigest.cc \ |
d295d770 | 1841 | ConfigParser.cc \ |
8ff3fa2e | 1842 | EventLoop.cc \ |
25b6a907 | 1843 | HttpMsg.cc \ |
aa839030 | 1844 | RemovalPolicy.cc \ |
c8f4eac4 | 1845 | store_dir.cc \ |
1846 | store.cc \ | |
985c86bc | 1847 | HttpRequestMethod.cc \ |
c8f4eac4 | 1848 | store_key_md5.cc \ |
c8f4eac4 | 1849 | Parsing.cc \ |
1850 | ConfigOption.cc \ | |
1851 | SwapDir.cc \ | |
c8f4eac4 | 1852 | tests/stub_acl.cc tests/stub_cache_cf.cc \ |
30abd221 | 1853 | tests/stub_helper.cc cbdata.cc String.cc \ |
c8f4eac4 | 1854 | tests/stub_comm.cc \ |
b1b15292 | 1855 | tests/stub_client_side_request.cc \ |
c8f4eac4 | 1856 | tests/stub_http.cc \ |
1857 | mem_node.cc \ | |
1858 | stmem.cc \ | |
25b6a907 | 1859 | tests/stub_mime.cc \ |
281422f8 | 1860 | HttpHeaderTools.cc HttpHeader.cc mem.cc ClientInfo.h \ |
3ad63615 AR |
1861 | MemBuf.cc HttpHdrContRange.cc Packer.cc HttpHdrCc.cc HttpHdrSc.cc \ |
1862 | HttpHdrScTarget.cc url.cc \ | |
c8f4eac4 | 1863 | StatHist.cc HttpHdrRange.cc ETag.cc tests/stub_errorpage.cc \ |
d295d770 | 1864 | tests/stub_HttpRequest.cc tests/stub_access_log.cc \ |
b1b15292 | 1865 | refresh.cc \ |
1866 | tests/stub_store_client.cc \ | |
1867 | tests/stub_tools.cc \ | |
8ff3fa2e | 1868 | tests/testStoreSupport.cc \ |
1869 | tests/testStoreSupport.h \ | |
985c86bc | 1870 | time.cc \ |
1871 | URLScheme.cc \ | |
d295d770 | 1872 | wordlist.cc |
c8f4eac4 | 1873 | |
1874 | ## why so many sources? well httpHeaderTools requites ACLChecklist & friends. | |
1875 | ## first line - what we are testing. | |
b1b15292 | 1876 | tests_testStore_SOURCES= \ |
1877 | tests/stub_store_swapout.cc \ | |
c8f4eac4 | 1878 | tests/testMain.cc \ |
b1b15292 | 1879 | tests/stub_MemObject.cc \ |
1880 | tests/testStore.cc \ | |
c8f4eac4 | 1881 | tests/testStore.h \ |
0e566514 | 1882 | tests/CapturingStoreEntry.h \ |
c21ad0f5 | 1883 | tests/testStoreEntryStream.cc \ |
1884 | tests/testStoreEntryStream.h \ | |
b1b15292 | 1885 | tests/testStoreController.cc \ |
c8f4eac4 | 1886 | tests/testStoreController.h \ |
b1b15292 | 1887 | tests/testStoreHashIndex.cc \ |
c8f4eac4 | 1888 | tests/testStoreHashIndex.h \ |
1889 | tests/TestSwapDir.cc \ | |
1890 | tests/TestSwapDir.h \ | |
c8f4eac4 | 1891 | tests/stub_fd.cc \ |
1892 | tests/stub_HttpReply.cc \ | |
b707cdeb | 1893 | tests/stub_cache_manager.cc \ |
c8f4eac4 | 1894 | $(STORE_TEST_SOURCES) |
1895 | ||
95329c22 | 1896 | nodist_tests_testStore_SOURCES= \ |
4b981814 AJ |
1897 | $(TESTSOURCES) \ |
1898 | swap_log_op.cc | |
95329c22 | 1899 | |
c8f4eac4 | 1900 | tests_testStore_LDADD= \ |
7d6fa4d4 | 1901 | $(COMMON_LIBS) \ |
c8f4eac4 | 1902 | -L../lib -lmiscutil \ |
7a7976e9 | 1903 | @REGEXLIB@ \ |
8b5e106b | 1904 | @SQUID_CPPUNIT_LIBS@ \ |
f46fe759 | 1905 | @SSLLIB@ |
c8f4eac4 | 1906 | tests_testStore_LDFLAGS = $(LIBADD_DL) |
1907 | tests_testStore_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \ | |
1908 | @SQUID_CPPUNIT_LA@ | |
30abd221 | 1909 | |
281422f8 AJ |
1910 | ## string needs mem.cc. |
1911 | ## mem.cc needs ClientInfo.h | |
1912 | ## libsquid pulls in SquidConfig and children. stub them. | |
95329c22 | 1913 | tests_testString_SOURCES = \ |
281422f8 | 1914 | ClientInfo.h \ |
c21ad0f5 | 1915 | mem.cc \ |
30abd221 | 1916 | String.cc \ |
c21ad0f5 | 1917 | tests/testMain.cc \ |
1918 | tests/testString.cc \ | |
1919 | tests/testString.h \ | |
b707cdeb | 1920 | tests/stub_cache_manager.cc \ |
575cb927 | 1921 | time.cc |
95329c22 HN |
1922 | nodist_tests_testString_SOURCES = \ |
1923 | $(TESTSOURCES) | |
1924 | tests_testString_LDADD = \ | |
7d6fa4d4 | 1925 | $(COMMON_LIBS) \ |
c21ad0f5 | 1926 | -L../lib -lmiscutil \ |
1927 | @REGEXLIB@ \ | |
8b5e106b | 1928 | @SQUID_CPPUNIT_LIBS@ \ |
c21ad0f5 | 1929 | @SSLLIB@ |
1930 | tests_testString_LDFLAGS = $(LIBADD_DL) | |
1931 | tests_testString_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \ | |
1932 | @SQUID_CPPUNIT_LA@ | |
1933 | ||
d295d770 | 1934 | SWAP_TEST_SOURCES = \ |
c8f4eac4 | 1935 | tests/stub_internal.cc \ |
3fcdb6b9 AJ |
1936 | tests/stub_CommIO.cc \ |
1937 | tests/stub_store_rebuild.cc \ | |
c8f4eac4 | 1938 | fd.cc \ |
1939 | disk.cc \ | |
1940 | filemap.cc \ | |
1941 | HttpBody.cc \ | |
c8f4eac4 | 1942 | HttpReply.cc \ |
1943 | HttpStatusLine.cc \ | |
1944 | int.cc \ | |
1945 | list.cc \ | |
1946 | MemObject.cc \ | |
c8f4eac4 | 1947 | StoreSwapLogData.cc \ |
1948 | StoreIOState.cc \ | |
1949 | StoreMeta.cc \ | |
1950 | StoreMetaMD5.cc \ | |
1951 | StoreMetaSTD.cc \ | |
47f6e231 | 1952 | StoreMetaSTDLFS.cc \ |
c8f4eac4 | 1953 | StoreMetaUnpacker.cc \ |
1954 | StoreMetaURL.cc \ | |
1955 | StoreMetaVary.cc \ | |
1956 | StoreFileSystem.cc \ | |
1957 | store_io.cc \ | |
1958 | store_swapout.cc \ | |
1959 | store_swapmeta.cc \ | |
a65d4fbb | 1960 | $(UNLINKDSOURCE) \ |
e3d21ec7 | 1961 | $(WIN32_SOURCE) \ |
c8f4eac4 | 1962 | $(STORE_TEST_SOURCES) \ |
1963 | $(DISKIO_SOURCE) | |
1964 | ||
95329c22 | 1965 | SWAP_TEST_GEN_SOURCES = \ |
4b981814 | 1966 | $(TESTSOURCES) \ |
304b7b73 | 1967 | $(DISKIO_GEN_SOURCE) |
95329c22 | 1968 | |
c8f4eac4 | 1969 | SWAP_TEST_LDADD = \ |
7a7976e9 | 1970 | @REGEXLIB@ \ |
7b5b7ba8 | 1971 | $(COMMON_LIBS) \ |
c8f4eac4 | 1972 | @REPL_OBJS@ \ |
1973 | @DISK_LIBS@ \ | |
46577dd1 | 1974 | @AIOLIB@ \ |
c8f4eac4 | 1975 | -L../lib -lmiscutil \ |
3ad63615 | 1976 | acl/libapi.la \ |
610ee341 | 1977 | @SQUID_CPPUNIT_LIBS@ |
c8f4eac4 | 1978 | SWAP_TEST_DS =\ |
1979 | $(top_builddir)/lib/libmiscutil.a \ | |
c8f4eac4 | 1980 | repl_modules.o \ |
1981 | @DISK_LIBS@ \ | |
46577dd1 | 1982 | @AIOLIB@ \ |
7b5b7ba8 | 1983 | $(COMMON_LIBS) \ |
c8f4eac4 | 1984 | @REPL_OBJS@ \ |
1985 | @SQUID_CPPUNIT_LA@ | |
1986 | ||
95329c22 HN |
1987 | tests_testUfs_SOURCES = \ |
1988 | tests/testUfs.cc \ | |
c8f4eac4 | 1989 | tests/testMain.cc \ |
1990 | tests/testUfs.h \ | |
b707cdeb | 1991 | tests/stub_cache_manager.cc \ |
c8f4eac4 | 1992 | $(SWAP_TEST_SOURCES) |
95329c22 | 1993 | nodist_tests_testUfs_SOURCES = \ |
4b981814 AJ |
1994 | $(SWAP_TEST_GEN_SOURCES) \ |
1995 | swap_log_op.cc | |
95329c22 | 1996 | tests_testUfs_LDADD = \ |
f46fe759 | 1997 | $(SWAP_TEST_LDADD) \ |
3ad63615 | 1998 | $(COMMON_LIBS) \ |
f46fe759 | 1999 | @SSLLIB@ |
c8f4eac4 | 2000 | tests_testUfs_LDFLAGS = $(LIBADD_DL) |
2001 | tests_testUfs_DEPENDENCIES = \ | |
2002 | $(SWAP_TEST_DS) | |
2003 | ||
95329c22 HN |
2004 | tests_testCoss_SOURCES = \ |
2005 | tests/testCoss.cc \ | |
c8f4eac4 | 2006 | tests/testMain.cc \ |
2007 | tests/testCoss.h \ | |
b707cdeb | 2008 | tests/stub_cache_manager.cc \ |
c8f4eac4 | 2009 | $(SWAP_TEST_SOURCES) |
95329c22 HN |
2010 | nodist_tests_testCoss_SOURCES = \ |
2011 | $(SWAP_TEST_GEN_SOURCES) | |
2012 | tests_testCoss_LDADD = \ | |
9de55861 | 2013 | libsquid.la \ |
f46fe759 | 2014 | $(SWAP_TEST_LDADD) \ |
2015 | @SSLLIB@ | |
c8f4eac4 | 2016 | tests_testCoss_LDFLAGS = $(LIBADD_DL) |
2017 | tests_testCoss_DEPENDENCIES = \ | |
2018 | $(SWAP_TEST_DS) | |
2019 | ||
95329c22 HN |
2020 | tests_testNull_SOURCES = \ |
2021 | tests/testNull.cc \ | |
c8f4eac4 | 2022 | tests/testMain.cc \ |
2023 | tests/testNull.h \ | |
2024 | $(SWAP_TEST_SOURCES) | |
95329c22 HN |
2025 | nodist_tests_testNull_SOURCES = \ |
2026 | $(SWAP_TEST_GEN_SOURCES) | |
2027 | tests_testNull_LDADD = \ | |
f46fe759 | 2028 | $(SWAP_TEST_LDADD) \ |
2029 | @SSLLIB@ | |
c8f4eac4 | 2030 | tests_testNull_LDFLAGS = $(LIBADD_DL) |
2031 | tests_testNull_DEPENDENCIES = \ | |
2032 | $(SWAP_TEST_DS) | |
985c86bc | 2033 | |
2034 | ## Tests of the URL module. | |
2035 | ## TODO: Trim this down once the insanity is over. | |
2036 | tests_testURL_SOURCES = \ | |
2037 | debug.cc \ | |
2038 | url.cc \ | |
2039 | URLScheme.cc \ | |
985c86bc | 2040 | HttpRequest.cc \ |
2041 | HttpRequestMethod.cc \ | |
2042 | mem.cc \ | |
aa839030 | 2043 | RemovalPolicy.cc \ |
30abd221 | 2044 | String.cc \ |
985c86bc | 2045 | tests/testURL.cc \ |
2046 | tests/testURL.h \ | |
2047 | tests/testURLScheme.cc \ | |
2048 | tests/testURLScheme.h \ | |
2049 | tests/testMain.cc \ | |
2050 | time.cc \ | |
2051 | access_log.cc \ | |
5f8252d2 | 2052 | BodyPipe.cc \ |
985c86bc | 2053 | cache_manager.cc \ |
2054 | cache_cf.cc \ | |
1b26be8f | 2055 | ProtoPort.cc \ |
2056 | ProtoPort.h \ | |
985c86bc | 2057 | CacheDigest.cc \ |
2058 | carp.cc \ | |
2059 | cbdata.cc \ | |
81c07a23 | 2060 | ChunkedCodingParser.cc \ |
985c86bc | 2061 | client_db.cc \ |
2062 | client_side.cc \ | |
2063 | client_side_reply.cc \ | |
2064 | client_side_request.cc \ | |
281422f8 | 2065 | ClientInfo.h \ |
985c86bc | 2066 | clientStream.cc \ |
6a709184 | 2067 | $(squid_COMMSOURCES) \ |
985c86bc | 2068 | ConfigOption.cc \ |
2069 | ConfigParser.cc \ | |
2070 | $(DELAY_POOL_SOURCE) \ | |
2071 | disk.cc \ | |
e1f7507e AJ |
2072 | dlink.h \ |
2073 | dlink.cc \ | |
985c86bc | 2074 | $(DNSSOURCE) \ |
985c86bc | 2075 | errorpage.cc \ |
985c86bc | 2076 | ETag.cc \ |
2077 | external_acl.cc \ | |
2078 | ExternalACLEntry.cc \ | |
2079 | fd.cc \ | |
2080 | fde.cc \ | |
2081 | forward.cc \ | |
2082 | fqdncache.cc \ | |
2083 | ftp.cc \ | |
2084 | gopher.cc \ | |
2085 | helper.cc \ | |
bbaf2685 | 2086 | hier_code.h \ |
1edbd3b6 | 2087 | $(HTCPSOURCE) \ |
985c86bc | 2088 | http.cc \ |
2089 | HttpBody.cc \ | |
2090 | HttpHeader.cc \ | |
2091 | HttpHeaderTools.cc \ | |
2092 | HttpHdrCc.cc \ | |
2093 | HttpHdrContRange.cc \ | |
2094 | HttpHdrRange.cc \ | |
2095 | HttpHdrSc.cc \ | |
2096 | HttpHdrScTarget.cc \ | |
2097 | HttpMsg.cc \ | |
2098 | HttpReply.cc \ | |
2099 | HttpStatusLine.cc \ | |
985c86bc | 2100 | icp_v2.cc \ |
2101 | icp_v3.cc \ | |
b5d712b5 | 2102 | $(IPC_SOURCE) \ |
985c86bc | 2103 | ipcache.cc \ |
985c86bc | 2104 | int.cc \ |
2105 | internal.cc \ | |
2106 | list.cc \ | |
2107 | logfile.cc \ | |
2108 | multicast.cc \ | |
2109 | mem_node.cc \ | |
2110 | MemBuf.cc \ | |
2111 | MemObject.cc \ | |
2112 | mime.cc \ | |
0f9db2d6 | 2113 | mime_header.cc \ |
985c86bc | 2114 | neighbors.cc \ |
985c86bc | 2115 | Packer.cc \ |
2116 | Parsing.cc \ | |
2117 | pconn.cc \ | |
2118 | peer_digest.cc \ | |
9ca29d23 | 2119 | peer_proxy_negotiate_auth.cc \ |
985c86bc | 2120 | peer_select.cc \ |
f4a21650 HN |
2121 | peer_sourcehash.cc \ |
2122 | peer_userhash.cc \ | |
985c86bc | 2123 | redirect.cc \ |
2624b478 | 2124 | referer.cc \ |
985c86bc | 2125 | refresh.cc \ |
2126 | Server.cc \ | |
2127 | $(SNMP_SOURCE) \ | |
2128 | $(SSL_SOURCE) \ | |
2129 | stat.cc \ | |
2130 | StatHist.cc \ | |
2131 | stmem.cc \ | |
2132 | store.cc \ | |
2133 | store_client.cc \ | |
2134 | store_digest.cc \ | |
2135 | store_dir.cc \ | |
2136 | store_io.cc \ | |
2137 | store_key_md5.cc \ | |
2138 | store_log.cc \ | |
2139 | store_rebuild.cc \ | |
2140 | store_swapin.cc \ | |
2141 | store_swapmeta.cc \ | |
2142 | store_swapout.cc \ | |
2143 | StoreFileSystem.cc \ | |
2144 | StoreIOState.cc \ | |
2145 | StoreMeta.cc \ | |
2146 | StoreMetaMD5.cc \ | |
2147 | StoreMetaSTD.cc \ | |
47f6e231 | 2148 | StoreMetaSTDLFS.cc \ |
985c86bc | 2149 | StoreMetaUnpacker.cc \ |
2150 | StoreMetaURL.cc \ | |
2151 | StoreMetaVary.cc \ | |
2152 | StoreSwapLogData.cc \ | |
e24ee19d | 2153 | $(TEST_CALL_SOURCES) \ |
985c86bc | 2154 | tools.cc \ |
2155 | tunnel.cc \ | |
2156 | SwapDir.cc \ | |
2157 | urn.cc \ | |
2624b478 | 2158 | useragent.cc \ |
62288514 | 2159 | wccp2.cc \ |
985c86bc | 2160 | whois.cc \ |
9c8434f6 | 2161 | $(WIN32_SOURCE) \ |
985c86bc | 2162 | wordlist.cc |
2163 | nodist_tests_testURL_SOURCES = \ | |
4b981814 | 2164 | $(BUILT_SOURCES) |
985c86bc | 2165 | tests_testURL_LDADD = \ |
7d6fa4d4 | 2166 | $(COMMON_LIBS) \ |
9b5c4a9a | 2167 | icmp/libicmp.la icmp/libicmp-core.la \ |
8ec171cd | 2168 | @REGEXLIB@ \ |
985c86bc | 2169 | @REPL_OBJS@ \ |
51a7ff6e | 2170 | ${ADAPTATION_LIBS} \ |
88bfe098 | 2171 | $(ESI_LIBS) \ |
bd3bca07 | 2172 | @SNMPLIB@ \ |
985c86bc | 2173 | -L../lib -lmiscutil \ |
8b5e106b | 2174 | @SQUID_CPPUNIT_LIBS@ \ |
bd3bca07 | 2175 | @SQUID_CPPUNIT_LA@ \ |
2176 | @SSLLIB@ \ | |
9ca29d23 AJ |
2177 | @XTRA_LIBS@ \ |
2178 | @KRB5LIBS@ | |
985c86bc | 2179 | tests_testURL_LDFLAGS = $(LIBADD_DL) |
2180 | tests_testURL_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \ | |
2181 | @REPL_OBJS@ \ | |
7f514ea7 | 2182 | @SQUID_CPPUNIT_LA@ |
ee342e0b AJ |
2183 | |
2184 | ||
2185 | TESTS += testHeaders | |
2186 | ||
2187 | ## Special Universal .h dependency test script | |
2188 | ## aborts if error encountered | |
508e9b20 AJ |
2189 | testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h |
2190 | $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(srcdir)" || exit 1 | |
2191 | $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(srcdir)/DiskIO" || exit 1 | |
2192 | $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(srcdir)/DiskIO/AIO" || exit 1 | |
2193 | $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(srcdir)/DiskIO/Blocking" || exit 1 | |
2194 | $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(srcdir)/DiskIO/DiskDaemon" || exit 1 | |
2195 | $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(srcdir)/DiskIO/DiskThreads" || exit 1 | |
ee342e0b AJ |
2196 | ## src/repl/ has no .h files and its own makefile. |
2197 | ||
2198 | CLEANFILES += testHeaders | |
2199 | .PHONY: testHeaders | |
2200 |