2 include $(top_srcdir)/src/Common.am
3 include $(top_srcdir)/src/TestHeaders.am
5 # TODO: get rid of this when config filename is no longer a global constant.
6 # its only here so the testIcmp will link .
7 DEFS += -DDEFAULT_CONFIG_FILE=NULL
11 # ICMP Specific Configurations
23 libexec_PROGRAMS = $(PINGER)
25 noinst_LTLIBRARIES = libicmp-core.la libicmp.la
27 # ICMP API definition ...
28 libicmp_core_la_SOURCES = \
32 # Squid Internal ICMP helper interface
33 libicmp_la_SOURCES = \
51 # depends on these but install/dist is done elsewhere.
52 # TODO: remove when these are cleaned up in their own way.
53 nodist_pinger_SOURCES = \
54 $(top_srcdir)/src/debug.cc \
55 $(top_builddir)/src/globals.cc \
56 $(top_srcdir)/src/time.cc \
57 $(top_srcdir)/src/SquidConfig.cc \
58 $(top_srcdir)/src/SquidNew.cc
60 pinger_LDFLAGS = $(LIBADD_DL)
64 $(top_builddir)/lib/libmiscutil.a
65 pinger_DEPENDENCIES= \
67 $(top_builddir)/lib/libmiscutil.a
72 ## @f=$(PINGER_EXE); \
73 ## if test -f $(libexecdir)/$$f; then \
74 ## echo $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
75 ## $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
77 ## echo $(INSTALL_SUID) $$f $(libexecdir); \
78 ## $(INSTALL_SUID) $$f $(libexecdir) || exit 1; \
79 ## if test -f $(libexecdir)/-$$f; then \
80 ## echo $(RM) -f $(libexecdir)/-$$f; \
81 ## $(RM) -f $(libexecdir)/-$$f; \
85 check_PROGRAMS += testIcmp
88 ## Tests of the ICMP base module.
89 # Its used by pinger so SHOULD NOT require more dependancies! :-(
94 nodist_testIcmp_SOURCES = \
95 $(top_srcdir)/src/tests/testMain.cc \
96 $(top_srcdir)/src/SquidTime.h \
97 $(top_srcdir)/src/time.cc \
98 $(top_srcdir)/test-suite/test_tools.cc \
99 $(top_builddir)/src/globals.cc
100 testIcmp_LDFLAGS = $(LIBADD_DL)
102 @SQUID_CPPUNIT_LIBS@ \
106 $(top_builddir)/lib/libmiscutil.a
107 testIcmp_DEPENDENCIES= @SQUID_CPPUNIT_LA@ \
109 $(top_builddir)/lib/libmiscutil.a