1# Makefile for busybox 2# 3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> 4# 5# Licensed under the GPL v2, see the file LICENSE in this tarball. 6 7lib-y:= 8 9lib-y += ask_confirmation.o 10lib-y += bb_askpass.o 11lib-y += bb_basename.o 12lib-y += bb_do_delay.o 13lib-y += bb_pwd.o 14lib-y += bb_strtonum.o 15lib-y += change_identity.o 16lib-y += chomp.o 17lib-y += compare_string_array.o 18lib-y += concat_path_file.o 19lib-y += concat_subpath_file.o 20lib-y += copy_file.o 21lib-y += copyfd.o 22lib-y += crc32.o 23lib-y += create_icmp6_socket.o 24lib-y += create_icmp_socket.o 25lib-y += default_error_retval.o 26lib-y += device_open.o 27lib-y += dump.o 28lib-y += error_msg.o 29lib-y += error_msg_and_die.o 30lib-y += execable.o 31lib-y += fclose_nonstdin.o 32lib-y += fflush_stdout_and_exit.o 33lib-y += fgets_str.o 34lib-y += find_pid_by_name.o 35lib-y += find_root_device.o 36lib-y += full_write.o 37lib-y += get_console.o 38lib-y += get_last_path_component.o 39lib-y += get_line_from_file.o 40lib-y += getopt32.o 41lib-y += herror_msg.o 42lib-y += herror_msg_and_die.o 43lib-y += human_readable.o 44lib-y += inet_common.o 45lib-y += info_msg.o 46lib-y += inode_hash.o 47lib-y += isdirectory.o 48lib-y += kernel_version.o 49lib-y += last_char_is.o 50lib-y += lineedit.o 51lib-y += llist.o 52lib-y += login.o 53lib-y += make_directory.o 54lib-y += makedev.o 55lib-y += match_fstype.o 56lib-y += md5.o 57lib-y += messages.o 58lib-y += mode_string.o 59lib-y += mtab_file.o 60lib-y += obscure.o 61lib-y += parse_mode.o 62lib-y += perror_msg.o 63lib-y += perror_msg_and_die.o 64lib-y += perror_nomsg.o 65lib-y += perror_nomsg_and_die.o 66lib-y += pidfile.o 67lib-y += process_escape_sequence.o 68lib-y += procps.o 69lib-y += read.o 70lib-y += recursive_action.o 71lib-y += remove_file.o 72lib-y += restricted_shell.o 73lib-y += run_shell.o 74lib-y += safe_strncpy.o 75lib-y += safe_write.o 76lib-y += setup_environment.o 77lib-y += sha1.o 78lib-y += simplify_path.o 79lib-y += skip_whitespace.o 80lib-y += speed_table.o 81lib-y += str_tolower.o 82lib-y += time.o 83lib-y += trim.o 84lib-y += u_signal_names.o 85lib-y += udp_io.o 86lib-y += uuencode.o 87lib-y += vdprintf.o 88lib-y += verror_msg.o 89lib-y += vfork_daemon_rexec.o 90lib-y += warn_ignoring_args.o 91lib-y += wfopen.o 92lib-y += wfopen_input.o 93lib-y += xatonum.o 94lib-y += xconnect.o 95lib-y += xfuncs.o 96lib-y += xgetcwd.o 97lib-y += xgethostbyname.o 98lib-y += xreadlink.o 99 100# conditionally compiled objects: 101lib-$(CONFIG_FEATURE_MOUNT_LOOP) += loop.o 102lib-$(CONFIG_LOSETUP) += loop.o 103lib-$(CONFIG_FEATURE_MTAB_SUPPORT) += mtab.o 104lib-$(CONFIG_PASSWD) += pw_encrypt.o crypt_make_salt.o update_passwd.o 105lib-$(CONFIG_CHPASSWD) += pw_encrypt.o crypt_make_salt.o update_passwd.o 106lib-$(CONFIG_CRYPTPW) += pw_encrypt.o crypt_make_salt.o 107lib-$(CONFIG_SULOGIN) += pw_encrypt.o 108lib-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) += pw_encrypt.o 109lib-$(CONFIG_VLOCK) += correct_password.o 110lib-$(CONFIG_SU) += correct_password.o 111lib-$(CONFIG_LOGIN) += correct_password.o 112lib-$(CONFIG_DF) += find_mount_point.o 113lib-$(CONFIG_MKFS_MINIX) += find_mount_point.o 114lib-$(CONFIG_SELINUX) += selinux_common.o 115 116# We shouldn't build xregcomp.c if we don't need it - this ensures we don't 117# require regex.h to be in the include dir even if we don't need it thereby 118# allowing us to build busybox even if uclibc regex support is disabled. 119 120lib-$(CONFIG_AWK) += xregcomp.o 121lib-$(CONFIG_SED) += xregcomp.o 122lib-$(CONFIG_GREP) += xregcomp.o 123lib-$(CONFIG_EXPR) += xregcomp.o 124lib-$(CONFIG_MDEV) += xregcomp.o 125lib-$(CONFIG_LESS) += xregcomp.o 126lib-$(CONFIG_DEVFSD) += xregcomp.o 127lib-$(CONFIG_FEATURE_FIND_REGEX) += xregcomp.o 128