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