]> git.ipfire.org Git - thirdparty/squid.git/blob - src/icmp/Makefile.am
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / icmp / Makefile.am
1 ## Copyright (C) 1996-2020 The Squid Software Foundation and contributors
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
8 include $(top_srcdir)/src/Common.am
9 include $(top_srcdir)/src/TestHeaders.am
10
11 # ICMP Specific Configurations
12
13 if ENABLE_PINGER
14 libexec_PROGRAMS = pinger
15 else
16 EXTRA_PROGRAMS = pinger
17 endif
18
19 noinst_LTLIBRARIES = libicmpcore.la libicmp.la
20
21 # ICMP API definition ...
22 libicmpcore_la_SOURCES = \
23 Icmp.h \
24 Icmp.cc
25
26 # Squid Internal ICMP helper interface
27 libicmp_la_SOURCES = \
28 IcmpConfig.cc \
29 IcmpConfig.h \
30 IcmpSquid.h \
31 IcmpSquid.cc \
32 net_db.h \
33 net_db.cc
34
35 libicmp_la_LIBADD= libicmpcore.la
36
37 # pinger depends on these but install/dist is done elsewhere.
38 COPIED_SOURCE= \
39 debug.cc \
40 globals.cc \
41 SquidConfig.cc \
42 SquidNew.cc \
43 stub_HelperChildConfig.cc \
44 stub_libmem.cc \
45 stub_SBuf.cc \
46 STUB.h \
47 time.cc
48
49 # ICMP lookup helper
50 pinger_SOURCES = \
51 Icmp.h \
52 IcmpPinger.h \
53 IcmpPinger.cc \
54 Icmp4.h \
55 Icmp4.cc \
56 Icmp6.h \
57 Icmp6.cc \
58 pinger.cc
59 nodist_pinger_SOURCES = $(COPIED_SOURCE)
60 pinger_LDFLAGS = $(LIBADD_DL)
61 pinger_LDADD=\
62 libicmpcore.la \
63 $(top_builddir)/src/ip/libip.la \
64 $(top_builddir)/src/base/libbase.la \
65 $(COMPAT_LIB) \
66 $(SSLLIB) \
67 $(XTRA_LIBS)
68
69 CLEANFILES += $(COPIED_SOURCE)
70
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
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 $@
88
89 globals.cc: $(top_srcdir)/src/globals.h
90 cp $(top_builddir)/src/globals.cc $@
91
92 time.cc: $(top_srcdir)/src/time.cc
93 cp $(top_srcdir)/src/time.cc $@
94
95 SquidConfig.cc: $(top_srcdir)/src/SquidConfig.cc
96 cp $(top_srcdir)/src/SquidConfig.cc $@
97
98 SquidNew.cc: $(top_srcdir)/src/SquidNew.cc
99 cp $(top_srcdir)/src/SquidNew.cc $@
100
101 stub_HelperChildConfig.cc: $(top_srcdir)/src/tests/stub_HelperChildConfig.cc
102 cp $(top_srcdir)/src/tests/stub_HelperChildConfig.cc $@
103
104 stub_libmem.cc: $(top_srcdir)/src/tests/stub_libmem.cc STUB.h
105 cp $(top_srcdir)/src/tests/stub_libmem.cc $@
106
107 stub_SBuf.cc: $(top_srcdir)/src/tests/stub_SBuf.cc STUB.h
108 cp $(top_srcdir)/src/tests/stub_SBuf.cc $@
109
110 STUB.h: $(top_srcdir)/src/tests/STUB.h
111 cp $(top_srcdir)/src/tests/STUB.h $@