Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 1 | # Makefile for busybox |
| 2 | # |
| 3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> |
| 4 | # |
Denys Vlasenko | 0ef64bd | 2010-08-16 20:14:46 +0200 | [diff] [blame] | 5 | # Licensed under GPLv2, see file LICENSE in this source tree. |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 6 | |
Denys Vlasenko | 5c296de | 2010-07-03 14:28:35 +0200 | [diff] [blame] | 7 | libbb/appletlib.o: include/usage_compressed.h |
| 8 | |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 9 | lib-y:= |
| 10 | |
Denys Vlasenko | d70e0e9 | 2010-06-08 12:15:11 +0200 | [diff] [blame] | 11 | INSERT |
| 12 | |
Denis Vlasenko | d62fd84 | 2007-10-07 20:46:34 +0000 | [diff] [blame] | 13 | lib-y += appletlib.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 14 | lib-y += ask_confirmation.o |
| 15 | lib-y += bb_askpass.o |
Denys Vlasenko | 9ff50b8 | 2010-10-18 11:40:26 +0200 | [diff] [blame] | 16 | lib-y += bb_bswap_64.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 17 | lib-y += bb_do_delay.o |
| 18 | lib-y += bb_pwd.o |
Denis Vlasenko | fb29038 | 2008-03-02 12:51:26 +0000 | [diff] [blame] | 19 | lib-y += bb_qsort.o |
Denys Vlasenko | 4813a51 | 2009-06-15 09:50:54 +0200 | [diff] [blame] | 20 | #lib-y += bb_strtod.o |
Denis Vlasenko | d686a04 | 2006-11-27 14:43:21 +0000 | [diff] [blame] | 21 | lib-y += bb_strtonum.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 22 | lib-y += change_identity.o |
| 23 | lib-y += chomp.o |
| 24 | lib-y += compare_string_array.o |
| 25 | lib-y += concat_path_file.o |
| 26 | lib-y += concat_subpath_file.o |
| 27 | lib-y += copy_file.o |
| 28 | lib-y += copyfd.o |
| 29 | lib-y += crc32.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 30 | lib-y += default_error_retval.o |
| 31 | lib-y += device_open.o |
| 32 | lib-y += dump.o |
Denys Vlasenko | e765b5a | 2014-05-02 17:15:58 +0200 | [diff] [blame] | 33 | lib-y += executable.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 34 | lib-y += fclose_nonstdin.o |
| 35 | lib-y += fflush_stdout_and_exit.o |
| 36 | lib-y += fgets_str.o |
| 37 | lib-y += find_pid_by_name.o |
| 38 | lib-y += find_root_device.o |
| 39 | lib-y += full_write.o |
| 40 | lib-y += get_console.o |
| 41 | lib-y += get_last_path_component.o |
| 42 | lib-y += get_line_from_file.o |
| 43 | lib-y += getopt32.o |
Denis Vlasenko | 5014dad | 2008-02-27 11:54:59 +0000 | [diff] [blame] | 44 | lib-y += getpty.o |
Denys Vlasenko | 40e7d25 | 2010-02-01 23:48:27 +0100 | [diff] [blame] | 45 | lib-y += get_volsize.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 46 | lib-y += herror_msg.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 47 | lib-y += human_readable.o |
| 48 | lib-y += inet_common.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 49 | lib-y += inode_hash.o |
| 50 | lib-y += isdirectory.o |
| 51 | lib-y += kernel_version.o |
| 52 | lib-y += last_char_is.o |
Denis Vlasenko | 5d89fba | 2008-04-22 00:08:27 +0000 | [diff] [blame] | 53 | lib-y += lineedit.o lineedit_ptr_hack.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 54 | lib-y += llist.o |
| 55 | lib-y += login.o |
| 56 | lib-y += make_directory.o |
| 57 | lib-y += makedev.o |
Denys Vlasenko | b5aa1d9 | 2010-10-18 13:47:47 +0200 | [diff] [blame] | 58 | lib-y += hash_md5_sha.o |
| 59 | # Alternative (disabled) MD5 implementation |
Denys Vlasenko | 06f719f | 2010-10-18 10:38:18 +0200 | [diff] [blame] | 60 | #lib-y += hash_md5prime.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 61 | lib-y += messages.o |
| 62 | lib-y += mode_string.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 63 | lib-y += parse_mode.o |
| 64 | lib-y += perror_msg.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 65 | lib-y += perror_nomsg.o |
| 66 | lib-y += perror_nomsg_and_die.o |
Denis Vlasenko | 10457b9 | 2007-03-27 22:01:31 +0000 | [diff] [blame] | 67 | lib-y += pidfile.o |
Dan Fandrich | 21a542d | 2009-10-27 11:05:00 +0100 | [diff] [blame] | 68 | lib-y += platform.o |
Denis Vlasenko | d3c042f | 2007-12-30 01:59:53 +0000 | [diff] [blame] | 69 | lib-y += printable.o |
Denys Vlasenko | d8528b8 | 2010-01-31 05:15:38 +0100 | [diff] [blame] | 70 | lib-y += printable_string.o |
Denis Vlasenko | 53354ac | 2008-06-07 15:10:29 +0000 | [diff] [blame] | 71 | lib-y += print_flags.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 72 | lib-y += process_escape_sequence.o |
| 73 | lib-y += procps.o |
Magnus Damm | f591499 | 2009-11-08 16:34:43 +0100 | [diff] [blame] | 74 | lib-y += progress.o |
Denis Vlasenko | 574f2f4 | 2008-02-27 18:41:59 +0000 | [diff] [blame] | 75 | lib-y += ptr_to_globals.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 76 | lib-y += read.o |
Denys Vlasenko | 19ced5c | 2010-06-06 21:53:09 +0200 | [diff] [blame] | 77 | lib-y += read_printf.o |
Denis Vlasenko | 0112ff5 | 2008-10-25 23:23:00 +0000 | [diff] [blame] | 78 | lib-y += read_key.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 79 | lib-y += recursive_action.o |
| 80 | lib-y += remove_file.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 81 | lib-y += run_shell.o |
Denis Vlasenko | 6f1713f | 2008-02-25 23:23:58 +0000 | [diff] [blame] | 82 | lib-y += safe_gethostname.o |
Denis Vlasenko | 5d61e71 | 2007-09-27 10:09:59 +0000 | [diff] [blame] | 83 | lib-y += safe_poll.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 84 | lib-y += safe_strncpy.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 85 | lib-y += safe_write.o |
Kaarle Ritvanen | 517a82c | 2016-01-02 00:20:39 +0200 | [diff] [blame] | 86 | lib-y += securetty.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 87 | lib-y += setup_environment.o |
Denis Vlasenko | 25591c3 | 2008-02-16 22:58:56 +0000 | [diff] [blame] | 88 | lib-y += signals.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 89 | lib-y += simplify_path.o |
Denys Vlasenko | e992bae | 2009-11-28 15:18:53 +0100 | [diff] [blame] | 90 | lib-y += single_argv.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 91 | lib-y += skip_whitespace.o |
| 92 | lib-y += speed_table.o |
Bernhard Reutner-Fischer | 7e8a53a | 2007-04-10 09:37:29 +0000 | [diff] [blame] | 93 | lib-y += str_tolower.o |
Bernhard Reutner-Fischer | 1728229 | 2008-05-28 14:19:27 +0000 | [diff] [blame] | 94 | lib-y += strrstr.o |
Denys Vlasenko | f92f1d0 | 2014-06-22 13:54:40 +0200 | [diff] [blame] | 95 | lib-y += sysconf.o |
Denis Vlasenko | 459be35 | 2007-06-17 19:09:05 +0000 | [diff] [blame] | 96 | lib-y += time.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 97 | lib-y += trim.o |
| 98 | lib-y += u_signal_names.o |
| 99 | lib-y += uuencode.o |
| 100 | lib-y += vdprintf.o |
| 101 | lib-y += verror_msg.o |
| 102 | lib-y += vfork_daemon_rexec.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 103 | lib-y += warn_ignoring_args.o |
| 104 | lib-y += wfopen.o |
| 105 | lib-y += wfopen_input.o |
Bernhard Reutner-Fischer | ae4342c | 2008-05-19 08:18:50 +0000 | [diff] [blame] | 106 | lib-y += write.o |
Denis Vlasenko | ed836cd | 2006-11-25 14:44:13 +0000 | [diff] [blame] | 107 | lib-y += xatonum.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 108 | lib-y += xconnect.o |
| 109 | lib-y += xfuncs.o |
Denis Vlasenko | b12b1c8 | 2008-04-09 00:33:23 +0000 | [diff] [blame] | 110 | lib-y += xfuncs_printf.o |
Denis Vlasenko | 468aea2 | 2008-04-01 14:47:57 +0000 | [diff] [blame] | 111 | lib-y += xfunc_die.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 112 | lib-y += xgetcwd.o |
| 113 | lib-y += xgethostbyname.o |
Denis Vlasenko | 0b35470 | 2006-11-24 14:54:27 +0000 | [diff] [blame] | 114 | lib-y += xreadlink.o |
Denis Vlasenko | deeed59 | 2008-07-08 05:14:36 +0000 | [diff] [blame] | 115 | lib-y += xrealloc_vector.o |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 116 | |
Chris Rees | 6b1ce45 | 2011-01-24 17:10:02 +0100 | [diff] [blame] | 117 | lib-$(CONFIG_PLATFORM_LINUX) += match_fstype.o |
| 118 | |
Denys Vlasenko | 37f5bef | 2010-04-05 03:18:40 +0200 | [diff] [blame] | 119 | lib-$(CONFIG_FEATURE_UTMP) += utmp.o |
| 120 | |
Denys Vlasenko | 7dd0ce4 | 2009-07-15 18:27:47 +0200 | [diff] [blame] | 121 | # A mix of optimizations (why build stuff we know won't be used) |
| 122 | # and objects which may fail to build (SELinux on selinux-less system) |
| 123 | lib-$(CONFIG_SELINUX) += selinux_common.o |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 124 | lib-$(CONFIG_FEATURE_MTAB_SUPPORT) += mtab.o |
Denys Vlasenko | 19158a8 | 2010-03-26 14:06:56 +0100 | [diff] [blame] | 125 | lib-$(CONFIG_UNICODE_SUPPORT) += unicode.o |
Denys Vlasenko | 7dd0ce4 | 2009-07-15 18:27:47 +0200 | [diff] [blame] | 126 | lib-$(CONFIG_FEATURE_CHECK_NAMES) += die_if_bad_username.o |
| 127 | |
Denys Vlasenko | 4dc35fb | 2011-07-08 04:41:38 +0200 | [diff] [blame] | 128 | lib-$(CONFIG_NC) += udp_io.o |
| 129 | lib-$(CONFIG_DNSD) += udp_io.o |
| 130 | lib-$(CONFIG_NTPD) += udp_io.o |
| 131 | lib-$(CONFIG_TFTP) += udp_io.o |
| 132 | lib-$(CONFIG_TFTPD) += udp_io.o |
| 133 | lib-$(CONFIG_TCPSVD) += udp_io.o |
| 134 | lib-$(CONFIG_UDPSVD) += udp_io.o |
| 135 | lib-$(CONFIG_TRACEROUTE) += udp_io.o |
Denys Vlasenko | 548620c | 2016-12-08 12:24:48 +0100 | [diff] [blame] | 136 | lib-$(CONFIG_TRACEROUTE6) += udp_io.o |
Denys Vlasenko | 4dc35fb | 2011-07-08 04:41:38 +0200 | [diff] [blame] | 137 | |
Denys Vlasenko | 7dd0ce4 | 2009-07-15 18:27:47 +0200 | [diff] [blame] | 138 | lib-$(CONFIG_LOSETUP) += loop.o |
| 139 | lib-$(CONFIG_FEATURE_MOUNT_LOOP) += loop.o |
| 140 | |
Denis Vlasenko | 829bbd3 | 2009-04-14 00:51:05 +0000 | [diff] [blame] | 141 | lib-$(CONFIG_ADDGROUP) += update_passwd.o |
| 142 | lib-$(CONFIG_ADDUSER) += update_passwd.o |
Denis Vlasenko | 5dcb43a | 2009-04-15 02:13:14 +0000 | [diff] [blame] | 143 | lib-$(CONFIG_DELGROUP) += update_passwd.o |
Denis Vlasenko | 829bbd3 | 2009-04-14 00:51:05 +0000 | [diff] [blame] | 144 | lib-$(CONFIG_DELUSER) += update_passwd.o |
Denys Vlasenko | 7dd0ce4 | 2009-07-15 18:27:47 +0200 | [diff] [blame] | 145 | |
Denys Vlasenko | ac5d324 | 2016-12-10 20:57:00 +0100 | [diff] [blame] | 146 | lib-$(CONFIG_FTPD) += pw_encrypt.o correct_password.o |
Dan Fandrich | 2f57691 | 2011-06-03 20:28:14 +0200 | [diff] [blame] | 147 | lib-$(CONFIG_PASSWD) += pw_encrypt.o update_passwd.o obscure.o |
Denis Vlasenko | d1a84a2 | 2008-12-07 01:16:34 +0000 | [diff] [blame] | 148 | lib-$(CONFIG_CHPASSWD) += pw_encrypt.o update_passwd.o |
| 149 | lib-$(CONFIG_CRYPTPW) += pw_encrypt.o |
Denys Vlasenko | bb0bf28 | 2016-06-19 21:54:04 +0200 | [diff] [blame] | 150 | lib-$(CONFIG_MKPASSWD) += pw_encrypt.o |
Denys Vlasenko | 198b02f | 2013-12-31 23:22:36 +0100 | [diff] [blame] | 151 | lib-$(CONFIG_SULOGIN) += pw_encrypt.o correct_password.o |
Denis Vlasenko | cc3f20b | 2008-06-23 22:31:52 +0000 | [diff] [blame] | 152 | lib-$(CONFIG_VLOCK) += pw_encrypt.o correct_password.o |
| 153 | lib-$(CONFIG_SU) += pw_encrypt.o correct_password.o |
| 154 | lib-$(CONFIG_LOGIN) += pw_encrypt.o correct_password.o |
Denys Vlasenko | 7dd0ce4 | 2009-07-15 18:27:47 +0200 | [diff] [blame] | 155 | lib-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) += pw_encrypt.o |
Morten Kvistgaard | feac9b6 | 2014-08-05 21:57:18 +0200 | [diff] [blame] | 156 | lib-$(CONFIG_FEATURE_FTP_AUTHENTICATION) += pw_encrypt.o |
Denys Vlasenko | 7dd0ce4 | 2009-07-15 18:27:47 +0200 | [diff] [blame] | 157 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 158 | lib-$(CONFIG_DF) += find_mount_point.o |
Denis Vlasenko | 6a5dc5d | 2006-12-30 18:42:29 +0000 | [diff] [blame] | 159 | lib-$(CONFIG_MKFS_MINIX) += find_mount_point.o |
Denys Vlasenko | 31e2e7b | 2009-12-12 02:42:35 +0100 | [diff] [blame] | 160 | lib-$(CONFIG_MKFS_EXT2) += find_mount_point.o |
Denys Vlasenko | 548620c | 2016-12-08 12:24:48 +0100 | [diff] [blame] | 161 | lib-$(CONFIG_MKE2FS) += find_mount_point.o |
Denys Vlasenko | 31e2e7b | 2009-12-12 02:42:35 +0100 | [diff] [blame] | 162 | lib-$(CONFIG_MKFS_REISER) += find_mount_point.o |
Denys Vlasenko | 7dd0ce4 | 2009-07-15 18:27:47 +0200 | [diff] [blame] | 163 | lib-$(CONFIG_FSCK_MINIX) += find_mount_point.o |
Denys Vlasenko | 1315c30 | 2009-12-11 15:01:54 +0100 | [diff] [blame] | 164 | lib-$(CONFIG_MOUNT) += find_mount_point.o |
Denys Vlasenko | 7dd0ce4 | 2009-07-15 18:27:47 +0200 | [diff] [blame] | 165 | |
Mike Frysinger | 6b160e4 | 2008-02-15 02:27:19 +0000 | [diff] [blame] | 166 | lib-$(CONFIG_HWCLOCK) += rtc.o |
| 167 | lib-$(CONFIG_RTCWAKE) += rtc.o |
Denys Vlasenko | 42a8fd0 | 2009-07-11 21:36:13 +0200 | [diff] [blame] | 168 | |
Denys Vlasenko | c9b9750 | 2010-08-16 02:49:21 +0200 | [diff] [blame] | 169 | lib-$(CONFIG_IOSTAT) += get_cpu_count.o |
| 170 | lib-$(CONFIG_MPSTAT) += get_cpu_count.o |
Denys Vlasenko | 26777aa | 2010-11-22 23:49:10 +0100 | [diff] [blame] | 171 | lib-$(CONFIG_POWERTOP) += get_cpu_count.o |
Denys Vlasenko | c9b9750 | 2010-08-16 02:49:21 +0200 | [diff] [blame] | 172 | |
Baruch Siach | e8f3633 | 2011-09-07 17:52:37 +0200 | [diff] [blame] | 173 | lib-$(CONFIG_PING) += inet_cksum.o |
Denys Vlasenko | 548620c | 2016-12-08 12:24:48 +0100 | [diff] [blame] | 174 | lib-$(CONFIG_PING6) += inet_cksum.o |
Baruch Siach | e8f3633 | 2011-09-07 17:52:37 +0200 | [diff] [blame] | 175 | lib-$(CONFIG_TRACEROUTE) += inet_cksum.o |
| 176 | lib-$(CONFIG_TRACEROUTE6) += inet_cksum.o |
| 177 | lib-$(CONFIG_UDHCPC) += inet_cksum.o |
Denys Vlasenko | 8cab667 | 2012-04-20 14:48:00 +0200 | [diff] [blame] | 178 | lib-$(CONFIG_UDHCPC6) += inet_cksum.o |
Baruch Siach | e8f3633 | 2011-09-07 17:52:37 +0200 | [diff] [blame] | 179 | lib-$(CONFIG_UDHCPD) += inet_cksum.o |
Denys Vlasenko | 9cc3d3a | 2016-12-23 02:42:26 +0100 | [diff] [blame] | 180 | lib-$(CONFIG_DHCPRELAY) += inet_cksum.o |
Baruch Siach | e8f3633 | 2011-09-07 17:52:37 +0200 | [diff] [blame] | 181 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 182 | # We shouldn't build xregcomp.c if we don't need it - this ensures we don't |
| 183 | # require regex.h to be in the include dir even if we don't need it thereby |
| 184 | # allowing us to build busybox even if uclibc regex support is disabled. |
| 185 | |
| 186 | lib-$(CONFIG_AWK) += xregcomp.o |
| 187 | lib-$(CONFIG_SED) += xregcomp.o |
Denis Vlasenko | 666da5e | 2006-12-26 18:17:42 +0000 | [diff] [blame] | 188 | lib-$(CONFIG_GREP) += xregcomp.o |
Denys Vlasenko | 548620c | 2016-12-08 12:24:48 +0100 | [diff] [blame] | 189 | lib-$(CONFIG_EGREP) += xregcomp.o |
| 190 | lib-$(CONFIG_FGREP) += xregcomp.o |
Denis Vlasenko | d46e6d1 | 2007-05-17 12:58:30 +0000 | [diff] [blame] | 191 | lib-$(CONFIG_EXPR) += xregcomp.o |
Denis Vlasenko | 666da5e | 2006-12-26 18:17:42 +0000 | [diff] [blame] | 192 | lib-$(CONFIG_MDEV) += xregcomp.o |
Denis Vlasenko | 4a64c33 | 2006-12-30 22:03:02 +0000 | [diff] [blame] | 193 | lib-$(CONFIG_LESS) += xregcomp.o |
Denis Vlasenko | aff3a30 | 2007-10-16 23:00:50 +0000 | [diff] [blame] | 194 | lib-$(CONFIG_PGREP) += xregcomp.o |
Denis Vlasenko | 16e74b7 | 2007-10-17 09:59:01 +0000 | [diff] [blame] | 195 | lib-$(CONFIG_PKILL) += xregcomp.o |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 196 | lib-$(CONFIG_DEVFSD) += xregcomp.o |
Denis Vlasenko | 4b9b0ce | 2007-07-01 17:35:17 +0000 | [diff] [blame] | 197 | lib-$(CONFIG_FEATURE_FIND_REGEX) += xregcomp.o |
Michel Stam | d3fabf8 | 2014-11-04 12:19:04 +0100 | [diff] [blame] | 198 | |
| 199 | # Add the experimental logging functionality, only used by zcip |
| 200 | lib-$(CONFIG_ZCIP) += logenv.o |