1 ## Copyright (C) 1996-2015 The Squid Software Foundation and contributors
3 ## Squid software is distributed under GPLv2+ license and includes
4 ## contributions from numerous individuals and organizations.
5 ## Please see the COPYING and CONTRIBUTORS files for details.
8 include $(top_srcdir)/src/Common.am
9 include $(top_srcdir)/src/TestHeaders.am
11 # TODO: get rid of this when config filename is no longer a global constant.
12 # its only here so the testIcmp will link .
13 DEFS += -DDEFAULT_CONFIG_FILE=NULL
16 # ICMP Specific Configurations
28 libexec_PROGRAMS = $(PINGER)
30 noinst_LTLIBRARIES = libicmp-core.la libicmp.la
33 $(top_srcdir)/src/base/CharacterSet.h \
34 $(top_srcdir)/src/SBuf.h \
35 $(top_srcdir)/src/SBuf.cc \
36 $(top_srcdir)/src/MemBlob.h \
37 $(top_srcdir)/src/MemBlob.cc \
38 $(top_srcdir)/src/OutOfBoundsException.h \
39 $(top_srcdir)/src/SBufExceptions.h \
40 $(top_srcdir)/src/SBufExceptions.cc \
41 $(top_srcdir)/src/String.cc \
42 $(top_srcdir)/src/SquidString.h \
43 $(top_srcdir)/src/base/TextException.h \
44 $(top_srcdir)/src/base/TextException.cc
46 # ICMP API definition ...
47 libicmp_core_la_SOURCES = \
51 # Squid Internal ICMP helper interface
52 libicmp_la_SOURCES = \
70 # depends on these but install/dist is done elsewhere.
71 # TODO: remove when these are cleaned up in their own way.
72 nodist_pinger_SOURCES = \
73 $(top_srcdir)/src/debug.cc \
74 $(top_builddir)/src/globals.cc \
75 $(top_srcdir)/src/time.cc \
76 $(top_srcdir)/src/SquidConfig.cc \
77 $(top_srcdir)/src/SquidNew.cc \
78 $(top_srcdir)/src/tests/stub_HelperChildConfig.cc
80 pinger_LDFLAGS = $(LIBADD_DL)
83 $(top_builddir)/src/ip/libip.la \
84 $(top_builddir)/src/base/libbase.la \
90 ## @f=$(PINGER_EXE); \
91 ## if test -f $(libexecdir)/$$f; then \
92 ## echo $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
93 ## $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
95 ## echo $(INSTALL_SUID) $$f $(libexecdir); \
96 ## $(INSTALL_SUID) $$f $(libexecdir) || exit 1; \
97 ## if test -f $(libexecdir)/-$$f; then \
98 ## echo $(RM) -f $(libexecdir)/-$$f; \
99 ## $(RM) -f $(libexecdir)/-$$f; \
103 check_PROGRAMS += testIcmp
106 ## Tests of the ICMP base module.
107 # Its used by pinger so SHOULD NOT require more dependancies! :-(
112 nodist_testIcmp_SOURCES = \
113 $(top_srcdir)/src/SquidTime.h \
114 $(top_srcdir)/src/tests/stub_debug.cc \
115 $(top_srcdir)/src/time.cc \
116 $(top_srcdir)/test-suite/test_tools.cc \
117 $(top_builddir)/src/globals.cc
118 testIcmp_LDFLAGS = $(LIBADD_DL)
120 $(SQUID_CPPUNIT_LIBS) \
121 $(SQUID_CPPUNIT_LA) \
127 testIcmp_DEPENDENCIES= $(SQUID_CPPUNIT_LA)