blob: d9d5ad7934125a1e557435df4d2d51f05faa1633 [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 Vlasenkofb290382008-03-02 12:51:26 +000015lib-y += bb_qsort.o
Denys Vlasenko4813a512009-06-15 09:50:54 +020016#lib-y += bb_strtod.o
Denis Vlasenkod686a042006-11-27 14:43:21 +000017lib-y += bb_strtonum.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000018lib-y += change_identity.o
19lib-y += chomp.o
20lib-y += compare_string_array.o
21lib-y += concat_path_file.o
22lib-y += concat_subpath_file.o
23lib-y += copy_file.o
24lib-y += copyfd.o
25lib-y += crc32.o
26lib-y += create_icmp6_socket.o
27lib-y += create_icmp_socket.o
28lib-y += default_error_retval.o
29lib-y += device_open.o
30lib-y += dump.o
31lib-y += error_msg.o
32lib-y += error_msg_and_die.o
33lib-y += execable.o
34lib-y += fclose_nonstdin.o
35lib-y += fflush_stdout_and_exit.o
36lib-y += fgets_str.o
37lib-y += find_pid_by_name.o
38lib-y += find_root_device.o
39lib-y += full_write.o
40lib-y += get_console.o
41lib-y += get_last_path_component.o
42lib-y += get_line_from_file.o
43lib-y += getopt32.o
Denis Vlasenko5014dad2008-02-27 11:54:59 +000044lib-y += getpty.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000045lib-y += herror_msg.o
46lib-y += herror_msg_and_die.o
47lib-y += human_readable.o
48lib-y += inet_common.o
49lib-y += info_msg.o
50lib-y += inode_hash.o
51lib-y += isdirectory.o
52lib-y += kernel_version.o
53lib-y += last_char_is.o
Denis Vlasenko5d89fba2008-04-22 00:08:27 +000054lib-y += lineedit.o lineedit_ptr_hack.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000055lib-y += llist.o
56lib-y += login.o
57lib-y += make_directory.o
58lib-y += makedev.o
Denis Vlasenkobf295dd2007-04-05 21:57:47 +000059lib-y += match_fstype.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000060lib-y += md5.o
Denis Vlasenkoe9b9a192008-11-11 01:38:04 +000061# Alternative (disabled) implementation
62#lib-y += md5prime.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000063lib-y += messages.o
64lib-y += mode_string.o
65lib-y += mtab_file.o
66lib-y += obscure.o
67lib-y += parse_mode.o
Denis Vlasenkoe559e0a2008-07-15 21:09:30 +000068lib-y += parse_config.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000069lib-y += perror_msg.o
70lib-y += perror_msg_and_die.o
71lib-y += perror_nomsg.o
72lib-y += perror_nomsg_and_die.o
Denis Vlasenko10457b92007-03-27 22:01:31 +000073lib-y += pidfile.o
Dan Fandrich21a542d2009-10-27 11:05:00 +010074lib-y += platform.o
Denis Vlasenkod3c042f2007-12-30 01:59:53 +000075lib-y += printable.o
Denis Vlasenko53354ac2008-06-07 15:10:29 +000076lib-y += print_flags.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000077lib-y += process_escape_sequence.o
78lib-y += procps.o
Magnus Dammf5914992009-11-08 16:34:43 +010079lib-y += progress.o
Denis Vlasenko574f2f42008-02-27 18:41:59 +000080lib-y += ptr_to_globals.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000081lib-y += read.o
Denis Vlasenko0112ff52008-10-25 23:23:00 +000082lib-y += read_key.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000083lib-y += recursive_action.o
84lib-y += remove_file.o
85lib-y += restricted_shell.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000086lib-y += run_shell.o
Denis Vlasenko6f1713f2008-02-25 23:23:58 +000087lib-y += safe_gethostname.o
Denis Vlasenko5d61e712007-09-27 10:09:59 +000088lib-y += safe_poll.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000089lib-y += safe_strncpy.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000090lib-y += safe_write.o
91lib-y += setup_environment.o
92lib-y += sha1.o
Denis Vlasenko25591c32008-02-16 22:58:56 +000093lib-y += signals.o
Denis Vlasenko0b354702006-11-24 14:54:27 +000094lib-y += simplify_path.o
95lib-y += skip_whitespace.o
96lib-y += speed_table.o
Bernhard Reutner-Fischer7e8a53a2007-04-10 09:37:29 +000097lib-y += str_tolower.o
Bernhard Reutner-Fischer17282292008-05-28 14:19:27 +000098lib-y += strrstr.o
Denis Vlasenko459be352007-06-17 19:09:05 +000099lib-y += time.o
Denis Vlasenko0b354702006-11-24 14:54:27 +0000100lib-y += trim.o
101lib-y += u_signal_names.o
Denis Vlasenko29fe7262007-04-05 20:26:28 +0000102lib-y += udp_io.o
Denis Vlasenko0b354702006-11-24 14:54:27 +0000103lib-y += uuencode.o
104lib-y += vdprintf.o
105lib-y += verror_msg.o
106lib-y += vfork_daemon_rexec.o
Denis Vlasenko0b354702006-11-24 14:54:27 +0000107lib-y += warn_ignoring_args.o
108lib-y += wfopen.o
109lib-y += wfopen_input.o
Bernhard Reutner-Fischerae4342c2008-05-19 08:18:50 +0000110lib-y += write.o
Denis Vlasenkoed836cd2006-11-25 14:44:13 +0000111lib-y += xatonum.o
Denis Vlasenko0b354702006-11-24 14:54:27 +0000112lib-y += xconnect.o
113lib-y += xfuncs.o
Denis Vlasenkob12b1c82008-04-09 00:33:23 +0000114lib-y += xfuncs_printf.o
Denis Vlasenko468aea22008-04-01 14:47:57 +0000115lib-y += xfunc_die.o
Denis Vlasenko0b354702006-11-24 14:54:27 +0000116lib-y += xgetcwd.o
117lib-y += xgethostbyname.o
Denis Vlasenko0b354702006-11-24 14:54:27 +0000118lib-y += xreadlink.o
Denis Vlasenkodeeed592008-07-08 05:14:36 +0000119lib-y += xrealloc_vector.o
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000120
Denys Vlasenko7dd0ce42009-07-15 18:27:47 +0200121# A mix of optimizations (why build stuff we know won't be used)
122# and objects which may fail to build (SELinux on selinux-less system)
123lib-$(CONFIG_SELINUX) += selinux_common.o
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000124lib-$(CONFIG_FEATURE_MTAB_SUPPORT) += mtab.o
Denys Vlasenko7dd0ce42009-07-15 18:27:47 +0200125lib-$(CONFIG_FEATURE_ASSUME_UNICODE) += unicode.o
126lib-$(CONFIG_FEATURE_CHECK_NAMES) += die_if_bad_username.o
127
128lib-$(CONFIG_LOSETUP) += loop.o
129lib-$(CONFIG_FEATURE_MOUNT_LOOP) += loop.o
130
Denis Vlasenko829bbd32009-04-14 00:51:05 +0000131lib-$(CONFIG_ADDGROUP) += update_passwd.o
132lib-$(CONFIG_ADDUSER) += update_passwd.o
Denis Vlasenko5dcb43a2009-04-15 02:13:14 +0000133lib-$(CONFIG_DELGROUP) += update_passwd.o
Denis Vlasenko829bbd32009-04-14 00:51:05 +0000134lib-$(CONFIG_DELUSER) += update_passwd.o
Denys Vlasenko7dd0ce42009-07-15 18:27:47 +0200135
Denis Vlasenkod1a84a22008-12-07 01:16:34 +0000136lib-$(CONFIG_PASSWD) += pw_encrypt.o update_passwd.o
137lib-$(CONFIG_CHPASSWD) += pw_encrypt.o update_passwd.o
138lib-$(CONFIG_CRYPTPW) += pw_encrypt.o
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000139lib-$(CONFIG_SULOGIN) += pw_encrypt.o
Denis Vlasenkocc3f20b2008-06-23 22:31:52 +0000140lib-$(CONFIG_VLOCK) += pw_encrypt.o correct_password.o
141lib-$(CONFIG_SU) += pw_encrypt.o correct_password.o
142lib-$(CONFIG_LOGIN) += pw_encrypt.o correct_password.o
Denys Vlasenko7dd0ce42009-07-15 18:27:47 +0200143lib-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) += pw_encrypt.o
144
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000145lib-$(CONFIG_DF) += find_mount_point.o
Denis Vlasenko6a5dc5d2006-12-30 18:42:29 +0000146lib-$(CONFIG_MKFS_MINIX) += find_mount_point.o
Denys Vlasenko7dd0ce42009-07-15 18:27:47 +0200147lib-$(CONFIG_FSCK_MINIX) += find_mount_point.o
148
Mike Frysinger6b160e42008-02-15 02:27:19 +0000149lib-$(CONFIG_HWCLOCK) += rtc.o
150lib-$(CONFIG_RTCWAKE) += rtc.o
Denys Vlasenko42a8fd02009-07-11 21:36:13 +0200151
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000152# We shouldn't build xregcomp.c if we don't need it - this ensures we don't
153# require regex.h to be in the include dir even if we don't need it thereby
154# allowing us to build busybox even if uclibc regex support is disabled.
155
156lib-$(CONFIG_AWK) += xregcomp.o
157lib-$(CONFIG_SED) += xregcomp.o
Denis Vlasenko666da5e2006-12-26 18:17:42 +0000158lib-$(CONFIG_GREP) += xregcomp.o
Denis Vlasenkod46e6d12007-05-17 12:58:30 +0000159lib-$(CONFIG_EXPR) += xregcomp.o
Denis Vlasenko666da5e2006-12-26 18:17:42 +0000160lib-$(CONFIG_MDEV) += xregcomp.o
Denis Vlasenko4a64c332006-12-30 22:03:02 +0000161lib-$(CONFIG_LESS) += xregcomp.o
Denis Vlasenkoaff3a302007-10-16 23:00:50 +0000162lib-$(CONFIG_PGREP) += xregcomp.o
Denis Vlasenko16e74b72007-10-17 09:59:01 +0000163lib-$(CONFIG_PKILL) += xregcomp.o
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000164lib-$(CONFIG_DEVFSD) += xregcomp.o
Denis Vlasenko4b9b0ce2007-07-01 17:35:17 +0000165lib-$(CONFIG_FEATURE_FIND_REGEX) += xregcomp.o