]>
Commit | Line | Data |
---|---|---|
4ac4a490 | 1 | ## Copyright (C) 1996-2017 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 |
8 | include $(top_srcdir)/src/Common.am |
9 | include $(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 |
13 | DEFS += -DDEFAULT_CONFIG_FILE=NULL |
14 | ||
15 | ||
8a40230f AJ |
16 | # ICMP Specific Configurations |
17 | ||
18 | if ENABLE_PINGER | |
37122e21 | 19 | libexec_PROGRAMS = pinger |
8a40230f | 20 | else |
37122e21 | 21 | EXTRA_PROGRAMS = pinger |
8a40230f AJ |
22 | endif |
23 | ||
ca3a08e2 | 24 | noinst_LTLIBRARIES = libicmpcore.la libicmp.la |
8a40230f AJ |
25 | |
26 | # ICMP API definition ... | |
ca3a08e2 | 27 | libicmpcore_la_SOURCES = \ |
8a40230f AJ |
28 | Icmp.h \ |
29 | Icmp.cc | |
30 | ||
31 | # Squid Internal ICMP helper interface | |
32 | libicmp_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 | ||
ca3a08e2 AJ |
40 | libicmp_la_LIBADD= libicmpcore.la |
41 | ||
ea5fa143 AJ |
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 \ | |
ae72213d FC |
49 | stub_libmem.cc \ |
50 | STUB.h \ | |
ea5fa143 AJ |
51 | time.cc |
52 | ||
8a40230f AJ |
53 | # ICMP lookup helper |
54 | pinger_SOURCES = \ | |
95329c22 | 55 | Icmp.h \ |
8a40230f AJ |
56 | IcmpPinger.h \ |
57 | IcmpPinger.cc \ | |
58 | Icmp4.h \ | |
59 | Icmp4.cc \ | |
60 | Icmp6.h \ | |
61 | Icmp6.cc \ | |
62 | pinger.cc | |
ea5fa143 | 63 | nodist_pinger_SOURCES = $(COPIED_SOURCE) |
8a40230f AJ |
64 | pinger_LDFLAGS = $(LIBADD_DL) |
65 | pinger_LDADD=\ | |
ca3a08e2 | 66 | libicmpcore.la \ |
fa91d030 AJ |
67 | $(top_builddir)/src/ip/libip.la \ |
68 | $(top_builddir)/src/base/libbase.la \ | |
25f98340 | 69 | $(COMPAT_LIB) \ |
900daee3 | 70 | $(SSLLIB) \ |
25f98340 | 71 | $(XTRA_LIBS) |
8a40230f | 72 | |
ea5fa143 AJ |
73 | CLEANFILES += $(COPIED_SOURCE) |
74 | ||
8a40230f AJ |
75 | ##install-pinger: |
76 | ## @f=$(PINGER_EXE); \ | |
77 | ## if test -f $(libexecdir)/$$f; then \ | |
78 | ## echo $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \ | |
79 | ## $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \ | |
80 | ## fi; \ | |
81 | ## echo $(INSTALL_SUID) $$f $(libexecdir); \ | |
82 | ## $(INSTALL_SUID) $$f $(libexecdir) || exit 1; \ | |
83 | ## if test -f $(libexecdir)/-$$f; then \ | |
84 | ## echo $(RM) -f $(libexecdir)/-$$f; \ | |
85 | ## $(RM) -f $(libexecdir)/-$$f; \ | |
86 | ## fi | |
87 | ||
37122e21 AJ |
88 | ## files we need to pull in from other locations |
89 | ## copied like this to avoid subdir-objects collisions on 'make clean' | |
90 | debug.cc: $(top_srcdir)/src/debug.cc | |
598b2b0d | 91 | cp $(top_srcdir)/src/debug.cc $@ |
8a40230f | 92 | |
7c20785f | 93 | globals.cc: $(top_srcdir)/src/globals.h |
598b2b0d | 94 | cp $(top_builddir)/src/globals.cc $@ |
8a40230f | 95 | |
37122e21 | 96 | time.cc: $(top_srcdir)/src/time.cc |
598b2b0d | 97 | cp $(top_srcdir)/src/time.cc $@ |
37122e21 AJ |
98 | |
99 | SquidConfig.cc: $(top_srcdir)/src/SquidConfig.cc | |
598b2b0d | 100 | cp $(top_srcdir)/src/SquidConfig.cc $@ |
37122e21 AJ |
101 | |
102 | SquidNew.cc: $(top_srcdir)/src/SquidNew.cc | |
598b2b0d | 103 | cp $(top_srcdir)/src/SquidNew.cc $@ |
37122e21 AJ |
104 | |
105 | stub_HelperChildConfig.cc: $(top_srcdir)/src/tests/stub_HelperChildConfig.cc | |
598b2b0d | 106 | cp $(top_srcdir)/src/tests/stub_HelperChildConfig.cc $@ |
ae72213d FC |
107 | |
108 | stub_libmem.cc: $(top_srcdir)/src/tests/stub_libmem.cc STUB.h | |
598b2b0d | 109 | cp $(top_srcdir)/src/tests/stub_libmem.cc $@ |
ae72213d FC |
110 | |
111 | STUB.h: $(top_srcdir)/src/tests/STUB.h | |
598b2b0d | 112 | cp $(top_srcdir)/src/tests/STUB.h $@ |