]> 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 $(top_builddir)/lib/libmiscutil.a
65 pinger_DEPENDENCIES= \
66 libicmp-core.la \
67 $(top_builddir)/lib/libmiscutil.a
68
69
70
71 ##install-pinger:
72 ## @f=$(PINGER_EXE); \
73 ## if test -f $(libexecdir)/$$f; then \
74 ## echo $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
75 ## $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
76 ## fi; \
77 ## echo $(INSTALL_SUID) $$f $(libexecdir); \
78 ## $(INSTALL_SUID) $$f $(libexecdir) || exit 1; \
79 ## if test -f $(libexecdir)/-$$f; then \
80 ## echo $(RM) -f $(libexecdir)/-$$f; \
81 ## $(RM) -f $(libexecdir)/-$$f; \
82 ## fi
83
84
85 check_PROGRAMS += testIcmp
86 TESTS += testIcmp
87
88 ## Tests of the ICMP base module.
89 # Its used by pinger so SHOULD NOT require more dependancies! :-(
90 testIcmp_SOURCES = \
91 Icmp.h \
92 testIcmp.h \
93 testIcmp.cc
94 nodist_testIcmp_SOURCES = \
95 $(top_srcdir)/src/tests/testMain.cc \
96 $(top_srcdir)/src/SquidTime.h \
97 $(top_srcdir)/src/time.cc \
98 $(top_srcdir)/test-suite/test_tools.cc \
99 $(top_builddir)/src/globals.cc
100 testIcmp_LDFLAGS = $(LIBADD_DL)
101 testIcmp_LDADD=\
102 @SQUID_CPPUNIT_LIBS@ \
103 @SQUID_CPPUNIT_LA@ \
104 libicmp-core.la \
105 ../ip/libip.la \
106 $(top_builddir)/lib/libmiscutil.a
107 testIcmp_DEPENDENCIES= @SQUID_CPPUNIT_LA@ \
108 libicmp-core.la \
109 $(top_builddir)/lib/libmiscutil.a