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 pinger globals.cc will link.
13 DEFS += -DDEFAULT_CONFIG_FILE=NULL
16 # ICMP Specific Configurations
19 libexec_PROGRAMS = pinger
21 EXTRA_PROGRAMS = pinger
24 noinst_LTLIBRARIES = libicmp-core.la libicmp.la
26 # ICMP API definition ...
27 libicmp_core_la_SOURCES = \
31 # Squid Internal ICMP helper interface
32 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 = \
58 stub_HelperChildConfig.cc \
61 pinger_LDFLAGS = $(LIBADD_DL)
64 $(top_builddir)/src/ip/libip.la \
65 $(top_builddir)/src/base/libbase.la \
70 ## @f=$(PINGER_EXE); \
71 ## if test -f $(libexecdir)/$$f; then \
72 ## echo $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
73 ## $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
75 ## echo $(INSTALL_SUID) $$f $(libexecdir); \
76 ## $(INSTALL_SUID) $$f $(libexecdir) || exit 1; \
77 ## if test -f $(libexecdir)/-$$f; then \
78 ## echo $(RM) -f $(libexecdir)/-$$f; \
79 ## $(RM) -f $(libexecdir)/-$$f; \
82 ## files we need to pull in from other locations
83 ## copied like this to avoid subdir-objects collisions on 'make clean'
84 debug.cc: $(top_srcdir)/src/debug.cc
85 cp $(top_srcdir)/src/debug.cc .
87 globals.cc: $(top_srcdir)/src/globals.h
88 cp $(top_builddir)/src/globals.cc .
90 time.cc: $(top_srcdir)/src/time.cc
91 cp $(top_srcdir)/src/time.cc .
93 SquidConfig.cc: $(top_srcdir)/src/SquidConfig.cc
94 cp $(top_srcdir)/src/SquidConfig.cc .
96 SquidNew.cc: $(top_srcdir)/src/SquidNew.cc
97 cp $(top_srcdir)/src/SquidNew.cc .
99 stub_HelperChildConfig.cc: $(top_srcdir)/src/tests/stub_HelperChildConfig.cc
100 cp $(top_srcdir)/src/tests/stub_HelperChildConfig.cc .