blob: bdf25da097229547b91104eadae23e1f98937823 [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
Denis Vlasenko0b354702006-11-24 14:54:27 +00007lib-y:=
8
9lib-y += ask_confirmation.o
10lib-y += bb_askpass.o
11lib-y += bb_do_delay.o
12lib-y += bb_pwd.o
Denis Vlasenkod686a042006-11-27 14:43:21 +000013lib-y += bb_strtonum.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000014lib-y += change_identity.o
15lib-y += chomp.o
16lib-y += compare_string_array.o
17lib-y += concat_path_file.o
18lib-y += concat_subpath_file.o
19lib-y += copy_file.o
20lib-y += copyfd.o
21lib-y += crc32.o
22lib-y += create_icmp6_socket.o
23lib-y += create_icmp_socket.o
24lib-y += default_error_retval.o
25lib-y += device_open.o
26lib-y += dump.o
27lib-y += error_msg.o
28lib-y += error_msg_and_die.o
29lib-y += execable.o
30lib-y += fclose_nonstdin.o
31lib-y += fflush_stdout_and_exit.o
32lib-y += fgets_str.o
33lib-y += find_pid_by_name.o
34lib-y += find_root_device.o
35lib-y += full_write.o
36lib-y += get_console.o
37lib-y += get_last_path_component.o
38lib-y += get_line_from_file.o
39lib-y += getopt32.o
40lib-y += herror_msg.o
41lib-y += herror_msg_and_die.o
42lib-y += human_readable.o
43lib-y += inet_common.o
44lib-y += info_msg.o
45lib-y += inode_hash.o
46lib-y += isdirectory.o
47lib-y += kernel_version.o
48lib-y += last_char_is.o
Denis Vlasenko38f63192007-01-22 09:03:07 +000049lib-y += lineedit.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000050lib-y += llist.o
51lib-y += login.o
52lib-y += make_directory.o
53lib-y += makedev.o
54lib-y += md5.o
55lib-y += messages.o
56lib-y += mode_string.o
57lib-y += mtab_file.o
58lib-y += obscure.o
59lib-y += parse_mode.o
60lib-y += perror_msg.o
61lib-y += perror_msg_and_die.o
62lib-y += perror_nomsg.o
63lib-y += perror_nomsg_and_die.o
Denis Vlasenko10457b92007-03-27 22:01:31 +000064lib-y += pidfile.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000065lib-y += process_escape_sequence.o
66lib-y += procps.o
67lib-y += read.o
68lib-y += recursive_action.o
69lib-y += remove_file.o
70lib-y += restricted_shell.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000071lib-y += run_shell.o
72lib-y += safe_strncpy.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000073lib-y += safe_write.o
74lib-y += setup_environment.o
75lib-y += sha1.o
76lib-y += simplify_path.o
77lib-y += skip_whitespace.o
78lib-y += speed_table.o
79lib-y += trim.o
80lib-y += u_signal_names.o
Denis Vlasenko29fe7262007-04-05 20:26:28 +000081lib-y += udp_io.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000082lib-y += uuencode.o
83lib-y += vdprintf.o
84lib-y += verror_msg.o
85lib-y += vfork_daemon_rexec.o
86lib-y += vherror_msg.o
87lib-y += vinfo_msg.o
88lib-y += vperror_msg.o
89lib-y += warn_ignoring_args.o
90lib-y += wfopen.o
91lib-y += wfopen_input.o
Denis Vlasenkoed836cd2006-11-25 14:44:13 +000092lib-y += xatonum.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000093lib-y += xconnect.o
94lib-y += xfuncs.o
95lib-y += xgetcwd.o
96lib-y += xgethostbyname.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000097lib-y += xreadlink.o
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000098
99# conditionally compiled objects:
100lib-$(CONFIG_FEATURE_MOUNT_LOOP) += loop.o
101lib-$(CONFIG_LOSETUP) += loop.o
102lib-$(CONFIG_FEATURE_MTAB_SUPPORT) += mtab.o
103lib-$(CONFIG_PASSWD) += pw_encrypt.o
104lib-$(CONFIG_SULOGIN) += pw_encrypt.o
105lib-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) += pw_encrypt.o
106lib-$(CONFIG_VLOCK) += correct_password.o
107lib-$(CONFIG_SU) += correct_password.o
108lib-$(CONFIG_LOGIN) += correct_password.o
109lib-$(CONFIG_DF) += find_mount_point.o
Denis Vlasenko6a5dc5d2006-12-30 18:42:29 +0000110lib-$(CONFIG_MKFS_MINIX) += find_mount_point.o
Denis Vlasenko1203c9b2007-03-11 22:16:02 +0000111lib-$(CONFIG_SELINUX) += selinux_common.o
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000112
113# We shouldn't build xregcomp.c if we don't need it - this ensures we don't
114# require regex.h to be in the include dir even if we don't need it thereby
115# allowing us to build busybox even if uclibc regex support is disabled.
116
117lib-$(CONFIG_AWK) += xregcomp.o
118lib-$(CONFIG_SED) += xregcomp.o
Denis Vlasenko666da5e2006-12-26 18:17:42 +0000119lib-$(CONFIG_GREP) += xregcomp.o
120lib-$(CONFIG_MDEV) += xregcomp.o
Denis Vlasenko4a64c332006-12-30 22:03:02 +0000121lib-$(CONFIG_LESS) += xregcomp.o
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000122lib-$(CONFIG_DEVFSD) += xregcomp.o