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)
65 $(top_builddir)/lib/libmiscutil.a
66 pinger_DEPENDENCIES= \
68 $(top_builddir)/lib/libmiscutil.a
73 ## @f=$(PINGER_EXE); \
74 ## if test -f $(libexecdir)/$$f; then \
75 ## echo $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
76 ## $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
78 ## echo $(INSTALL_SUID) $$f $(libexecdir); \
79 ## $(INSTALL_SUID) $$f $(libexecdir) || exit 1; \
80 ## if test -f $(libexecdir)/-$$f; then \
81 ## echo $(RM) -f $(libexecdir)/-$$f; \
82 ## $(RM) -f $(libexecdir)/-$$f; \
86 check_PROGRAMS += testIcmp
89 ## Tests of the ICMP base module.
90 # Its used by pinger so SHOULD NOT require more dependancies! :-(
95 nodist_testIcmp_SOURCES = \
96 $(top_srcdir)/src/tests/testMain.cc \
97 $(top_srcdir)/src/SquidTime.h \
98 $(top_srcdir)/src/time.cc \
99 $(top_srcdir)/test-suite/test_tools.cc \
100 $(top_builddir)/src/globals.cc
101 testIcmp_LDFLAGS = $(LIBADD_DL)
103 @SQUID_CPPUNIT_LIBS@ \
108 $(top_builddir)/lib/libmiscutil.a
109 testIcmp_DEPENDENCIES= @SQUID_CPPUNIT_LA@ \
111 $(top_builddir)/lib/libmiscutil.a