]> git.ipfire.org Git - thirdparty/squid.git/blob - src/icmp/Makefile.am
Merged from trunk
[thirdparty/squid.git] / src / icmp / Makefile.am
1 ## Copyright (C) 1996-2015 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 testIcmp will link .
13 DEFS += -DDEFAULT_CONFIG_FILE=NULL
14
15
16 # ICMP Specific Configurations
17
18 if ENABLE_PINGER
19 PINGER = pinger
20 else
21 PINGER =
22 endif
23
24 EXTRA_PROGRAMS = \
25 pinger \
26 testIcmp
27
28 libexec_PROGRAMS = $(PINGER)
29
30 noinst_LTLIBRARIES = libicmp-core.la libicmp.la
31
32 SBUF_SOURCE= \
33 $(top_srcdir)/src/base/CharacterSet.h \
34 $(top_srcdir)/src/SBuf.h \
35 $(top_srcdir)/src/SBuf.cc \
36 $(top_srcdir)/src/MemBlob.h \
37 $(top_srcdir)/src/MemBlob.cc \
38 $(top_srcdir)/src/OutOfBoundsException.h \
39 $(top_srcdir)/src/SBufExceptions.h \
40 $(top_srcdir)/src/SBufExceptions.cc \
41 $(top_srcdir)/src/String.cc \
42 $(top_srcdir)/src/SquidString.h \
43 $(top_srcdir)/src/base/TextException.h \
44 $(top_srcdir)/src/base/TextException.cc
45
46 # ICMP API definition ...
47 libicmp_core_la_SOURCES = \
48 Icmp.h \
49 Icmp.cc
50
51 # Squid Internal ICMP helper interface
52 libicmp_la_SOURCES = \
53 IcmpConfig.cc \
54 IcmpConfig.h \
55 IcmpSquid.h \
56 IcmpSquid.cc \
57 net_db.h \
58 net_db.cc
59
60 # ICMP lookup helper
61 pinger_SOURCES = \
62 Icmp.h \
63 IcmpPinger.h \
64 IcmpPinger.cc \
65 Icmp4.h \
66 Icmp4.cc \
67 Icmp6.h \
68 Icmp6.cc \
69 pinger.cc
70
71 # depends on these but install/dist is done elsewhere.
72 # TODO: remove when these are cleaned up in their own way.
73 nodist_pinger_SOURCES = \
74 $(top_srcdir)/src/debug.cc \
75 $(top_builddir)/src/globals.cc \
76 $(top_srcdir)/src/time.cc \
77 $(top_srcdir)/src/SquidConfig.cc \
78 $(top_srcdir)/src/SquidNew.cc \
79 $(top_srcdir)/src/tests/stub_HelperChildConfig.cc
80
81 pinger_LDFLAGS = $(LIBADD_DL)
82 pinger_LDADD=\
83 libicmp-core.la \
84 $(top_builddir)/src/ip/libip.la \
85 $(top_builddir)/src/base/libbase.la \
86 $(COMPAT_LIB) \
87 $(XTRA_LIBS)
88
89
90 ##install-pinger:
91 ## @f=$(PINGER_EXE); \
92 ## if test -f $(libexecdir)/$$f; then \
93 ## echo $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
94 ## $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
95 ## fi; \
96 ## echo $(INSTALL_SUID) $$f $(libexecdir); \
97 ## $(INSTALL_SUID) $$f $(libexecdir) || exit 1; \
98 ## if test -f $(libexecdir)/-$$f; then \
99 ## echo $(RM) -f $(libexecdir)/-$$f; \
100 ## $(RM) -f $(libexecdir)/-$$f; \
101 ## fi
102
103
104 check_PROGRAMS += testIcmp
105 TESTS += testIcmp
106
107 ## Tests of the ICMP base module.
108 # Its used by pinger so SHOULD NOT require more dependancies! :-(
109 testIcmp_SOURCES = \
110 Icmp.h \
111 testIcmp.h \
112 testIcmp.cc
113 nodist_testIcmp_SOURCES = \
114 $(top_srcdir)/src/SquidTime.h \
115 $(top_srcdir)/src/tests/stub_debug.cc \
116 $(top_srcdir)/src/time.cc \
117 $(top_srcdir)/test-suite/test_tools.cc \
118 $(top_builddir)/src/globals.cc
119 testIcmp_LDFLAGS = $(LIBADD_DL)
120 testIcmp_LDADD=\
121 $(SQUID_CPPUNIT_LIBS) \
122 $(SQUID_CPPUNIT_LA) \
123 libicmp-core.la \
124 ../ip/libip.la \
125 ../base/libbase.la \
126 $(COMPAT_LIB) \
127 $(XTRA_LIBS)
128 testIcmp_DEPENDENCIES= $(SQUID_CPPUNIT_LA)