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