-#
-# Makefile for the Squid IP layer API
-#
+## Copyright (C) 1996-2020 The Squid Software Foundation and contributors
+##
+## Squid software is distributed under GPLv2+ license and includes
+## contributions from numerous individuals and organizations.
+## Please see the COPYING and CONTRIBUTORS files for details.
+##
-# 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) \
- -I$(top_srcdir)/include \
- -I$(top_builddir)/lib \
- -I$(top_srcdir)/src \
- @SQUID_CPPUNIT_INC@
-
-$(OBJS): $(top_srcdir)/include/version.h $(top_srcdir)/include/autoconf.h
-
-
-# IP Specific Configurations
+include $(top_srcdir)/src/Common.am
+include $(top_srcdir)/src/TestHeaders.am
noinst_LTLIBRARIES = libip.la
libip_la_SOURCES = \
- IpAddress.h \
- IpAddress.cc \
- IpIntercept.h \
- IpIntercept.cc \
+ Address.cc \
+ Address.h \
+ Intercept.cc \
+ Intercept.h \
+ NfMarkConfig.cc \
+ NfMarkConfig.h \
+ QosConfig.cc \
QosConfig.h \
- QosConfig.cc
-
-
-check_PROGRAMS= testHeaders testIpAddress
-TESTS= $(check_PROGRAMS)
-
-## Special Universal .h dependency test script
-## aborts if error encountered
-testHeaders: $(top_srcdir)/src/ip/*.h
- $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(top_srcdir)/src/ip/" || exit 1
-
-## No such file...
-testHeaders.c:
- touch testHeaders.c
-CLEANFILES += testHeaders.c
-
-
-testIpAddress_SOURCES= \
- testIpAddress.cc \
- testIpAddress.h
-nodist_testIpAddress_SOURCES= \
- ../tests/testMain.cc
-testIpAddress_LDADD= \
- $(top_builddir)/compat/libcompat.la \
- libip.la \
- -L$(top_builddir)/lib -lmiscutil \
- @SQUID_CPPUNIT_LA@ \
- @SQUID_CPPUNIT_LIBS@
-testIpAddress_LDFLAGS= $(LIBADD_DL)
+ forward.h \
+ tools.cc \
+ tools.h