TESTS=$(check_PROGRAMS)
check_PROGRAMS=
-SUBDIRS = fs repl auth icmp
+SUBDIRS = fs repl auth icmp ip
if USE_ADAPTATION
SUBDIRS += adaptation
cf_gen.cc \
defines.h \
debug.cc \
- stubQosConfig.cc \
+ ip/stubQosConfig.cc \
time.cc
nodist_cf_gen_SOURCES = globals.cc
PeerSelectState.h \
PingData.h \
protos.h \
- QosConfig.cc \
- QosConfig.h \
redirect.cc \
referer.cc \
refresh.cc \
libsquid.la \
libauth.la \
icmp/libicmp.la icmp/libicmp-core.la \
+ ip/libip.la \
-L../lib \
@XTRA_OBJS@ \
@DISK_LINKOBJS@ \
peer_sourcehash.cc \
peer_userhash.cc \
protos.h \
- stubQosConfig.cc \
+ ip/stubQosConfig.cc \
redirect.cc \
referer.cc \
refresh.cc \
tests/stub_store.cc HttpHeaderTools.cc HttpHeader.cc acl.cc mem.cc \
MemBuf.cc HttpHdrContRange.cc Packer.cc ACLChecklist.cc HttpHdrCc.cc HttpHdrSc.cc \
HttpHdrScTarget.cc url.cc ACLProxyAuth.cc ACLRegexData.cc ACLUserData.cc \
- stubQosConfig.cc \
+ ip/stubQosConfig.cc \
StatHist.cc HttpHdrRange.cc ETag.cc tests/stub_errorpage.cc \
tests/stub_HttpRequest.cc tests/stub_DelayId.cc \
tests/stub_MemObject.cc mem_node.cc \
mem_node.cc \
Packer.cc \
Parsing.cc \
- stubQosConfig.cc \
+ ip/stubQosConfig.cc \
StatHist.cc \
stmem.cc \
String.cc \
peer_select.cc \
peer_sourcehash.cc \
peer_userhash.cc \
- stubQosConfig.cc \
+ ip/stubQosConfig.cc \
redirect.cc \
referer.cc \
refresh.cc \
tests/testDiskIO.h \
tests/testMain.cc \
tests/stub_cache_manager.cc \
- stubQosConfig.cc
+ ip/stubQosConfig.cc
nodist_tests_testDiskIO_SOURCES= \
$(SWAP_TEST_GEN_SOURCES)
tests_testDiskIO_LDADD = \
peer_select.cc \
peer_sourcehash.cc \
peer_userhash.cc \
- stubQosConfig.cc \
+ ip/stubQosConfig.cc \
redirect.cc \
referer.cc \
refresh.cc \
peer_select.cc \
peer_sourcehash.cc \
peer_userhash.cc \
- stubQosConfig.cc \
+ ip/stubQosConfig.cc \
redirect.cc \
referer.cc \
refresh.cc \
peer_sourcehash.cc \
peer_userhash.cc \
pconn.cc \
- stubQosConfig.cc \
+ ip/stubQosConfig.cc \
redirect.cc \
referer.cc \
refresh.cc \
peer_select.cc \
peer_sourcehash.cc \
peer_userhash.cc \
- stubQosConfig.cc \
+ ip/stubQosConfig.cc \
redirect.cc \
referer.cc \
refresh.cc \
HttpHdrScTarget.cc url.cc ACLProxyAuth.cc ACLRegexData.cc ACLUserData.cc \
StatHist.cc HttpHdrRange.cc ETag.cc tests/stub_errorpage.cc \
tests/stub_HttpRequest.cc tests/stub_access_log.cc \
- stubQosConfig.cc \
+ ip/stubQosConfig.cc \
refresh.cc \
tests/stub_store_client.cc \
tests/stub_tools.cc \
# libsquid pulls in SquidConfig and children. stub them.
tests_testString_SOURCES = \
mem.cc \
- stubQosConfig.cc \
+ ip/stubQosConfig.cc \
String.cc \
tests/testMain.cc \
tests/testString.cc \
peer_select.cc \
peer_sourcehash.cc \
peer_userhash.cc \
- stubQosConfig.cc \
+ ip/stubQosConfig.cc \
redirect.cc \
referer.cc \
refresh.cc \
--- /dev/null
+#
+# Makefile for the Squid IP layer API
+#
+
+# Housekeeping, shared by all Squid Makefiles.
+# TODO: make this set by configure?
+AM_CFLAGS = @SQUID_CFLAGS@
+AM_CXXFLAGS = @SQUID_CXXFLAGS@
+DEFS = @DEFS@
+CLEANFILES =
+
+INCLUDES = -I$(top_srcdir)/src @SQUID_CPPUNIT_INC@ -I$(top_srcdir)/include -I$(top_builddir)/lib
+$(OBJS): $(top_srcdir)/include/version.h $(top_srcdir)/include/autoconf.h
+
+
+# IP Specific Configurations
+
+#EXTRA_PROGRAMS = \
+# testIcmp
+
+noinst_LTLIBRARIES = libip.la
+
+libip_la_SOURCES = \
+ QosConfig.h \
+ QosConfig.cc
+
+
+check_PROGRAMS= testHeaders
+TESTS= $(check_PROGRAMS)
+
+## Special Universal .h dependency test script
+## aborts if error encountered
+testHeaders: $(top_srcdir)/src/icmp/*.h
+ $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(top_srcdir)/src/icmp/" || exit 1
+
+## No such file...
+testHeaders.c:
+ touch testHeaders.c
+CLEANFILES += testHeaders.c