#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.145 2006/05/11 19:21:12 serassio Exp $
+# $Id: Makefile.am,v 1.146 2006/05/21 14:35:11 robertc Exp $
#
# Uncomment and customize the following to suit your needs:
#
EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a ICAP/libicap.a
noinst_LIBRARIES = @DISK_LIBS@ @ICAP_LIBS@
+noinst_LTLIBRARIES = libsquid.la libauth.la
INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/lib/libTrie/include
INCLUDES += @SQUID_CPPUNIT_INC@
ACLUserData.cc \
ACLUserData.h
+
+# common library for all the binaries and tests. This is kindof a catch all
+# and smaller libraries split from this are encouraged. Using lt convenience
+# libraries, dependencies should not be a problem either.
+libsquid_la_SOURCES = \
+ comm.cc \
+ comm.h \
+ IPInterception.cc \
+ IPInterception.h
+
+# authentication framework
+libauth_la_SOURCES = \
+ AuthConfig.cc \
+ AuthConfig.h \
+ AuthScheme.cc \
+ AuthScheme.h \
+ AuthUser.cc \
+ AuthUserRequest.cc
+
squid_SOURCES = \
access_log.cc \
AccessLogEntry.h \
asn.cc \
authenticate.cc \
authenticate.h \
- AuthConfig.cc \
- AuthConfig.h \
- AuthScheme.cc \
- AuthScheme.h \
- AuthUser.cc \
- AuthUserRequest.cc \
cache_cf.cc \
CacheDigest.cc \
cache_manager.cc \
ClientRequestContext.h \
clientStream.cc \
clientStream.h \
- comm.cc \
- comm.h \
CommIO.h \
comm_select.cc \
comm_poll.cc \
internal.cc \
ipc.cc \
ipcache.cc \
- IPInterception.cc \
- IPInterception.h \
$(LEAKFINDERSOURCE) \
list.cc \
logfile.cc \
string_arrays.c
squid_LDADD = \
+ libsquid.la \
+ libauth.la \
-L../lib \
@XTRA_OBJS@ \
@DISK_LINKOBJS@ \
## ACLChecklist.cc wants ACLProxyAuth.cc directly
## ACLProxyAuth.cc wants ACLUserData
## ACLProxyAuth.cc wants ACLRegexData
-## cache_cf.cc wants AuthConfig
+## cache_cf.cc wants libauth.la
## cache_cf.cc wants Swapdir
## client_side wants client_db
## client_db wants SNMP_SOURCE
ACLRegexData.cc \
ACLStringData.cc \
authenticate.cc \
- AuthUser.cc \
- AuthUserRequest.cc \
- AuthScheme.cc \
- AuthConfig.cc \
cache_cf.cc \
cache_manager.cc \
CacheDigest.cc \
client_side_request.h \
clientStream.cc \
clientStream.h \
- comm.cc \
- comm.h \
CommIO.h \
comm_select.cc \
comm_poll.cc \
internal.cc \
ipc.cc \
ipcache.cc \
- IPInterception.cc \
- IPInterception.h \
$(LEAKFINDERSOURCE) \
list.cc \
logfile.cc \
wordlist.cc \
$(WIN32_SOURCE)
ufsdump_LDADD = \
+ libsquid.la \
+ libauth.la \
-L../lib \
@XTRA_OBJS@ \
@REPL_OBJS@ \
data_DATA = \
mib.txt
-LDADD = -L../lib -lmiscutil @XTRA_LIBS@ @EPOLL_LIBS@ @MINGW_LIBS@
+LDADD = libsquid.la libauth.la -L../lib -lmiscutil @XTRA_LIBS@ @EPOLL_LIBS@ @MINGW_LIBS@
EXTRA_DIST = \
cf_gen_defines \
tests/testACLMaxUserIP \
tests/testBoilerplate \
tests/testHeaders \
+ tests/test_http_range \
tests/testHttpRequest \
tests/testStore \
tests/testString \
@STORE_TESTS@
tests_testAuth_SOURCES= tests/testAuth.cc tests/testMain.cc tests/testAuth.h $(TESTSOURCES) \
- AuthScheme.cc authenticate.cc AuthUser.cc AuthUserRequest.cc AuthConfig.cc \
+ authenticate.cc \
ConfigParser.cc \
tests/stub_acl.cc tests/stub_cache_cf.cc \
tests/stub_helper.cc cbdata.cc String.cc tests/stub_cache_manager.cc \
## MemBuf.cc StatHist.cc logfile.cc
tests_testAuth_LDADD= \
+ libsquid.la \
+ libauth.la \
@AUTH_LINKOBJS@ @AUTH_OBJS@ \
-L../lib -lmiscutil \
@REGEXLIB@ \
## MemBuf needs mem, MemBuf needs event,
## event needs cbdata.
## ACLMaxUserUP needs authenticate.cc
-## authenticate.cc needs AuthUser, AuthScheme, AuthUserRequest, AuthConfig
+## authenticate.cc needs libauth.la
## ACLMaxUserIP needs ACLChecklist
## AuthUser request needs HttpHeader, which brings in
## ETag.cc \
ACLRegexData.cc \
ACLUserData.cc \
authenticate.cc \
- AuthConfig.cc \
- AuthUser.cc \
- AuthUserRequest.cc \
- AuthScheme.cc \
cbdata.cc \
ConfigParser.cc \
event.cc \
wordlist.cc \
$(TESTSOURCES)
tests_testACLMaxUserIP_LDADD= \
+ libsquid.la \
+ libauth.la \
-L../lib -lmiscutil \
@REGEXLIB@ \
@SQUID_CPPUNIT_LA@ \
tests_testHeaders_DEPENDENCIES = \
@SQUID_CPPUNIT_LA@
+tests_test_http_range_SOURCES = \
+ tests/test_http_range.cc \
+ access_log.cc \
+ acl.cc \
+ acl_noncore.cc \
+ ACLChecklist.cc \
+ ACLProxyAuth.cc \
+ ACLStringData.cc \
+ ACLRegexData.cc \
+ ACLUserData.cc \
+ authenticate.cc \
+ BodyReader.cc \
+ cache_cf.cc \
+ cache_manager.cc \
+ CacheDigest.cc \
+ carp.cc \
+ cbdata.cc \
+ client_db.cc \
+ client_side.cc \
+ client_side_reply.cc \
+ client_side_request.cc \
+ clientStream.cc \
+ comm_select.cc \
+ comm_poll.cc \
+ comm_epoll.cc \
+ comm_kqueue.cc \
+ ConfigOption.cc \
+ ConfigParser.cc \
+ debug.cc \
+ $(DELAY_POOL_SOURCE) \
+ disk.cc \
+ $(DNSSOURCE) \
+ event.cc \
+ errorpage.cc \
+ $(ESI_SOURCE) \
+ ETag.cc \
+ external_acl.cc \
+ ExternalACLEntry.cc \
+ fd.cc \
+ fde.cc \
+ forward.cc \
+ fqdncache.cc \
+ ftp.cc \
+ globals.cc \
+ gopher.cc \
+ helper.cc \
+ $(HTCPSOURCE) \
+ http.cc \
+ HttpBody.cc \
+ HttpHdrCc.cc \
+ HttpHdrContRange.cc \
+ HttpHdrRange.cc \
+ HttpHdrSc.cc \
+ HttpHdrScTarget.cc \
+ HttpHeader.cc \
+ HttpHeaderTools.cc \
+ HttpMsg.cc \
+ HttpReply.cc \
+ HttpRequest.cc \
+ HttpRequestMethod.cc \
+ HttpStatusLine.cc \
+ icmp.cc \
+ icp_v2.cc \
+ icp_v3.cc \
+ $(IDENT_SOURCE) \
+ int.cc \
+ internal.cc \
+ ipc.cc \
+ ipcache.cc \
+ list.cc \
+ logfile.cc \
+ mem.cc \
+ mem_node.cc \
+ MemObject.cc \
+ mime.cc \
+ multicast.cc \
+ neighbors.cc \
+ net_db.cc \
+ Parsing.cc \
+ peer_digest.cc \
+ peer_select.cc \
+ pconn.cc \
+ redirect.cc \
+ refresh.cc \
+ Server.cc \
+ $(SNMP_SOURCE) \
+ $(SSL_SOURCE) \
+ stat.cc \
+ StatHist.cc \
+ stmem.cc \
+ store.cc \
+ store_client.cc \
+ store_digest.cc \
+ store_dir.cc \
+ store_key_md5.cc \
+ store_io.cc \
+ store_log.cc \
+ store_rebuild.cc \
+ store_swapin.cc \
+ store_swapmeta.cc \
+ store_swapout.cc \
+ StoreFileSystem.cc \
+ StoreIOState.cc \
+ StoreMeta.cc \
+ StoreMetaMD5.cc \
+ StoreMetaSTD.cc \
+ StoreMetaUnpacker.cc \
+ StoreMetaURL.cc \
+ StoreMetaVary.cc \
+ StoreSwapLogData.cc \
+ String.cc \
+ SwapDir.cc \
+ time.cc \
+ tools.cc \
+ tunnel.cc \
+ url.cc \
+ URLScheme.cc \
+ urn.cc \
+ wais.cc \
+ whois.cc \
+ wordlist.cc \
+ Packer.cc \
+ MemBuf.cc
+nodist_tests_test_http_range_SOURCES = \
+ repl_modules.cc \
+ string_arrays.c
+tests_test_http_range_LDADD = \
+ libsquid.la \
+ libauth.la \
+ @REPL_OBJS@ \
+ @STORE_OBJS@ \
+ @ICAP_LIBS@ \
+ @REGEXLIB@ \
+ @SSLLIB@ \
+ -L../lib -lmiscutil \
+ @XTRA_LIBS@ \
+ @SQUID_CPPUNIT_LA@ \
+ @SNMPLIB@
+tests_test_http_range_DEPENDENCIES = \
+ @SQUID_CPPUNIT_LA@
+
## Tests of the HttpRequest module.
tests_testHttpRequest_SOURCES = \
ACLStringData.cc \
ACLRegexData.cc \
ACLUserData.cc \
- AuthConfig.cc \
authenticate.cc \
- AuthUser.cc \
- AuthUserRequest.cc \
- AuthScheme.cc \
BodyReader.cc \
cache_manager.cc \
cache_cf.cc \
client_side_reply.cc \
client_side_request.cc \
clientStream.cc \
- comm.cc \
comm_select.cc \
comm_poll.cc \
comm_epoll.cc \
$(IDENT_SOURCE) \
ipc.cc \
ipcache.cc \
- IPInterception.cc \
int.cc \
internal.cc \
list.cc \
repl_modules.cc \
string_arrays.c
tests_testHttpRequest_LDADD = \
+ libsquid.la \
+ libauth.la \
@REPL_OBJS@ \
@ICAP_LIBS@ \
@REGEXLIB@ \
Parsing.cc \
ConfigOption.cc \
SwapDir.cc \
- AuthScheme.cc authenticate.cc AuthUser.cc AuthUserRequest.cc AuthConfig.cc \
+ authenticate.cc \
tests/stub_acl.cc tests/stub_cache_cf.cc \
tests/stub_helper.cc cbdata.cc String.cc tests/stub_cache_manager.cc \
tests/stub_comm.cc \
$(STORE_TEST_SOURCES)
tests_testStore_LDADD= \
+ libsquid.la \
+ libauth.la \
-L../lib -lmiscutil \
@REGEXLIB@ \
@SQUID_CPPUNIT_LA@ \
$(DISKIO_SOURCE)
SWAP_TEST_LDADD = \
+ libsquid.la \
+ libauth.la \
DiskIO/Blocking/BlockingDiskIOModule.o \
repl/lru/store_repl_lru.o \
@REGEXLIB@ \
ACLStringData.cc \
ACLRegexData.cc \
ACLUserData.cc \
- AuthConfig.cc \
authenticate.cc \
- AuthUser.cc \
- AuthUserRequest.cc \
- AuthScheme.cc \
BodyReader.cc \
cache_manager.cc \
cache_cf.cc \
client_side_reply.cc \
client_side_request.cc \
clientStream.cc \
- comm.cc \
comm_select.cc \
comm_poll.cc \
comm_epoll.cc \
$(IDENT_SOURCE) \
ipc.cc \
ipcache.cc \
- IPInterception.cc \
int.cc \
internal.cc \
list.cc \
repl_modules.cc \
string_arrays.c
tests_testURL_LDADD = \
+ libsquid.la \
+ libauth.la \
@REPL_OBJS@ \
@ICAP_LIBS@ \
@SSLLIB@ \
/*
- * $Id: http_range_test.cc,v 1.11 2003/09/22 02:43:11 robertc Exp $
+ * $Id: test_http_range.cc,v 1.1 2006/05/21 14:35:11 robertc Exp $
*
* DEBUG: section 64 HTTP Range Header
* AUTHOR: Alex Rousskov
#include "ACLChecklist.h"
/* Stub routines */
-SQUIDCEXTERN void
-cachemgrRegister(const char *, const char *, OBJH *, int, int)
+void
+shut_down(int)
{}
SQUIDCEXTERN void httpHeaderPutStr(HttpHeader * hdr, http_hdr_type type, const char *str)
fatal ("dummy function\n");
}
-#if STDC_HEADERS
-SQUIDCEXTERN void
-storeAppendPrintf(StoreEntry *, const char *,...)
-#else
-SQUIDCEXTERN void storeAppendPrintf()
-#endif
-{
- fatal ("dummy function\n");
-}
-
-extern
-void eventAdd(const char *name, EVH * func, void *arg, double when, int, bool)
-{
- fatal ("dummy function\n");
-}
-
-SQUIDCEXTERN void
-storeBuffer(StoreEntry * e)
-{
- fatal ("dummy function\n");
-}
-
-SQUIDCEXTERN void
-storeBufferFlush(StoreEntry * e)
-{
- fatal ("dummy function\n");
-}
-
-SQUIDCEXTERN void storeAppend(StoreEntry *, const char *, int)
-{
- fatal ("dummy function\n");
-}
-
-SQUIDCEXTERN void storeAppendVPrintf(StoreEntry *, const char *, va_list ap)
-{
- fatal ("dummy function\n");
-}
-
-SQUIDCEXTERN void httpHeaderDelAt(HttpHeader * hdr, HttpHeaderPos pos)
-{
- fatal ("dummy function\n");
-}
-
SQUIDCEXTERN HttpHeaderEntry *httpHeaderGetEntry(const HttpHeader * hdr, HttpHeaderPos * pos)
{
fatal ("dummy function\n");
return NULL;
}
-int
-ACLChecklist::fastCheck()
-{
- fatal ("dummy function\n");
- return 0;
-}
-
-void
-ACLChecklist::operator delete (void *address)
-{
- safe_free( address);
-}
-
-ACLChecklist::~ACLChecklist(){}
-
-SQUIDCEXTERN ACLChecklist *aclChecklistCreate(const acl_access *,
- HttpRequest *,
- const char *ident)
-{
- fatal ("dummy function\n");
- return NULL;
-}
-
extern String httpHeaderGetList(const HttpHeader * hdr, http_hdr_type id)
{
fatal ("dummy function\n");
return 0;
}
-SQUIDCEXTERN void httpHdrContRangeDestroy(HttpHdrContRange * crange)
-{
- fatal ("dummy function\n");
-}
-
-SQUIDCEXTERN void httpHdrContRangeSet(HttpHdrContRange *, HttpHdrRangeSpec, ssize_t)
-{
- fatal ("dummy function\n");
-}
-
SQUIDCEXTERN void httpHeaderPutContRange(HttpHeader * hdr, const HttpHdrContRange * cr)
{
fatal ("dummy function\n");
}
-SQUIDCEXTERN HttpHdrContRange *httpHdrContRangeCreate(void)
-{
- fatal ("dummy function\n");
- return NULL;
-}
-
void
testRangeParser(char const *rangestring)
{
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.18 2006/05/08 23:38:36 robertc Exp $
+# $Id: Makefile.am,v 1.19 2006/05/21 14:35:11 robertc Exp $
#
AUTOMAKE_OPTIONS = subdir-objects
MemPoolTest\
mem_node_test\
mem_hdr_test\
- http_range_test \
$(ESI_TESTS)
## Sort by alpha - any build failures are significant.
check_PROGRAMS= debug \
$(ESI_TESTS) \
- http_range_test \
MemPoolTest\
mem_node_test\
mem_hdr_test \
MemPoolTest_SOURCES = MemPoolTest.cc
refcount_SOURCES = refcount.cc
-http_range_test_SOURCES = http_range_test.cc $(DEBUG_SOURCE)
-http_range_test_LDADD = $(top_builddir)/src/HttpHdrRange.o \
- $(top_builddir)/src/HttpHeaderTools.o \
- $(top_builddir)/src/MemBuf.o \
- $(top_builddir)/src/Packer.o \
- $(top_builddir)/src/String.o \
- $(top_builddir)/src/mem.o \
- $(LDADD)
-
splay_SOURCES = splay.cc
StackTest_SOURCES = StackTest.cc $(DEBUG_SOURCE)