1 ## Copyright (C) 1996-2023 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 # ICMP Specific Configurations
14 libexec_PROGRAMS = pinger
16 EXTRA_PROGRAMS = pinger
19 noinst_LTLIBRARIES = libicmpcore.la libicmp.la
21 # ICMP API definition ...
22 libicmpcore_la_SOURCES = \
26 # Squid Internal ICMP helper interface
27 libicmp_la_SOURCES = \
35 libicmp_la_LIBADD= libicmpcore.la
37 # pinger depends on these but install/dist is done elsewhere.
41 tests/stub_HelperChildConfig.cc \
54 nodist_pinger_SOURCES = $(COPIED_SOURCE)
55 pinger_LDFLAGS = $(LIBADD_DL)
58 $(top_builddir)/src/ip/libip.la \
59 $(top_builddir)/src/sbuf/libsbuf.la \
60 $(top_builddir)/src/debug/libdebug.la \
61 $(top_builddir)/src/comm/libminimal.la \
62 $(top_builddir)/src/time/libtime.la \
63 $(top_builddir)/src/base/libbase.la \
64 $(top_builddir)/src/mem/libminimal.la \
70 CLEANFILES += $(COPIED_SOURCE)
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; \
85 ## files we need to pull in from other locations
86 ## copied like this to avoid subdir-objects collisions on 'make clean'
87 globals.cc: $(top_srcdir)/src/globals.h
88 cp $(top_builddir)/src/globals.cc $@
90 SquidConfig.cc: $(top_srcdir)/src/SquidConfig.cc
91 cp $(top_srcdir)/src/SquidConfig.cc $@
93 tests/stub_HelperChildConfig.cc: $(top_srcdir)/src/tests/stub_HelperChildConfig.cc | tests
94 cp $(top_srcdir)/src/tests/stub_HelperChildConfig.cc $@
96 tests/STUB.h: $(top_srcdir)/src/tests/STUB.h | tests
97 cp $(top_srcdir)/src/tests/STUB.h $@