1 ## Copyright (C) 1996-2018 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 = libicmpcore.la libicmp.la
26 # ICMP API definition ...
27 libicmpcore_la_SOURCES = \
31 # Squid Internal ICMP helper interface
32 libicmp_la_SOURCES = \
40 libicmp_la_LIBADD= libicmpcore.la
42 # pinger depends on these but install/dist is done elsewhere.
48 stub_HelperChildConfig.cc \
64 nodist_pinger_SOURCES = $(COPIED_SOURCE)
65 pinger_LDFLAGS = $(LIBADD_DL)
68 $(top_builddir)/src/ip/libip.la \
69 $(top_builddir)/src/base/libbase.la \
74 CLEANFILES += $(COPIED_SOURCE)
77 ## @f=$(PINGER_EXE); \
78 ## if test -f $(libexecdir)/$$f; then \
79 ## echo $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
80 ## $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
82 ## echo $(INSTALL_SUID) $$f $(libexecdir); \
83 ## $(INSTALL_SUID) $$f $(libexecdir) || exit 1; \
84 ## if test -f $(libexecdir)/-$$f; then \
85 ## echo $(RM) -f $(libexecdir)/-$$f; \
86 ## $(RM) -f $(libexecdir)/-$$f; \
89 ## files we need to pull in from other locations
90 ## copied like this to avoid subdir-objects collisions on 'make clean'
91 debug.cc: $(top_srcdir)/src/debug.cc
92 cp $(top_srcdir)/src/debug.cc $@
94 globals.cc: $(top_srcdir)/src/globals.h
95 cp $(top_builddir)/src/globals.cc $@
97 time.cc: $(top_srcdir)/src/time.cc
98 cp $(top_srcdir)/src/time.cc $@
100 SquidConfig.cc: $(top_srcdir)/src/SquidConfig.cc
101 cp $(top_srcdir)/src/SquidConfig.cc $@
103 SquidNew.cc: $(top_srcdir)/src/SquidNew.cc
104 cp $(top_srcdir)/src/SquidNew.cc $@
106 stub_HelperChildConfig.cc: $(top_srcdir)/src/tests/stub_HelperChildConfig.cc
107 cp $(top_srcdir)/src/tests/stub_HelperChildConfig.cc $@
109 stub_libmem.cc: $(top_srcdir)/src/tests/stub_libmem.cc STUB.h
110 cp $(top_srcdir)/src/tests/stub_libmem.cc $@
112 stub_SBuf.cc: $(top_srcdir)/src/tests/stub_SBuf.cc STUB.h
113 cp $(top_srcdir)/src/tests/stub_SBuf.cc $@
115 STUB.h: $(top_srcdir)/src/tests/STUB.h
116 cp $(top_srcdir)/src/tests/STUB.h $@