blob: 3b16f5c45d01d822855c95575f27c3e6d1e9ba85 [file] [log] [blame]
Denis Vlasenko7d219aa2006-10-05 10:17:08 +00001# 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 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 Vlasenkoea620772006-10-14 02:23:43 +000012 find_pid_by_name.o find_root_device.o fgets_str.o \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000013 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 Vlasenko13858992006-10-08 12:49:22 +000018 obscure.o parse_mode.o perror_msg.o \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000019 perror_msg_and_die.o get_console.o \
20 process_escape_sequence.o procps.o \
21 recursive_action.o remove_file.o \
Denis Vlasenkoea620772006-10-14 02:23:43 +000022 restricted_shell.o run_parts.o run_shell.o read.o safe_write.o \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000023 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 Vlasenko13858992006-10-08 12:49:22 +000026 xgethostbyname.o xgethostbyname2.o xreadlink.o \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000027 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 Vlasenkof6f43df2006-10-11 22:16:56 +000031 bb_do_delay.o uuencode.o info_msg.o vinfo_msg.o execable.o
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000032
33# conditionally compiled objects:
34lib-$(CONFIG_FEATURE_MOUNT_LOOP) += loop.o
35lib-$(CONFIG_LOSETUP) += loop.o
36lib-$(CONFIG_FEATURE_MTAB_SUPPORT) += mtab.o
37lib-$(CONFIG_PASSWD) += pw_encrypt.o
38lib-$(CONFIG_SULOGIN) += pw_encrypt.o
39lib-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) += pw_encrypt.o
40lib-$(CONFIG_VLOCK) += correct_password.o
41lib-$(CONFIG_SU) += correct_password.o
42lib-$(CONFIG_LOGIN) += correct_password.o
43lib-$(CONFIG_DF) += find_mount_point.o
44lib-$(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
50lib-$(CONFIG_AWK) += xregcomp.o
51lib-$(CONFIG_SED) += xregcomp.o
52lib-$(CONFIG_LESS) += xregcomp.o
53lib-$(CONFIG_DEVFSD) += xregcomp.o
54
55lib-y += messages.o
56lib-y += xfuncs.o
57lib-y += printf.o
Denis Vlasenko13858992006-10-08 12:49:22 +000058lib-y += xatol.o
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000059lib-y += safe_strtol.o
60lib-y += bb_pwd.o
61lib-y += llist.o