busybox/libbb/Kbuild.src
<<
>>
Prefs
   1# Makefile for busybox
   2#
   3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
   4#
   5# Licensed under GPLv2, see file LICENSE in this source tree.
   6
   7libbb/appletlib.o: include/usage_compressed.h
   8
   9lib-y:=
  10
  11INSERT
  12
  13lib-y += appletlib.o
  14lib-y += ask_confirmation.o
  15lib-y += bb_askpass.o
  16lib-y += bb_bswap_64.o
  17lib-y += bb_do_delay.o
  18lib-y += bb_pwd.o
  19lib-y += bb_qsort.o
  20#lib-y += bb_strtod.o
  21lib-y += bb_strtonum.o
  22lib-y += change_identity.o
  23lib-y += chomp.o
  24lib-y += compare_string_array.o
  25lib-y += concat_path_file.o
  26lib-y += concat_subpath_file.o
  27lib-y += copy_file.o
  28lib-y += copyfd.o
  29lib-y += crc32.o
  30lib-y += default_error_retval.o
  31lib-y += device_open.o
  32lib-y += dump.o
  33lib-y += executable.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 += getpty.o
  44lib-y += get_volsize.o
  45lib-y += herror_msg.o
  46lib-y += human_readable.o
  47lib-y += inet_common.o
  48lib-y += inode_hash.o
  49lib-y += isdirectory.o
  50lib-y += kernel_version.o
  51lib-y += last_char_is.o
  52lib-y += lineedit.o lineedit_ptr_hack.o
  53lib-y += llist.o
  54lib-y += login.o
  55lib-y += make_directory.o
  56lib-y += makedev.o
  57lib-y += hash_md5_sha.o
  58# Alternative (disabled) MD5 implementation
  59#lib-y += hash_md5prime.o
  60lib-y += messages.o
  61lib-y += mode_string.o
  62lib-y += parse_mode.o
  63lib-y += perror_msg.o
  64lib-y += perror_nomsg.o
  65lib-y += perror_nomsg_and_die.o
  66lib-y += pidfile.o
  67lib-y += platform.o
  68lib-y += printable.o
  69lib-y += printable_string.o
  70lib-y += print_flags.o
  71lib-y += process_escape_sequence.o
  72lib-y += procps.o
  73lib-y += progress.o
  74lib-y += ptr_to_globals.o
  75lib-y += read.o
  76lib-y += read_printf.o
  77lib-y += read_key.o
  78lib-y += recursive_action.o
  79lib-y += remove_file.o
  80lib-y += run_shell.o
  81lib-y += safe_gethostname.o
  82lib-y += safe_poll.o
  83lib-y += safe_strncpy.o
  84lib-y += safe_write.o
  85lib-y += securetty.o
  86lib-y += setup_environment.o
  87lib-y += signals.o
  88lib-y += simplify_path.o
  89lib-y += single_argv.o
  90lib-y += skip_whitespace.o
  91lib-y += speed_table.o
  92lib-y += str_tolower.o
  93lib-y += strrstr.o
  94lib-y += sysconf.o
  95lib-y += time.o
  96lib-y += trim.o
  97lib-y += u_signal_names.o
  98lib-y += uuencode.o
  99lib-y += verror_msg.o
 100lib-y += vfork_daemon_rexec.o
 101lib-y += warn_ignoring_args.o
 102lib-y += wfopen.o
 103lib-y += wfopen_input.o
 104lib-y += write.o
 105lib-y += xatonum.o
 106lib-y += xconnect.o
 107lib-y += xfuncs.o
 108lib-y += xfuncs_printf.o
 109lib-y += xfunc_die.o
 110lib-y += xgetcwd.o
 111lib-y += xgethostbyname.o
 112lib-y += xreadlink.o
 113lib-y += xrealloc_vector.o
 114
 115lib-$(CONFIG_PLATFORM_LINUX) += match_fstype.o
 116
 117lib-$(CONFIG_FEATURE_UTMP) += utmp.o
 118
 119# A mix of optimizations (why build stuff we know won't be used)
 120# and objects which may fail to build (SELinux on selinux-less system)
 121lib-$(CONFIG_SELINUX) += selinux_common.o
 122lib-$(CONFIG_FEATURE_MTAB_SUPPORT) += mtab.o
 123lib-$(CONFIG_UNICODE_SUPPORT) += unicode.o
 124lib-$(CONFIG_FEATURE_CHECK_NAMES) += die_if_bad_username.o
 125
 126lib-$(CONFIG_NC) += udp_io.o
 127lib-$(CONFIG_NETCAT) += udp_io.o
 128lib-$(CONFIG_DNSD) += udp_io.o
 129lib-$(CONFIG_NTPD) += udp_io.o
 130lib-$(CONFIG_TFTP) += udp_io.o
 131lib-$(CONFIG_TFTPD) += udp_io.o
 132lib-$(CONFIG_TCPSVD) += udp_io.o
 133lib-$(CONFIG_UDPSVD) += udp_io.o
 134lib-$(CONFIG_TRACEROUTE) += udp_io.o
 135lib-$(CONFIG_TRACEROUTE6) += udp_io.o
 136
 137lib-$(CONFIG_LOSETUP) += loop.o
 138lib-$(CONFIG_FEATURE_MOUNT_LOOP) += loop.o
 139
 140lib-$(CONFIG_ADDGROUP) += update_passwd.o
 141lib-$(CONFIG_ADDUSER) += update_passwd.o
 142lib-$(CONFIG_DELGROUP) += update_passwd.o
 143lib-$(CONFIG_DELUSER) += update_passwd.o
 144
 145lib-$(CONFIG_FTPD) += pw_encrypt.o correct_password.o
 146lib-$(CONFIG_PASSWD) += pw_encrypt.o update_passwd.o
 147lib-$(CONFIG_FEATURE_PASSWD_WEAK_CHECK) += obscure.o
 148lib-$(CONFIG_CHPASSWD) += pw_encrypt.o update_passwd.o
 149lib-$(CONFIG_CRYPTPW) += pw_encrypt.o
 150lib-$(CONFIG_MKPASSWD) += pw_encrypt.o
 151lib-$(CONFIG_SULOGIN) += pw_encrypt.o correct_password.o
 152lib-$(CONFIG_VLOCK) += pw_encrypt.o correct_password.o
 153lib-$(CONFIG_SU) += pw_encrypt.o correct_password.o
 154lib-$(CONFIG_LOGIN) += pw_encrypt.o correct_password.o
 155lib-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) += pw_encrypt.o
 156lib-$(CONFIG_FEATURE_FTP_AUTHENTICATION) += pw_encrypt.o
 157
 158lib-$(CONFIG_DF) += find_mount_point.o
 159lib-$(CONFIG_MKFS_MINIX) += find_mount_point.o
 160lib-$(CONFIG_MKFS_EXT2) += find_mount_point.o
 161lib-$(CONFIG_MKE2FS) += find_mount_point.o
 162lib-$(CONFIG_MKFS_REISER) += find_mount_point.o
 163lib-$(CONFIG_FSCK_MINIX) += find_mount_point.o
 164lib-$(CONFIG_MOUNT) += find_mount_point.o
 165
 166lib-$(CONFIG_HWCLOCK) += rtc.o
 167lib-$(CONFIG_RTCWAKE) += rtc.o
 168
 169lib-$(CONFIG_IOSTAT) += get_cpu_count.o
 170lib-$(CONFIG_MPSTAT) += get_cpu_count.o
 171lib-$(CONFIG_POWERTOP) += get_cpu_count.o
 172
 173lib-$(CONFIG_PING) += inet_cksum.o
 174lib-$(CONFIG_PING6) += inet_cksum.o
 175lib-$(CONFIG_TRACEROUTE) += inet_cksum.o
 176lib-$(CONFIG_TRACEROUTE6) += inet_cksum.o
 177lib-$(CONFIG_UDHCPC) += inet_cksum.o
 178lib-$(CONFIG_UDHCPC6) += inet_cksum.o
 179lib-$(CONFIG_UDHCPD) += inet_cksum.o
 180lib-$(CONFIG_DHCPRELAY) += inet_cksum.o
 181
 182# We shouldn't build xregcomp.c if we don't need it - this ensures we don't
 183# require regex.h to be in the include dir even if we don't need it thereby
 184# allowing us to build busybox even if uclibc regex support is disabled.
 185
 186lib-$(CONFIG_AWK) += xregcomp.o
 187lib-$(CONFIG_SED) += xregcomp.o
 188lib-$(CONFIG_GREP) += xregcomp.o
 189lib-$(CONFIG_EGREP) += xregcomp.o
 190lib-$(CONFIG_FGREP) += xregcomp.o
 191lib-$(CONFIG_EXPR) += xregcomp.o
 192lib-$(CONFIG_MDEV) += xregcomp.o
 193lib-$(CONFIG_LESS) += xregcomp.o
 194lib-$(CONFIG_PGREP) += xregcomp.o
 195lib-$(CONFIG_PKILL) += xregcomp.o
 196lib-$(CONFIG_DEVFSD) += xregcomp.o
 197lib-$(CONFIG_FEATURE_FIND_REGEX) += xregcomp.o
 198
 199# Add the experimental logging functionality, only used by zcip
 200lib-$(CONFIG_ZCIP) += logenv.o
 201