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