TESTS=$(check_PROGRAMS)
check_PROGRAMS=
-SUBDIRS = fs repl auth icmp ip
+SUBDIRS = base fs repl auth icmp ip
if USE_ADAPTATION
SUBDIRS += adaptation
noinst_LIBRARIES = @DISK_LIBS@
noinst_LTLIBRARIES = libsquid.la libauth.la
+# libraries used by many targets
+COMMON_LIBS = \
+ libsquid.la \
+ libauth.la \
+ base/libbase.la \
+ ip/libip.la
+
INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/src \
@DISK_PROGRAMS@ \
$(UNLINKD)
-cf_gen_SOURCES = \
- cf_gen.cc \
- defines.h \
- debug.cc \
- time.cc
-
-nodist_cf_gen_SOURCES = globals.cc
+cf_gen_SOURCES = cf_gen.cc
nodist_cf_gen_HEADER = cf_gen_defines.h
cf_gen_LDADD= \
- libsquid.la \
- libauth.la \
- ip/libip.la \
+ ../compat/libcompat.la \
-L../lib -lmiscutil \
@XTRA_LIBS@ \
@EPOLL_LIBS@ \
CommCalls.h \
DescriptorSet.cc \
DescriptorSet.h \
- ICAP/AsyncJob.cc \
- ICAP/AsyncJob.h \
SquidConfig.cc \
TextException.cc \
TextException.h
string_arrays.c
squid_LDADD = \
- libsquid.la \
- libauth.la \
+ $(COMMON_LIBS) \
icmp/libicmp.la icmp/libicmp-core.la \
- ip/libip.la \
-L../lib \
@XTRA_OBJS@ \
@DISK_LINKOBJS@ \
wordlist.cc \
$(WIN32_SOURCE)
ufsdump_LDADD = \
- libsquid.la \
- libauth.la \
+ $(COMMON_LIBS) \
icmp/libicmp.la icmp/libicmp-core.la \
- ip/libip.la \
@XTRA_OBJS@ \
@REPL_OBJS@ \
@STORE_OBJS@ \
data_DATA = \
mib.txt
-LDADD = libsquid.la libauth.la ip/libip.la -L../lib -lmiscutil @XTRA_LIBS@ @EPOLL_LIBS@ @MINGW_LIBS@
+LDADD = $(COMMON_LIBS) -L../lib -lmiscutil @XTRA_LIBS@ @EPOLL_LIBS@ @MINGW_LIBS@
EXTRA_DIST = \
cf_gen_defines \
$(TESTSOURCES)
tests_testAuth_LDADD= \
- libsquid.la \
- libauth.la \
- ip/libip.la \
+ $(COMMON_LIBS) \
@AUTH_LINKOBJS@ @AUTH_OBJS@ \
-L../lib -lmiscutil \
@REGEXLIB@ \
nodist_tests_testACLMaxUserIP_SOURCES= \
$(TESTSOURCES)
tests_testACLMaxUserIP_LDADD= \
- libsquid.la \
- libauth.la \
- ip/libip.la \
+ $(COMMON_LIBS) \
-L../lib -lmiscutil \
@REGEXLIB@ \
@SQUID_CPPUNIT_LIBS@ \
repl_modules.cc \
string_arrays.c
tests_testCacheManager_LDADD = \
- libsquid.la \
- libauth.la \
+ $(COMMON_LIBS) \
icmp/libicmp.la icmp/libicmp-core.la \
- ip/libip.la \
@REPL_OBJS@ \
${ADAPTATION_LIBS} \
@REGEXLIB@ \
nodist_tests_testDiskIO_SOURCES= \
$(SWAP_TEST_GEN_SOURCES)
tests_testDiskIO_LDADD = \
- ip/libip.la \
- libsquid.la \
+ $(COMMON_LIBS) \
@DISK_LIBS@ \
$(SWAP_TEST_LDADD) \
SquidConfig.o
repl_modules.cc \
string_arrays.c
tests_testEvent_LDADD = \
- libsquid.la \
- libauth.la \
+ $(COMMON_LIBS) \
icmp/libicmp.la icmp/libicmp-core.la \
- ip/libip.la \
@REPL_OBJS@ \
${ADAPTATION_LIBS} \
@REGEXLIB@ \
repl_modules.cc \
string_arrays.c
tests_testEventLoop_LDADD = \
- libsquid.la \
- libauth.la \
+ $(COMMON_LIBS) \
icmp/libicmp.la icmp/libicmp-core.la \
- ip/libip.la \
@REPL_OBJS@ \
${ADAPTATION_LIBS} \
@REGEXLIB@ \
repl_modules.cc \
string_arrays.c
tests_test_http_range_LDADD = \
- libsquid.la \
- libauth.la \
+ $(COMMON_LIBS) \
icmp/libicmp.la icmp/libicmp-core.la \
- ip/libip.la \
@REPL_OBJS@ \
@STORE_OBJS@ \
${ADAPTATION_LIBS} \
repl_modules.cc \
string_arrays.c
tests_testHttpRequest_LDADD = \
- libsquid.la \
- libauth.la \
+ $(COMMON_LIBS) \
icmp/libicmp.la icmp/libicmp-core.la \
- ip/libip.la \
@REPL_OBJS@ \
${ADAPTATION_LIBS} \
@REGEXLIB@ \
$(STORE_TEST_GEN_SOURCES)
tests_testStore_LDADD= \
- libsquid.la \
- libauth.la \
- ip/libip.la \
+ $(COMMON_LIBS) \
-L../lib -lmiscutil \
@REGEXLIB@ \
@SQUID_CPPUNIT_LIBS@ \
nodist_tests_testString_SOURCES = \
$(TESTSOURCES)
tests_testString_LDADD = \
- libsquid.la \
- ip/libip.la \
+ $(COMMON_LIBS) \
-L../lib -lmiscutil \
@REGEXLIB@ \
@SQUID_CPPUNIT_LIBS@ \
$(DISKIO_GEN_SOURCE)
SWAP_TEST_LDADD = \
- libauth.la \
@REGEXLIB@ \
@STORE_LINKOBJS@ \
@STORE_OBJS@ \
nodist_tests_testUfs_SOURCES = \
$(SWAP_TEST_GEN_SOURCES)
tests_testUfs_LDADD = \
- libsquid.la \
- ip/libip.la \
+ $(COMMON_LIBS) \
$(SWAP_TEST_LDADD) \
@SSLLIB@
tests_testUfs_LDFLAGS = $(LIBADD_DL)
repl_modules.cc \
string_arrays.c
tests_testURL_LDADD = \
- libsquid.la \
- libauth.la \
+ $(COMMON_LIBS) \
icmp/libicmp.la icmp/libicmp-core.la \
- ip/libip.la \
@REGEXLIB@ \
@REPL_OBJS@ \
${ADAPTATION_LIBS} \