]> git.ipfire.org Git - thirdparty/squid.git/blob - src/icmp/Makefile.am
Place unit tests in src/tests to make automake happy
[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 pinger globals.cc will link.
13 DEFS += -DDEFAULT_CONFIG_FILE=NULL
14
15
16 # ICMP Specific Configurations
17
18 if ENABLE_PINGER
19 libexec_PROGRAMS = pinger
20 else
21 EXTRA_PROGRAMS = pinger
22 endif
23
24 noinst_LTLIBRARIES = libicmp-core.la libicmp.la
25
26 # ICMP API definition ...
27 libicmp_core_la_SOURCES = \
28 Icmp.h \
29 Icmp.cc
30
31 # Squid Internal ICMP helper interface
32 libicmp_la_SOURCES = \
33 IcmpConfig.cc \
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 debug.cc \
55 globals.cc \
56 SquidConfig.cc \
57 SquidNew.cc \
58 stub_HelperChildConfig.cc \
59 time.cc
60
61 pinger_LDFLAGS = $(LIBADD_DL)
62 pinger_LDADD=\
63 libicmp-core.la \
64 $(top_builddir)/src/ip/libip.la \
65 $(top_builddir)/src/base/libbase.la \
66 $(COMPAT_LIB) \
67 $(XTRA_LIBS)
68
69 ##install-pinger:
70 ## @f=$(PINGER_EXE); \
71 ## if test -f $(libexecdir)/$$f; then \
72 ## echo $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
73 ## $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
74 ## fi; \
75 ## echo $(INSTALL_SUID) $$f $(libexecdir); \
76 ## $(INSTALL_SUID) $$f $(libexecdir) || exit 1; \
77 ## if test -f $(libexecdir)/-$$f; then \
78 ## echo $(RM) -f $(libexecdir)/-$$f; \
79 ## $(RM) -f $(libexecdir)/-$$f; \
80 ## fi
81
82 ## files we need to pull in from other locations
83 ## copied like this to avoid subdir-objects collisions on 'make clean'
84 debug.cc: $(top_srcdir)/src/debug.cc
85 cp $(top_srcdir)/src/debug.cc .
86
87 globals.cc: $(top_srcdir)/src/globals.h
88 cp $(top_builddir)/src/globals.cc .
89
90 time.cc: $(top_srcdir)/src/time.cc
91 cp $(top_srcdir)/src/time.cc .
92
93 SquidConfig.cc: $(top_srcdir)/src/SquidConfig.cc
94 cp $(top_srcdir)/src/SquidConfig.cc .
95
96 SquidNew.cc: $(top_srcdir)/src/SquidNew.cc
97 cp $(top_srcdir)/src/SquidNew.cc .
98
99 stub_HelperChildConfig.cc: $(top_srcdir)/src/tests/stub_HelperChildConfig.cc
100 cp $(top_srcdir)/src/tests/stub_HelperChildConfig.cc .