blob: 515368de7db8ab255882d0014092ef2ba37a78ac [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
Denis Vlasenkod62fd842007-10-07 20:46:34 +00009lib-y += appletlib.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000010lib-y += ask_confirmation.o
11lib-y += bb_askpass.o
Denis Vlasenkodc757aa2007-06-30 08:04:05 +000012lib-y += bb_basename.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000013lib-y += bb_do_delay.o
14lib-y += bb_pwd.o
Denis Vlasenkod686a042006-11-27 14:43:21 +000015lib-y += bb_strtonum.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000016lib-y += change_identity.o
17lib-y += chomp.o
18lib-y += compare_string_array.o
19lib-y += concat_path_file.o
20lib-y += concat_subpath_file.o
21lib-y += copy_file.o
22lib-y += copyfd.o
23lib-y += crc32.o
24lib-y += create_icmp6_socket.o
25lib-y += create_icmp_socket.o
26lib-y += default_error_retval.o
27lib-y += device_open.o
28lib-y += dump.o
29lib-y += error_msg.o
30lib-y += error_msg_and_die.o
31lib-y += execable.o
32lib-y += fclose_nonstdin.o
33lib-y += fflush_stdout_and_exit.o
34lib-y += fgets_str.o
35lib-y += find_pid_by_name.o
36lib-y += find_root_device.o
37lib-y += full_write.o
38lib-y += get_console.o
39lib-y += get_last_path_component.o
40lib-y += get_line_from_file.o
41lib-y += getopt32.o
42lib-y += herror_msg.o
43lib-y += herror_msg_and_die.o
44lib-y += human_readable.o
45lib-y += inet_common.o
46lib-y += info_msg.o
47lib-y += inode_hash.o
48lib-y += isdirectory.o
49lib-y += kernel_version.o
50lib-y += last_char_is.o
Denis Vlasenko38f63192007-01-22 09:03:07 +000051lib-y += lineedit.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000052lib-y += llist.o
53lib-y += login.o
54lib-y += make_directory.o
55lib-y += makedev.o
Denis Vlasenkobf295dd2007-04-05 21:57:47 +000056lib-y += match_fstype.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000057lib-y += md5.o
58lib-y += messages.o
59lib-y += mode_string.o
60lib-y += mtab_file.o
61lib-y += obscure.o
62lib-y += parse_mode.o
63lib-y += perror_msg.o
64lib-y += perror_msg_and_die.o
65lib-y += perror_nomsg.o
66lib-y += perror_nomsg_and_die.o
Denis Vlasenko10457b92007-03-27 22:01:31 +000067lib-y += pidfile.o
Denis Vlasenkod3c042f2007-12-30 01:59:53 +000068lib-y += printable.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000069lib-y += process_escape_sequence.o
70lib-y += procps.o
71lib-y += read.o
72lib-y += recursive_action.o
73lib-y += remove_file.o
74lib-y += restricted_shell.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000075lib-y += run_shell.o
Denis Vlasenko5d61e712007-09-27 10:09:59 +000076lib-y += safe_poll.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000077lib-y += safe_strncpy.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000078lib-y += safe_write.o
79lib-y += setup_environment.o
80lib-y += sha1.o
Denis Vlasenko25591c32008-02-16 22:58:56 +000081lib-y += signals.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000082lib-y += simplify_path.o
83lib-y += skip_whitespace.o
84lib-y += speed_table.o
Bernhard Reutner-Fischer7e8a53a2007-04-10 09:37:29 +000085lib-y += str_tolower.o
Denis Vlasenko459be352007-06-17 19:09:05 +000086lib-y += time.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000087lib-y += trim.o
88lib-y += u_signal_names.o
Denis Vlasenko29fe7262007-04-05 20:26:28 +000089lib-y += udp_io.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000090lib-y += uuencode.o
91lib-y += vdprintf.o
92lib-y += verror_msg.o
93lib-y += vfork_daemon_rexec.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000094lib-y += warn_ignoring_args.o
95lib-y += wfopen.o
96lib-y += wfopen_input.o
Denis Vlasenkoed836cd2006-11-25 14:44:13 +000097lib-y += xatonum.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000098lib-y += xconnect.o
99lib-y += xfuncs.o
100lib-y += xgetcwd.o
101lib-y += xgethostbyname.o
Denis Vlasenko0b354702006-11-24 14:54:27 +0000102lib-y += xreadlink.o
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000103
104# conditionally compiled objects:
105lib-$(CONFIG_FEATURE_MOUNT_LOOP) += loop.o
106lib-$(CONFIG_LOSETUP) += loop.o
107lib-$(CONFIG_FEATURE_MTAB_SUPPORT) += mtab.o
Denis Vlasenko21d10142007-07-20 21:28:41 +0000108lib-$(CONFIG_PASSWD) += pw_encrypt.o crypt_make_salt.o update_passwd.o
109lib-$(CONFIG_CHPASSWD) += pw_encrypt.o crypt_make_salt.o update_passwd.o
Denis Vlasenkoa035e9f2007-05-08 23:23:35 +0000110lib-$(CONFIG_CRYPTPW) += pw_encrypt.o crypt_make_salt.o
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000111lib-$(CONFIG_SULOGIN) += pw_encrypt.o
112lib-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) += pw_encrypt.o
113lib-$(CONFIG_VLOCK) += correct_password.o
114lib-$(CONFIG_SU) += correct_password.o
115lib-$(CONFIG_LOGIN) += correct_password.o
116lib-$(CONFIG_DF) += find_mount_point.o
Denis Vlasenko6a5dc5d2006-12-30 18:42:29 +0000117lib-$(CONFIG_MKFS_MINIX) += find_mount_point.o
Denis Vlasenko1203c9b2007-03-11 22:16:02 +0000118lib-$(CONFIG_SELINUX) += selinux_common.o
Mike Frysinger6b160e42008-02-15 02:27:19 +0000119lib-$(CONFIG_HWCLOCK) += rtc.o
120lib-$(CONFIG_RTCWAKE) += rtc.o
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000121
122# We shouldn't build xregcomp.c if we don't need it - this ensures we don't
123# require regex.h to be in the include dir even if we don't need it thereby
124# allowing us to build busybox even if uclibc regex support is disabled.
125
126lib-$(CONFIG_AWK) += xregcomp.o
127lib-$(CONFIG_SED) += xregcomp.o
Denis Vlasenko666da5e2006-12-26 18:17:42 +0000128lib-$(CONFIG_GREP) += xregcomp.o
Denis Vlasenkod46e6d12007-05-17 12:58:30 +0000129lib-$(CONFIG_EXPR) += xregcomp.o
Denis Vlasenko666da5e2006-12-26 18:17:42 +0000130lib-$(CONFIG_MDEV) += xregcomp.o
Denis Vlasenko4a64c332006-12-30 22:03:02 +0000131lib-$(CONFIG_LESS) += xregcomp.o
Denis Vlasenkoaff3a302007-10-16 23:00:50 +0000132lib-$(CONFIG_PGREP) += xregcomp.o
Denis Vlasenko16e74b72007-10-17 09:59:01 +0000133lib-$(CONFIG_PKILL) += xregcomp.o
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000134lib-$(CONFIG_DEVFSD) += xregcomp.o
Denis Vlasenko4b9b0ce2007-07-01 17:35:17 +0000135lib-$(CONFIG_FEATURE_FIND_REGEX) += xregcomp.o