1 ## Copyright (C) 1996-2020 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.
43 stub_HelperChildConfig.cc \
59 nodist_pinger_SOURCES = $(COPIED_SOURCE)
60 pinger_LDFLAGS = $(LIBADD_DL)
63 $(top_builddir)/src/ip/libip.la \
64 $(top_builddir)/src/base/libbase.la \
69 CLEANFILES += $(COPIED_SOURCE)
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; \
84 ## files we need to pull in from other locations
85 ## copied like this to avoid subdir-objects collisions on 'make clean'
86 debug.cc: $(top_srcdir)/src/debug.cc
87 cp $(top_srcdir)/src/debug.cc $@
89 globals.cc: $(top_srcdir)/src/globals.h
90 cp $(top_builddir)/src/globals.cc $@
92 time.cc: $(top_srcdir)/src/time.cc
93 cp $(top_srcdir)/src/time.cc $@
95 SquidConfig.cc: $(top_srcdir)/src/SquidConfig.cc
96 cp $(top_srcdir)/src/SquidConfig.cc $@
98 SquidNew.cc: $(top_srcdir)/src/SquidNew.cc
99 cp $(top_srcdir)/src/SquidNew.cc $@
101 stub_HelperChildConfig.cc: $(top_srcdir)/src/tests/stub_HelperChildConfig.cc
102 cp $(top_srcdir)/src/tests/stub_HelperChildConfig.cc $@
104 stub_libmem.cc: $(top_srcdir)/src/tests/stub_libmem.cc STUB.h
105 cp $(top_srcdir)/src/tests/stub_libmem.cc $@
107 stub_SBuf.cc: $(top_srcdir)/src/tests/stub_SBuf.cc STUB.h
108 cp $(top_srcdir)/src/tests/stub_SBuf.cc $@
110 STUB.h: $(top_srcdir)/src/tests/STUB.h
111 cp $(top_srcdir)/src/tests/STUB.h $@