]> git.ipfire.org Git - thirdparty/squid.git/blame - src/icmp/Makefile.am
Fixed CC directive ID check broken since r14130.1.60.
[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
ca3a08e2 24noinst_LTLIBRARIES = libicmpcore.la libicmp.la
8a40230f
AJ
25
26# ICMP API definition ...
ca3a08e2 27libicmpcore_la_SOURCES = \
8a40230f
AJ
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
ca3a08e2
AJ
40libicmp_la_LIBADD= libicmpcore.la
41
ea5fa143
AJ
42# pinger depends on these but install/dist is done elsewhere.
43COPIED_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
54pinger_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 63nodist_pinger_SOURCES = $(COPIED_SOURCE)
8a40230f
AJ
64pinger_LDFLAGS = $(LIBADD_DL)
65pinger_LDADD=\
ca3a08e2 66 libicmpcore.la \
fa91d030
AJ
67 $(top_builddir)/src/ip/libip.la \
68 $(top_builddir)/src/base/libbase.la \
25f98340
AJ
69 $(COMPAT_LIB) \
70 $(XTRA_LIBS)
8a40230f 71
ea5fa143
AJ
72CLEANFILES += $(COPIED_SOURCE)
73
8a40230f
AJ
74##install-pinger:
75## @f=$(PINGER_EXE); \
76## if test -f $(libexecdir)/$$f; then \
77## echo $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
78## $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
79## fi; \
80## echo $(INSTALL_SUID) $$f $(libexecdir); \
81## $(INSTALL_SUID) $$f $(libexecdir) || exit 1; \
82## if test -f $(libexecdir)/-$$f; then \
83## echo $(RM) -f $(libexecdir)/-$$f; \
84## $(RM) -f $(libexecdir)/-$$f; \
85## fi
86
37122e21
AJ
87## files we need to pull in from other locations
88## copied like this to avoid subdir-objects collisions on 'make clean'
89debug.cc: $(top_srcdir)/src/debug.cc
598b2b0d 90 cp $(top_srcdir)/src/debug.cc $@
8a40230f 91
7c20785f 92globals.cc: $(top_srcdir)/src/globals.h
598b2b0d 93 cp $(top_builddir)/src/globals.cc $@
8a40230f 94
37122e21 95time.cc: $(top_srcdir)/src/time.cc
598b2b0d 96 cp $(top_srcdir)/src/time.cc $@
37122e21
AJ
97
98SquidConfig.cc: $(top_srcdir)/src/SquidConfig.cc
598b2b0d 99 cp $(top_srcdir)/src/SquidConfig.cc $@
37122e21
AJ
100
101SquidNew.cc: $(top_srcdir)/src/SquidNew.cc
598b2b0d 102 cp $(top_srcdir)/src/SquidNew.cc $@
37122e21
AJ
103
104stub_HelperChildConfig.cc: $(top_srcdir)/src/tests/stub_HelperChildConfig.cc
598b2b0d 105 cp $(top_srcdir)/src/tests/stub_HelperChildConfig.cc $@
ae72213d
FC
106
107stub_libmem.cc: $(top_srcdir)/src/tests/stub_libmem.cc STUB.h
598b2b0d 108 cp $(top_srcdir)/src/tests/stub_libmem.cc $@
ae72213d
FC
109
110STUB.h: $(top_srcdir)/src/tests/STUB.h
598b2b0d 111 cp $(top_srcdir)/src/tests/STUB.h $@