1 ## Copyright (C) 1996-2014 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)
89 ## @f=$(PINGER_EXE); \
90 ## if test -f $(libexecdir)/$$f; then \
91 ## echo $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
92 ## $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
94 ## echo $(INSTALL_SUID) $$f $(libexecdir); \
95 ## $(INSTALL_SUID) $$f $(libexecdir) || exit 1; \
96 ## if test -f $(libexecdir)/-$$f; then \
97 ## echo $(RM) -f $(libexecdir)/-$$f; \
98 ## $(RM) -f $(libexecdir)/-$$f; \
102 check_PROGRAMS += testIcmp
105 ## Tests of the ICMP base module.
106 # Its used by pinger so SHOULD NOT require more dependancies! :-(
111 nodist_testIcmp_SOURCES = \
112 $(top_srcdir)/src/SquidTime.h \
113 $(top_srcdir)/src/tests/stub_debug.cc \
114 $(top_srcdir)/src/time.cc \
115 $(top_srcdir)/test-suite/test_tools.cc \
116 $(top_builddir)/src/globals.cc
117 testIcmp_LDFLAGS = $(LIBADD_DL)
119 $(SQUID_CPPUNIT_LIBS) \
120 $(SQUID_CPPUNIT_LA) \
126 testIcmp_DEPENDENCIES= $(SQUID_CPPUNIT_LA)