]> git.ipfire.org Git - thirdparty/squid.git/blob - src/icmp/Makefile.am
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / icmp / Makefile.am
1 ## Copyright (C) 1996-2018 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 # 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
14
15
16 # ICMP Specific Configurations
17
18 if ENABLE_PINGER
19 libexec_PROGRAMS = pinger
20 else
21 EXTRA_PROGRAMS = pinger
22 endif
23
24 noinst_LTLIBRARIES = libicmpcore.la libicmp.la
25
26 # ICMP API definition ...
27 libicmpcore_la_SOURCES = \
28 Icmp.h \
29 Icmp.cc
30
31 # Squid Internal ICMP helper interface
32 libicmp_la_SOURCES = \
33 IcmpConfig.cc \
34 IcmpConfig.h \
35 IcmpSquid.h \
36 IcmpSquid.cc \
37 net_db.h \
38 net_db.cc
39
40 libicmp_la_LIBADD= libicmpcore.la
41
42 # pinger depends on these but install/dist is done elsewhere.
43 COPIED_SOURCE= \
44 debug.cc \
45 globals.cc \
46 SquidConfig.cc \
47 SquidNew.cc \
48 stub_HelperChildConfig.cc \
49 stub_libmem.cc \
50 stub_SBuf.cc \
51 STUB.h \
52 time.cc
53
54 # ICMP lookup helper
55 pinger_SOURCES = \
56 Icmp.h \
57 IcmpPinger.h \
58 IcmpPinger.cc \
59 Icmp4.h \
60 Icmp4.cc \
61 Icmp6.h \
62 Icmp6.cc \
63 pinger.cc
64 nodist_pinger_SOURCES = $(COPIED_SOURCE)
65 pinger_LDFLAGS = $(LIBADD_DL)
66 pinger_LDADD=\
67 libicmpcore.la \
68 $(top_builddir)/src/ip/libip.la \
69 $(top_builddir)/src/base/libbase.la \
70 $(COMPAT_LIB) \
71 $(SSLLIB) \
72 $(XTRA_LIBS)
73
74 CLEANFILES += $(COPIED_SOURCE)
75
76 ##install-pinger:
77 ## @f=$(PINGER_EXE); \
78 ## if test -f $(libexecdir)/$$f; then \
79 ## echo $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
80 ## $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
81 ## fi; \
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; \
87 ## fi
88
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 $@
93
94 globals.cc: $(top_srcdir)/src/globals.h
95 cp $(top_builddir)/src/globals.cc $@
96
97 time.cc: $(top_srcdir)/src/time.cc
98 cp $(top_srcdir)/src/time.cc $@
99
100 SquidConfig.cc: $(top_srcdir)/src/SquidConfig.cc
101 cp $(top_srcdir)/src/SquidConfig.cc $@
102
103 SquidNew.cc: $(top_srcdir)/src/SquidNew.cc
104 cp $(top_srcdir)/src/SquidNew.cc $@
105
106 stub_HelperChildConfig.cc: $(top_srcdir)/src/tests/stub_HelperChildConfig.cc
107 cp $(top_srcdir)/src/tests/stub_HelperChildConfig.cc $@
108
109 stub_libmem.cc: $(top_srcdir)/src/tests/stub_libmem.cc STUB.h
110 cp $(top_srcdir)/src/tests/stub_libmem.cc $@
111
112 stub_SBuf.cc: $(top_srcdir)/src/tests/stub_SBuf.cc STUB.h
113 cp $(top_srcdir)/src/tests/stub_SBuf.cc $@
114
115 STUB.h: $(top_srcdir)/src/tests/STUB.h
116 cp $(top_srcdir)/src/tests/STUB.h $@