| 1 |
# |
| 2 |
# Copyright (C) 2007-2026 Free Software Foundation, Inc. |
| 3 |
# |
| 4 |
# This file is part of GNU Inetutils. |
| 5 |
# |
| 6 |
# GNU Inetutils is free software: you can redistribute it and/or modify |
| 7 |
# it under the terms of the GNU General Public License as published by |
| 8 |
# the Free Software Foundation, either version 3 of the License, or (at |
| 9 |
# your option) any later version. |
| 10 |
# |
| 11 |
# GNU Inetutils is distributed in the hope that it will be useful, but |
| 12 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 |
# General Public License for more details. |
| 15 |
# |
| 16 |
# You should have received a copy of the GNU General Public License |
| 17 |
# along with this program. If not, see `http://www.gnu.org/licenses/'. |
| 18 |
|
| 19 |
AM_CPPFLAGS = $(iu_INCLUDES) |
| 20 |
|
| 21 |
AM_CFLAGS = $(WARN_CFLAGS) |
| 22 |
|
| 23 |
LDADD = $(iu_LIBRARIES) |
| 24 |
|
| 25 |
EXTRA_DIST = tools.sh.in ifconfig_modes.sh crash-tftp-msg2021-12_18.bin \ |
| 26 |
crash-ftp-msg2021-12_03.bin crash-ftp-msg2021-12_16.bin \ |
| 27 |
crash-ftp-msg2021-12_04.bin crash-ftp-msg2021-12_05.bin \ |
| 28 |
utmp.sh |
| 29 |
|
| 30 |
noinst_PROGRAMS = identify |
| 31 |
identify_LDADD = $(top_builddir)/lib/libgnu.a $(LIBUTIL) $(PTY_LIB) |
| 32 |
|
| 33 |
check_PROGRAMS = localhost readutmp runtime-ipv6 test-snprintf waitdaemon |
| 34 |
|
| 35 |
localhost_LDADD = $(LDADD) $(LIBSOCKET) $(LIBINTL) $(GETADDRINFO_LIB) |
| 36 |
readutmp_LDADD = $(iu_LIBRARIES) $(READUTMP_LIB) |
| 37 |
runtime_ipv6_LDADD = $(LDADD) $(LIBSOCKET) $(LIBINTL) $(GETADDRINFO_LIB) |
| 38 |
|
| 39 |
dist_check_SCRIPTS = |
| 40 |
|
| 41 |
if ENABLE_inetd |
| 42 |
check_PROGRAMS += addrpeek tcpget |
| 43 |
addrpeek_LDADD = $(LDADD) $(LIBSOCKET) $(LIBINTL) $(GETADDRINFO_LIB) |
| 44 |
tcpget_LDADD = $(LDADD) $(LIBSOCKET) $(LIBINTL) $(GETADDRINFO_LIB) |
| 45 |
endif |
| 46 |
|
| 47 |
if ENABLE_libls |
| 48 |
noinst_PROGRAMS += ls |
| 49 |
ls_LDADD = $(LIBLS) $(iu_LIBRARIES) |
| 50 |
dist_check_SCRIPTS += libls.sh |
| 51 |
endif |
| 52 |
|
| 53 |
if ENABLE_ping |
| 54 |
dist_check_SCRIPTS += ping-localhost.sh |
| 55 |
endif |
| 56 |
if ENABLE_traceroute |
| 57 |
dist_check_SCRIPTS += traceroute-localhost.sh |
| 58 |
endif |
| 59 |
if ENABLE_tftpd |
| 60 |
dist_check_SCRIPTS += tftp-regressions.sh |
| 61 |
endif |
| 62 |
if ENABLE_inetd |
| 63 |
if ENABLE_tftpd |
| 64 |
if ENABLE_tftp |
| 65 |
dist_check_SCRIPTS += tftp.sh |
| 66 |
endif |
| 67 |
endif |
| 68 |
endif |
| 69 |
if ENABLE_logger |
| 70 |
if ENABLE_syslogd |
| 71 |
dist_check_SCRIPTS += syslogd.sh |
| 72 |
endif |
| 73 |
endif |
| 74 |
|
| 75 |
if ENABLE_ftp |
| 76 |
dist_check_SCRIPTS += ftp-parser.sh ftp-regressions.sh |
| 77 |
endif |
| 78 |
|
| 79 |
if ENABLE_inetd |
| 80 |
if ENABLE_ftp |
| 81 |
if ENABLE_ftpd |
| 82 |
dist_check_SCRIPTS += ftp-localhost.sh |
| 83 |
endif |
| 84 |
endif |
| 85 |
endif |
| 86 |
|
| 87 |
if ENABLE_inetd |
| 88 |
if ENABLE_telnet |
| 89 |
dist_check_SCRIPTS += inetd.sh telnet-localhost.sh |
| 90 |
endif |
| 91 |
endif |
| 92 |
|
| 93 |
if ENABLE_hostname |
| 94 |
dist_check_SCRIPTS += hostname.sh |
| 95 |
endif |
| 96 |
|
| 97 |
if ENABLE_dnsdomainname |
| 98 |
dist_check_SCRIPTS += dnsdomainname.sh |
| 99 |
endif |
| 100 |
|
| 101 |
if ENABLE_ifconfig |
| 102 |
dist_check_SCRIPTS += ifconfig.sh |
| 103 |
endif |
| 104 |
|
| 105 |
TESTS = localhost test-snprintf waitdaemon $(dist_check_SCRIPTS) |
| 106 |
|
| 107 |
TESTS_ENVIRONMENT = EXEEXT=$(EXEEXT) |
| 108 |
|
| 109 |
BUILT_SOURCES = tools.sh |
| 110 |
|
| 111 |
CLEANFILES = tools.sh |
| 112 |
|
| 113 |
tools_subst = sed -e 's,[@]GREP[@],$(GREP),g' \ |
| 114 |
-e 's,[@]EGREP[@],$(EGREP),g' \ |
| 115 |
-e 's,[@]FGREP[@],$(FGREP),g' \ |
| 116 |
-e 's,[@]SED[@],$(SED),g' \ |
| 117 |
-e 's,[@]DD[@],$(DD),g' \ |
| 118 |
-e 's,[@]MKTEMP[@],$(MKTEMP),g' \ |
| 119 |
-e 's,[@]NETSTAT[@],$(NETSTAT),g' \ |
| 120 |
-e 's,[@]TARGET[@],$(TARGET),g' \ |
| 121 |
-e 's,[@]TARGET6[@],$(TARGET6),g' \ |
| 122 |
-e 's,[@]TEST_IPV4[@],$(TEST_IPV4),g' \ |
| 123 |
-e 's,[@]TEST_IPV6[@],$(TEST_IPV6),g' |
| 124 |
|
| 125 |
tools.sh: tools.sh.in Makefile |
| 126 |
$(tools_subst) < $(srcdir)/tools.sh.in > $@ |