1# Makefile for busybox 2# 3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> 4# 5# Licensed under GPLv2, see file LICENSE in this source tree. 6 7libbb/appletlib.o: include/usage_compressed.h 8 9lib-y:= 10 11INSERT 12 13lib-y += appletlib.o 14lib-y += ask_confirmation.o 15lib-y += bb_askpass.o 16lib-y += bb_bswap_64.o 17lib-y += bb_do_delay.o 18lib-y += bb_pwd.o 19lib-y += bb_qsort.o 20#lib-y += bb_strtod.o 21lib-y += bb_strtonum.o 22lib-y += change_identity.o 23lib-y += chomp.o 24lib-y += compare_string_array.o 25lib-y += concat_path_file.o 26lib-y += concat_subpath_file.o 27lib-y += const_hack.o 28lib-y += copy_file.o 29lib-y += copyfd.o 30lib-y += crc32.o 31lib-y += default_error_retval.o 32lib-y += device_open.o 33lib-y += dump.o 34lib-y += executable.o 35lib-y += fclose_nonstdin.o 36lib-y += fflush_stdout_and_exit.o 37lib-y += fgets_str.o 38lib-y += find_pid_by_name.o 39lib-y += find_root_device.o 40lib-y += full_write.o 41lib-y += get_console.o 42lib-y += get_last_path_component.o 43lib-y += get_line_from_file.o 44lib-y += getpty.o 45lib-y += get_volsize.o 46lib-y += herror_msg.o 47lib-y += human_readable.o 48lib-y += inet_common.o 49lib-y += inode_hash.o 50lib-y += isdirectory.o 51lib-y += kernel_version.o 52lib-y += last_char_is.o 53lib-y += lineedit.o lineedit_ptr_hack.o 54lib-y += llist.o 55lib-y += login.o 56lib-y += make_directory.o 57lib-y += makedev.o 58lib-y += hash_md5_sha.o 59# Alternative (disabled) MD5 implementation 60#lib-y += hash_md5prime.o 61lib-y += messages.o 62lib-y += mode_string.o 63lib-y += parse_mode.o 64lib-y += perror_msg.o 65lib-y += perror_nomsg.o 66lib-y += perror_nomsg_and_die.o 67lib-y += pidfile.o 68lib-y += platform.o 69lib-y += printable.o 70lib-y += printable_string.o 71lib-y += print_flags.o 72lib-y += process_escape_sequence.o 73lib-y += procps.o 74lib-y += progress.o 75lib-y += ptr_to_globals.o 76lib-y += read.o 77lib-y += read_printf.o 78lib-y += read_key.o 79lib-y += recursive_action.o 80lib-y += remove_file.o 81lib-y += run_shell.o 82lib-y += safe_gethostname.o 83lib-y += safe_poll.o 84lib-y += safe_strncpy.o 85lib-y += safe_write.o 86lib-y += securetty.o 87lib-y += setup_environment.o 88lib-y += signals.o 89lib-y += simplify_path.o 90lib-y += single_argv.o 91lib-y += skip_whitespace.o 92lib-y += speed_table.o 93lib-y += str_tolower.o 94lib-y += strrstr.o 95lib-y += sysconf.o 96lib-y += time.o 97lib-y += trim.o 98lib-y += u_signal_names.o 99lib-y += uuencode.o 100lib-y += verror_msg.o 101lib-y += vfork_daemon_rexec.o 102lib-y += warn_ignoring_args.o 103lib-y += wfopen.o 104lib-y += wfopen_input.o 105lib-y += write.o 106lib-y += xatonum.o 107lib-y += xconnect.o 108lib-y += xfuncs.o 109lib-y += xfuncs_printf.o 110lib-y += xfunc_die.o 111lib-y += xgetcwd.o 112lib-y += xgethostbyname.o 113lib-y += xreadlink.o 114lib-y += xrealloc_vector.o 115 116lib-$(CONFIG_MOUNT) += match_fstype.o 117lib-$(CONFIG_UMOUNT) += match_fstype.o 118 119lib-$(CONFIG_FEATURE_UTMP) += utmp.o 120 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) 123lib-$(CONFIG_SELINUX) += selinux_common.o 124lib-$(CONFIG_FEATURE_MTAB_SUPPORT) += mtab.o 125lib-$(CONFIG_UNICODE_SUPPORT) += unicode.o 126lib-$(CONFIG_FEATURE_CHECK_NAMES) += die_if_bad_username.o 127 128lib-$(CONFIG_NC) += udp_io.o 129lib-$(CONFIG_NETCAT) += udp_io.o 130lib-$(CONFIG_DNSD) += udp_io.o 131lib-$(CONFIG_NTPD) += udp_io.o 132lib-$(CONFIG_TFTP) += udp_io.o 133lib-$(CONFIG_TFTPD) += udp_io.o 134lib-$(CONFIG_TCPSVD) += udp_io.o 135lib-$(CONFIG_UDPSVD) += udp_io.o 136lib-$(CONFIG_TRACEROUTE) += udp_io.o 137lib-$(CONFIG_TRACEROUTE6) += udp_io.o 138 139lib-$(CONFIG_LOSETUP) += loop.o 140lib-$(CONFIG_FEATURE_MOUNT_LOOP) += loop.o 141 142lib-$(CONFIG_ADDGROUP) += update_passwd.o 143lib-$(CONFIG_ADDUSER) += update_passwd.o 144lib-$(CONFIG_DELGROUP) += update_passwd.o 145lib-$(CONFIG_DELUSER) += update_passwd.o 146 147lib-$(CONFIG_FTPD) += pw_encrypt.o correct_password.o 148lib-$(CONFIG_PASSWD) += pw_encrypt.o update_passwd.o 149lib-$(CONFIG_FEATURE_PASSWD_WEAK_CHECK) += obscure.o 150lib-$(CONFIG_CHPASSWD) += pw_encrypt.o update_passwd.o 151lib-$(CONFIG_CRYPTPW) += pw_encrypt.o 152lib-$(CONFIG_MKPASSWD) += pw_encrypt.o 153lib-$(CONFIG_SULOGIN) += pw_encrypt.o correct_password.o 154lib-$(CONFIG_VLOCK) += pw_encrypt.o correct_password.o 155lib-$(CONFIG_SU) += pw_encrypt.o correct_password.o 156lib-$(CONFIG_LOGIN) += pw_encrypt.o correct_password.o 157lib-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) += pw_encrypt.o 158lib-$(CONFIG_FEATURE_FTP_AUTHENTICATION) += pw_encrypt.o 159 160lib-$(CONFIG_DF) += find_mount_point.o 161lib-$(CONFIG_MKFS_MINIX) += find_mount_point.o 162lib-$(CONFIG_MKFS_EXT2) += find_mount_point.o 163lib-$(CONFIG_MKE2FS) += find_mount_point.o 164lib-$(CONFIG_MKFS_REISER) += find_mount_point.o 165lib-$(CONFIG_FSCK_MINIX) += find_mount_point.o 166lib-$(CONFIG_MOUNT) += find_mount_point.o 167 168lib-$(CONFIG_HWCLOCK) += rtc.o 169lib-$(CONFIG_RTCWAKE) += rtc.o 170 171lib-$(CONFIG_IOSTAT) += get_cpu_count.o 172lib-$(CONFIG_MPSTAT) += get_cpu_count.o 173lib-$(CONFIG_POWERTOP) += get_cpu_count.o 174 175lib-$(CONFIG_PING) += inet_cksum.o 176lib-$(CONFIG_PING6) += inet_cksum.o 177lib-$(CONFIG_TRACEROUTE) += inet_cksum.o 178lib-$(CONFIG_TRACEROUTE6) += inet_cksum.o 179lib-$(CONFIG_UDHCPC) += inet_cksum.o 180lib-$(CONFIG_UDHCPC6) += inet_cksum.o 181lib-$(CONFIG_UDHCPD) += inet_cksum.o 182lib-$(CONFIG_DHCPRELAY) += inet_cksum.o 183 184# We shouldn't build xregcomp.c if we don't need it - this ensures we don't 185# require regex.h to be in the include dir even if we don't need it thereby 186# allowing us to build busybox even if uclibc regex support is disabled. 187 188lib-$(CONFIG_AWK) += xregcomp.o 189lib-$(CONFIG_SED) += xregcomp.o 190lib-$(CONFIG_GREP) += xregcomp.o 191lib-$(CONFIG_EGREP) += xregcomp.o 192lib-$(CONFIG_FGREP) += xregcomp.o 193lib-$(CONFIG_EXPR) += xregcomp.o 194lib-$(CONFIG_MDEV) += xregcomp.o 195lib-$(CONFIG_LESS) += xregcomp.o 196lib-$(CONFIG_PGREP) += xregcomp.o 197lib-$(CONFIG_PKILL) += xregcomp.o 198lib-$(CONFIG_DEVFSD) += xregcomp.o 199lib-$(CONFIG_FEATURE_FIND_REGEX) += xregcomp.o 200 201# Add the experimental logging functionality, only used by zcip 202lib-$(CONFIG_ZCIP) += logenv.o 203