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