]> git.ipfire.org Git - thirdparty/squid.git/blame - src/icmp/Makefile.am
SourceFormat Enforcement
[thirdparty/squid.git] / src / icmp / Makefile.am
CommitLineData
ef57eb7b 1## Copyright (C) 1996-2016 The Squid Software Foundation and contributors
bbc27441
AJ
2##
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.
6##
7
189f1e66
AJ
8include $(top_srcdir)/src/Common.am
9include $(top_srcdir)/src/TestHeaders.am
8a40230f
AJ
10
11# TODO: get rid of this when config filename is no longer a global constant.
37122e21 12# its only here so the pinger globals.cc will link.
8a40230f
AJ
13DEFS += -DDEFAULT_CONFIG_FILE=NULL
14
15
8a40230f
AJ
16# ICMP Specific Configurations
17
18if ENABLE_PINGER
37122e21 19libexec_PROGRAMS = pinger
8a40230f 20else
37122e21 21EXTRA_PROGRAMS = pinger
8a40230f
AJ
22endif
23
8a40230f
AJ
24noinst_LTLIBRARIES = libicmp-core.la libicmp.la
25
26# ICMP API definition ...
27libicmp_core_la_SOURCES = \
28 Icmp.h \
29 Icmp.cc
30
31# Squid Internal ICMP helper interface
32libicmp_la_SOURCES = \
7a9d36e3 33 IcmpConfig.cc \
8a40230f
AJ
34 IcmpConfig.h \
35 IcmpSquid.h \
36 IcmpSquid.cc \
37 net_db.h \
38 net_db.cc
39
ea5fa143
AJ
40# pinger depends on these but install/dist is done elsewhere.
41COPIED_SOURCE= \
42 debug.cc \
43 globals.cc \
44 SquidConfig.cc \
45 SquidNew.cc \
46 stub_HelperChildConfig.cc \
ae72213d
FC
47 stub_libmem.cc \
48 STUB.h \
ea5fa143
AJ
49 time.cc
50
8a40230f
AJ
51# ICMP lookup helper
52pinger_SOURCES = \
95329c22 53 Icmp.h \
8a40230f
AJ
54 IcmpPinger.h \
55 IcmpPinger.cc \
56 Icmp4.h \
57 Icmp4.cc \
58 Icmp6.h \
59 Icmp6.cc \
60 pinger.cc
ea5fa143 61nodist_pinger_SOURCES = $(COPIED_SOURCE)
8a40230f
AJ
62pinger_LDFLAGS = $(LIBADD_DL)
63pinger_LDADD=\
64 libicmp-core.la \
fa91d030
AJ
65 $(top_builddir)/src/ip/libip.la \
66 $(top_builddir)/src/base/libbase.la \
25f98340
AJ
67 $(COMPAT_LIB) \
68 $(XTRA_LIBS)
8a40230f 69
ea5fa143
AJ
70CLEANFILES += $(COPIED_SOURCE)
71
8a40230f
AJ
72##install-pinger:
73## @f=$(PINGER_EXE); \
74## if test -f $(libexecdir)/$$f; then \
75## echo $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
76## $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
77## fi; \
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; \
83## fi
84
37122e21
AJ
85## files we need to pull in from other locations
86## copied like this to avoid subdir-objects collisions on 'make clean'
87debug.cc: $(top_srcdir)/src/debug.cc
598b2b0d 88 cp $(top_srcdir)/src/debug.cc $@
8a40230f 89
7c20785f 90globals.cc: $(top_srcdir)/src/globals.h
598b2b0d 91 cp $(top_builddir)/src/globals.cc $@
8a40230f 92
37122e21 93time.cc: $(top_srcdir)/src/time.cc
598b2b0d 94 cp $(top_srcdir)/src/time.cc $@
37122e21
AJ
95
96SquidConfig.cc: $(top_srcdir)/src/SquidConfig.cc
598b2b0d 97 cp $(top_srcdir)/src/SquidConfig.cc $@
37122e21
AJ
98
99SquidNew.cc: $(top_srcdir)/src/SquidNew.cc
598b2b0d 100 cp $(top_srcdir)/src/SquidNew.cc $@
37122e21
AJ
101
102stub_HelperChildConfig.cc: $(top_srcdir)/src/tests/stub_HelperChildConfig.cc
598b2b0d 103 cp $(top_srcdir)/src/tests/stub_HelperChildConfig.cc $@
ae72213d
FC
104
105stub_libmem.cc: $(top_srcdir)/src/tests/stub_libmem.cc STUB.h
598b2b0d 106 cp $(top_srcdir)/src/tests/stub_libmem.cc $@
ae72213d
FC
107
108STUB.h: $(top_srcdir)/src/tests/STUB.h
598b2b0d 109 cp $(top_srcdir)/src/tests/STUB.h $@