2006-10-05 15:47:08 +05:30
|
|
|
# Makefile for busybox
|
|
|
|
#
|
|
|
|
# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
|
|
|
|
#
|
2010-08-16 23:44:46 +05:30
|
|
|
# Licensed under GPLv2, see file LICENSE in this source tree.
|
2006-10-05 15:47:08 +05:30
|
|
|
|
2010-07-03 17:58:35 +05:30
|
|
|
libbb/appletlib.o: include/usage_compressed.h
|
|
|
|
|
2006-11-24 20:24:27 +05:30
|
|
|
lib-y:=
|
|
|
|
|
2010-06-08 15:45:11 +05:30
|
|
|
INSERT
|
|
|
|
|
2007-10-08 02:16:34 +05:30
|
|
|
lib-y += appletlib.o
|
2006-11-24 20:24:27 +05:30
|
|
|
lib-y += ask_confirmation.o
|
|
|
|
lib-y += bb_askpass.o
|
2010-10-18 15:10:26 +05:30
|
|
|
lib-y += bb_bswap_64.o
|
2006-11-24 20:24:27 +05:30
|
|
|
lib-y += bb_do_delay.o
|
|
|
|
lib-y += bb_pwd.o
|
2008-03-02 18:21:26 +05:30
|
|
|
lib-y += bb_qsort.o
|
2009-06-15 13:20:54 +05:30
|
|
|
#lib-y += bb_strtod.o
|
2006-11-27 20:13:21 +05:30
|
|
|
lib-y += bb_strtonum.o
|
2006-11-24 20:24:27 +05:30
|
|
|
lib-y += change_identity.o
|
|
|
|
lib-y += chomp.o
|
|
|
|
lib-y += compare_string_array.o
|
|
|
|
lib-y += concat_path_file.o
|
|
|
|
lib-y += concat_subpath_file.o
|
|
|
|
lib-y += copy_file.o
|
|
|
|
lib-y += copyfd.o
|
|
|
|
lib-y += crc32.o
|
|
|
|
lib-y += default_error_retval.o
|
|
|
|
lib-y += device_open.o
|
|
|
|
lib-y += dump.o
|
2014-05-02 20:45:58 +05:30
|
|
|
lib-y += executable.o
|
2006-11-24 20:24:27 +05:30
|
|
|
lib-y += fclose_nonstdin.o
|
|
|
|
lib-y += fflush_stdout_and_exit.o
|
|
|
|
lib-y += fgets_str.o
|
|
|
|
lib-y += find_pid_by_name.o
|
|
|
|
lib-y += find_root_device.o
|
|
|
|
lib-y += full_write.o
|
|
|
|
lib-y += get_console.o
|
|
|
|
lib-y += get_last_path_component.o
|
|
|
|
lib-y += get_line_from_file.o
|
|
|
|
lib-y += getopt32.o
|
2008-02-27 17:24:59 +05:30
|
|
|
lib-y += getpty.o
|
2010-02-02 04:18:27 +05:30
|
|
|
lib-y += get_volsize.o
|
2006-11-24 20:24:27 +05:30
|
|
|
lib-y += herror_msg.o
|
|
|
|
lib-y += human_readable.o
|
|
|
|
lib-y += inet_common.o
|
|
|
|
lib-y += info_msg.o
|
|
|
|
lib-y += inode_hash.o
|
|
|
|
lib-y += isdirectory.o
|
|
|
|
lib-y += kernel_version.o
|
|
|
|
lib-y += last_char_is.o
|
2008-04-22 05:38:27 +05:30
|
|
|
lib-y += lineedit.o lineedit_ptr_hack.o
|
2006-11-24 20:24:27 +05:30
|
|
|
lib-y += llist.o
|
|
|
|
lib-y += login.o
|
|
|
|
lib-y += make_directory.o
|
|
|
|
lib-y += makedev.o
|
2010-10-18 17:17:47 +05:30
|
|
|
lib-y += hash_md5_sha.o
|
|
|
|
# Alternative (disabled) MD5 implementation
|
2010-10-18 14:08:18 +05:30
|
|
|
#lib-y += hash_md5prime.o
|
2006-11-24 20:24:27 +05:30
|
|
|
lib-y += messages.o
|
|
|
|
lib-y += mode_string.o
|
|
|
|
lib-y += parse_mode.o
|
|
|
|
lib-y += perror_msg.o
|
|
|
|
lib-y += perror_nomsg.o
|
|
|
|
lib-y += perror_nomsg_and_die.o
|
2007-03-28 03:31:31 +05:30
|
|
|
lib-y += pidfile.o
|
2009-10-27 15:35:00 +05:30
|
|
|
lib-y += platform.o
|
2007-12-30 07:29:53 +05:30
|
|
|
lib-y += printable.o
|
2010-01-31 09:45:38 +05:30
|
|
|
lib-y += printable_string.o
|
2008-06-07 20:40:29 +05:30
|
|
|
lib-y += print_flags.o
|
2006-11-24 20:24:27 +05:30
|
|
|
lib-y += process_escape_sequence.o
|
|
|
|
lib-y += procps.o
|
2009-11-08 21:04:43 +05:30
|
|
|
lib-y += progress.o
|
2008-02-28 00:11:59 +05:30
|
|
|
lib-y += ptr_to_globals.o
|
2006-11-24 20:24:27 +05:30
|
|
|
lib-y += read.o
|
2010-06-07 01:23:09 +05:30
|
|
|
lib-y += read_printf.o
|
2008-10-26 04:53:00 +05:30
|
|
|
lib-y += read_key.o
|
2006-11-24 20:24:27 +05:30
|
|
|
lib-y += recursive_action.o
|
|
|
|
lib-y += remove_file.o
|
|
|
|
lib-y += run_shell.o
|
2008-02-26 04:53:58 +05:30
|
|
|
lib-y += safe_gethostname.o
|
2007-09-27 15:39:59 +05:30
|
|
|
lib-y += safe_poll.o
|
2006-11-24 20:24:27 +05:30
|
|
|
lib-y += safe_strncpy.o
|
|
|
|
lib-y += safe_write.o
|
|
|
|
lib-y += setup_environment.o
|
2008-02-17 04:28:56 +05:30
|
|
|
lib-y += signals.o
|
2006-11-24 20:24:27 +05:30
|
|
|
lib-y += simplify_path.o
|
2009-11-28 19:48:53 +05:30
|
|
|
lib-y += single_argv.o
|
2006-11-24 20:24:27 +05:30
|
|
|
lib-y += skip_whitespace.o
|
|
|
|
lib-y += speed_table.o
|
2007-04-10 15:07:29 +05:30
|
|
|
lib-y += str_tolower.o
|
2008-05-28 19:49:27 +05:30
|
|
|
lib-y += strrstr.o
|
2014-06-22 17:24:40 +05:30
|
|
|
lib-y += sysconf.o
|
2007-06-18 00:39:05 +05:30
|
|
|
lib-y += time.o
|
2006-11-24 20:24:27 +05:30
|
|
|
lib-y += trim.o
|
|
|
|
lib-y += u_signal_names.o
|
|
|
|
lib-y += uuencode.o
|
|
|
|
lib-y += vdprintf.o
|
|
|
|
lib-y += verror_msg.o
|
|
|
|
lib-y += vfork_daemon_rexec.o
|
|
|
|
lib-y += warn_ignoring_args.o
|
|
|
|
lib-y += wfopen.o
|
|
|
|
lib-y += wfopen_input.o
|
2008-05-19 13:48:50 +05:30
|
|
|
lib-y += write.o
|
2006-11-25 20:14:13 +05:30
|
|
|
lib-y += xatonum.o
|
2006-11-24 20:24:27 +05:30
|
|
|
lib-y += xconnect.o
|
|
|
|
lib-y += xfuncs.o
|
2008-04-09 06:03:23 +05:30
|
|
|
lib-y += xfuncs_printf.o
|
2008-04-01 20:17:57 +05:30
|
|
|
lib-y += xfunc_die.o
|
2006-11-24 20:24:27 +05:30
|
|
|
lib-y += xgetcwd.o
|
|
|
|
lib-y += xgethostbyname.o
|
|
|
|
lib-y += xreadlink.o
|
2008-07-08 10:44:36 +05:30
|
|
|
lib-y += xrealloc_vector.o
|
2006-10-05 15:47:08 +05:30
|
|
|
|
2011-01-24 21:40:02 +05:30
|
|
|
lib-$(CONFIG_PLATFORM_LINUX) += match_fstype.o
|
|
|
|
|
2010-04-05 06:48:40 +05:30
|
|
|
lib-$(CONFIG_FEATURE_UTMP) += utmp.o
|
|
|
|
|
2009-07-15 21:57:47 +05:30
|
|
|
# A mix of optimizations (why build stuff we know won't be used)
|
|
|
|
# and objects which may fail to build (SELinux on selinux-less system)
|
|
|
|
lib-$(CONFIG_SELINUX) += selinux_common.o
|
2006-10-05 15:47:08 +05:30
|
|
|
lib-$(CONFIG_FEATURE_MTAB_SUPPORT) += mtab.o
|
2010-03-26 18:36:56 +05:30
|
|
|
lib-$(CONFIG_UNICODE_SUPPORT) += unicode.o
|
2009-07-15 21:57:47 +05:30
|
|
|
lib-$(CONFIG_FEATURE_CHECK_NAMES) += die_if_bad_username.o
|
|
|
|
|
2011-07-08 08:11:38 +05:30
|
|
|
lib-$(CONFIG_NC) += udp_io.o
|
|
|
|
lib-$(CONFIG_DNSD) += udp_io.o
|
|
|
|
lib-$(CONFIG_NTPD) += udp_io.o
|
|
|
|
lib-$(CONFIG_TFTP) += udp_io.o
|
|
|
|
lib-$(CONFIG_TFTPD) += udp_io.o
|
|
|
|
lib-$(CONFIG_TCPSVD) += udp_io.o
|
|
|
|
lib-$(CONFIG_UDPSVD) += udp_io.o
|
|
|
|
lib-$(CONFIG_TRACEROUTE) += udp_io.o
|
|
|
|
|
2009-07-15 21:57:47 +05:30
|
|
|
lib-$(CONFIG_LOSETUP) += loop.o
|
|
|
|
lib-$(CONFIG_FEATURE_MOUNT_LOOP) += loop.o
|
|
|
|
|
2009-04-14 06:21:05 +05:30
|
|
|
lib-$(CONFIG_ADDGROUP) += update_passwd.o
|
|
|
|
lib-$(CONFIG_ADDUSER) += update_passwd.o
|
2009-04-15 07:43:14 +05:30
|
|
|
lib-$(CONFIG_DELGROUP) += update_passwd.o
|
2009-04-14 06:21:05 +05:30
|
|
|
lib-$(CONFIG_DELUSER) += update_passwd.o
|
2009-07-15 21:57:47 +05:30
|
|
|
|
2014-12-23 00:07:05 +05:30
|
|
|
lib-$(CONFIG_FTPD) += correct_password.o
|
2011-06-03 23:58:14 +05:30
|
|
|
lib-$(CONFIG_PASSWD) += pw_encrypt.o update_passwd.o obscure.o
|
2008-12-07 06:46:34 +05:30
|
|
|
lib-$(CONFIG_CHPASSWD) += pw_encrypt.o update_passwd.o
|
|
|
|
lib-$(CONFIG_CRYPTPW) += pw_encrypt.o
|
2014-01-01 03:52:36 +05:30
|
|
|
lib-$(CONFIG_SULOGIN) += pw_encrypt.o correct_password.o
|
2008-06-24 04:01:52 +05:30
|
|
|
lib-$(CONFIG_VLOCK) += pw_encrypt.o correct_password.o
|
|
|
|
lib-$(CONFIG_SU) += pw_encrypt.o correct_password.o
|
|
|
|
lib-$(CONFIG_LOGIN) += pw_encrypt.o correct_password.o
|
2009-07-15 21:57:47 +05:30
|
|
|
lib-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) += pw_encrypt.o
|
2014-08-06 01:27:18 +05:30
|
|
|
lib-$(CONFIG_FEATURE_FTP_AUTHENTICATION) += pw_encrypt.o
|
2009-07-15 21:57:47 +05:30
|
|
|
|
2006-10-05 15:47:08 +05:30
|
|
|
lib-$(CONFIG_DF) += find_mount_point.o
|
2006-12-31 00:12:29 +05:30
|
|
|
lib-$(CONFIG_MKFS_MINIX) += find_mount_point.o
|
2009-12-12 07:12:35 +05:30
|
|
|
lib-$(CONFIG_MKFS_EXT2) += find_mount_point.o
|
|
|
|
lib-$(CONFIG_MKFS_REISER) += find_mount_point.o
|
2009-07-15 21:57:47 +05:30
|
|
|
lib-$(CONFIG_FSCK_MINIX) += find_mount_point.o
|
2009-12-11 19:31:54 +05:30
|
|
|
lib-$(CONFIG_MOUNT) += find_mount_point.o
|
2009-07-15 21:57:47 +05:30
|
|
|
|
2008-02-15 07:57:19 +05:30
|
|
|
lib-$(CONFIG_HWCLOCK) += rtc.o
|
|
|
|
lib-$(CONFIG_RTCWAKE) += rtc.o
|
2009-07-12 01:06:13 +05:30
|
|
|
|
2010-08-16 06:19:21 +05:30
|
|
|
lib-$(CONFIG_IOSTAT) += get_cpu_count.o
|
|
|
|
lib-$(CONFIG_MPSTAT) += get_cpu_count.o
|
2010-11-23 04:19:10 +05:30
|
|
|
lib-$(CONFIG_POWERTOP) += get_cpu_count.o
|
2010-08-16 06:19:21 +05:30
|
|
|
|
2011-09-07 21:22:37 +05:30
|
|
|
lib-$(CONFIG_PING) += inet_cksum.o
|
|
|
|
lib-$(CONFIG_TRACEROUTE) += inet_cksum.o
|
|
|
|
lib-$(CONFIG_TRACEROUTE6) += inet_cksum.o
|
|
|
|
lib-$(CONFIG_UDHCPC) += inet_cksum.o
|
2012-04-20 18:18:00 +05:30
|
|
|
lib-$(CONFIG_UDHCPC6) += inet_cksum.o
|
2011-09-07 21:22:37 +05:30
|
|
|
lib-$(CONFIG_UDHCPD) += inet_cksum.o
|
|
|
|
|
2006-10-05 15:47:08 +05:30
|
|
|
# We shouldn't build xregcomp.c if we don't need it - this ensures we don't
|
|
|
|
# require regex.h to be in the include dir even if we don't need it thereby
|
|
|
|
# allowing us to build busybox even if uclibc regex support is disabled.
|
|
|
|
|
|
|
|
lib-$(CONFIG_AWK) += xregcomp.o
|
|
|
|
lib-$(CONFIG_SED) += xregcomp.o
|
2006-12-26 23:47:42 +05:30
|
|
|
lib-$(CONFIG_GREP) += xregcomp.o
|
2007-05-17 18:28:30 +05:30
|
|
|
lib-$(CONFIG_EXPR) += xregcomp.o
|
2006-12-26 23:47:42 +05:30
|
|
|
lib-$(CONFIG_MDEV) += xregcomp.o
|
2006-12-31 03:33:02 +05:30
|
|
|
lib-$(CONFIG_LESS) += xregcomp.o
|
2007-10-17 04:30:50 +05:30
|
|
|
lib-$(CONFIG_PGREP) += xregcomp.o
|
2007-10-17 15:29:01 +05:30
|
|
|
lib-$(CONFIG_PKILL) += xregcomp.o
|
2006-10-05 15:47:08 +05:30
|
|
|
lib-$(CONFIG_DEVFSD) += xregcomp.o
|
2007-07-01 23:05:17 +05:30
|
|
|
lib-$(CONFIG_FEATURE_FIND_REGEX) += xregcomp.o
|
2014-11-04 16:49:04 +05:30
|
|
|
|
|
|
|
# Add the experimental logging functionality, only used by zcip
|
|
|
|
lib-$(CONFIG_ZCIP) += logenv.o
|