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 | |
| 7 | lib-y:= \ |
| 8 | ask_confirmation.o change_identity.o chomp.o \ |
| 9 | compare_string_array.o concat_path_file.o copy_file.o copyfd.o \ |
| 10 | crc32.o create_icmp_socket.o create_icmp6_socket.o \ |
| 11 | device_open.o dump.o error_msg.o error_msg_and_die.o \ |
Denis Vlasenko | ea62077 | 2006-10-14 02:23:43 +0000 | [diff] [blame^] | 12 | find_pid_by_name.o find_root_device.o fgets_str.o \ |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 13 | full_write.o get_last_path_component.o get_line_from_file.o \ |
| 14 | herror_msg.o herror_msg_and_die.o \ |
| 15 | human_readable.o inet_common.o inode_hash.o isdirectory.o \ |
| 16 | kernel_version.o last_char_is.o login.o \ |
| 17 | make_directory.o md5.o mode_string.o mtab_file.o \ |
Denis Vlasenko | 1385899 | 2006-10-08 12:49:22 +0000 | [diff] [blame] | 18 | obscure.o parse_mode.o perror_msg.o \ |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 19 | perror_msg_and_die.o get_console.o \ |
| 20 | process_escape_sequence.o procps.o \ |
| 21 | recursive_action.o remove_file.o \ |
Denis Vlasenko | ea62077 | 2006-10-14 02:23:43 +0000 | [diff] [blame^] | 22 | restricted_shell.o run_parts.o run_shell.o read.o safe_write.o \ |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 23 | safe_strncpy.o setup_environment.o sha1.o simplify_path.o \ |
| 24 | trim.o u_signal_names.o vdprintf.o verror_msg.o \ |
| 25 | vherror_msg.o vperror_msg.o wfopen.o xconnect.o xgetcwd.o \ |
Denis Vlasenko | 1385899 | 2006-10-08 12:49:22 +0000 | [diff] [blame] | 26 | xgethostbyname.o xgethostbyname2.o xreadlink.o \ |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 27 | fclose_nonstdin.o fflush_stdout_and_exit.o \ |
| 28 | getopt32.o default_error_retval.o wfopen_input.o speed_table.o \ |
| 29 | perror_nomsg_and_die.o perror_nomsg.o skip_whitespace.o bb_askpass.o \ |
| 30 | warn_ignoring_args.o concat_subpath_file.o vfork_daemon_rexec.o \ |
Denis Vlasenko | f6f43df | 2006-10-11 22:16:56 +0000 | [diff] [blame] | 31 | bb_do_delay.o uuencode.o info_msg.o vinfo_msg.o execable.o |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 32 | |
| 33 | # conditionally compiled objects: |
| 34 | lib-$(CONFIG_FEATURE_MOUNT_LOOP) += loop.o |
| 35 | lib-$(CONFIG_LOSETUP) += loop.o |
| 36 | lib-$(CONFIG_FEATURE_MTAB_SUPPORT) += mtab.o |
| 37 | lib-$(CONFIG_PASSWD) += pw_encrypt.o |
| 38 | lib-$(CONFIG_SULOGIN) += pw_encrypt.o |
| 39 | lib-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) += pw_encrypt.o |
| 40 | lib-$(CONFIG_VLOCK) += correct_password.o |
| 41 | lib-$(CONFIG_SU) += correct_password.o |
| 42 | lib-$(CONFIG_LOGIN) += correct_password.o |
| 43 | lib-$(CONFIG_DF) += find_mount_point.o |
| 44 | lib-$(CONFIG_EJECT) += find_mount_point.o |
| 45 | |
| 46 | # We shouldn't build xregcomp.c if we don't need it - this ensures we don't |
| 47 | # require regex.h to be in the include dir even if we don't need it thereby |
| 48 | # allowing us to build busybox even if uclibc regex support is disabled. |
| 49 | |
| 50 | lib-$(CONFIG_AWK) += xregcomp.o |
| 51 | lib-$(CONFIG_SED) += xregcomp.o |
| 52 | lib-$(CONFIG_LESS) += xregcomp.o |
| 53 | lib-$(CONFIG_DEVFSD) += xregcomp.o |
| 54 | |
| 55 | lib-y += messages.o |
| 56 | lib-y += xfuncs.o |
| 57 | lib-y += printf.o |
Denis Vlasenko | 1385899 | 2006-10-08 12:49:22 +0000 | [diff] [blame] | 58 | lib-y += xatol.o |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 59 | lib-y += safe_strtol.o |
| 60 | lib-y += bb_pwd.o |
| 61 | lib-y += llist.o |