1 include $(top_srcdir)/src/Common.am
2 include $(top_srcdir)/src/TestHeaders.am
4 # TODO: get rid of this when config filename is no longer a global constant.
5 # its only here so the testIcmp will link .
6 DEFS += -DDEFAULT_CONFIG_FILE=NULL
9 # ICMP Specific Configurations
21 libexec_PROGRAMS = $(PINGER)
23 noinst_LTLIBRARIES = libicmp-core.la libicmp.la
26 $(top_srcdir)/src/base/CharacterSet.h \
27 $(top_srcdir)/src/SBuf.h \
28 $(top_srcdir)/src/SBuf.cc \
29 $(top_srcdir)/src/MemBlob.h \
30 $(top_srcdir)/src/MemBlob.cc \
31 $(top_srcdir)/src/OutOfBoundsException.h \
32 $(top_srcdir)/src/SBufExceptions.h \
33 $(top_srcdir)/src/SBufExceptions.cc \
34 $(top_srcdir)/src/String.cc \
35 $(top_srcdir)/src/SquidString.h \
36 $(top_srcdir)/src/base/TextException.h \
37 $(top_srcdir)/src/base/TextException.cc
39 # ICMP API definition ...
40 libicmp_core_la_SOURCES = \
44 # Squid Internal ICMP helper interface
45 libicmp_la_SOURCES = \
63 # depends on these but install/dist is done elsewhere.
64 # TODO: remove when these are cleaned up in their own way.
65 nodist_pinger_SOURCES = \
66 $(top_srcdir)/src/debug.cc \
67 $(top_builddir)/src/globals.cc \
68 $(top_srcdir)/src/time.cc \
69 $(top_srcdir)/src/SquidConfig.cc \
70 $(top_srcdir)/src/SquidNew.cc \
71 $(top_srcdir)/src/tests/stub_HelperChildConfig.cc
73 pinger_LDFLAGS = $(LIBADD_DL)
82 ## @f=$(PINGER_EXE); \
83 ## if test -f $(libexecdir)/$$f; then \
84 ## echo $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
85 ## $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
87 ## echo $(INSTALL_SUID) $$f $(libexecdir); \
88 ## $(INSTALL_SUID) $$f $(libexecdir) || exit 1; \
89 ## if test -f $(libexecdir)/-$$f; then \
90 ## echo $(RM) -f $(libexecdir)/-$$f; \
91 ## $(RM) -f $(libexecdir)/-$$f; \
95 check_PROGRAMS += testIcmp
98 ## Tests of the ICMP base module.
99 # Its used by pinger so SHOULD NOT require more dependancies! :-(
104 nodist_testIcmp_SOURCES = \
105 $(top_srcdir)/src/tests/testMain.cc \
106 $(top_srcdir)/src/SquidTime.h \
107 $(top_srcdir)/src/tests/stub_debug.cc \
108 $(top_srcdir)/src/time.cc \
109 $(top_srcdir)/test-suite/test_tools.cc \
110 $(top_builddir)/src/globals.cc
111 testIcmp_LDFLAGS = $(LIBADD_DL)
113 $(SQUID_CPPUNIT_LIBS) \
114 $(SQUID_CPPUNIT_LA) \
120 testIcmp_DEPENDENCIES= $(SQUID_CPPUNIT_LA)