Kbuild 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. # 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. lib-y:=
  7. lib-y += appletlib.o
  8. lib-y += ask_confirmation.o
  9. lib-y += bb_askpass.o
  10. lib-y += bb_basename.o
  11. lib-y += bb_do_delay.o
  12. lib-y += bb_pwd.o
  13. lib-y += bb_qsort.o
  14. lib-y += bb_strtod.o
  15. lib-y += bb_strtonum.o
  16. lib-y += change_identity.o
  17. lib-y += chomp.o
  18. lib-y += compare_string_array.o
  19. lib-y += concat_path_file.o
  20. lib-y += concat_subpath_file.o
  21. lib-y += copy_file.o
  22. lib-y += copyfd.o
  23. lib-y += crc32.o
  24. lib-y += create_icmp6_socket.o
  25. lib-y += create_icmp_socket.o
  26. lib-y += default_error_retval.o
  27. lib-y += device_open.o
  28. lib-y += dump.o
  29. lib-y += error_msg.o
  30. lib-y += error_msg_and_die.o
  31. lib-y += execable.o
  32. lib-y += fclose_nonstdin.o
  33. lib-y += fflush_stdout_and_exit.o
  34. lib-y += fgets_str.o
  35. lib-y += find_pid_by_name.o
  36. lib-y += find_root_device.o
  37. lib-y += full_write.o
  38. lib-y += get_console.o
  39. lib-y += get_last_path_component.o
  40. lib-y += get_line_from_file.o
  41. lib-y += getopt32.o
  42. lib-y += getpty.o
  43. lib-y += herror_msg.o
  44. lib-y += herror_msg_and_die.o
  45. lib-y += human_readable.o
  46. lib-y += inet_common.o
  47. lib-y += info_msg.o
  48. lib-y += inode_hash.o
  49. lib-y += isdirectory.o
  50. lib-y += kernel_version.o
  51. lib-y += last_char_is.o
  52. lib-y += lineedit.o lineedit_ptr_hack.o
  53. lib-y += llist.o
  54. lib-y += login.o
  55. lib-y += make_directory.o
  56. lib-y += makedev.o
  57. lib-y += match_fstype.o
  58. lib-y += md5.o
  59. lib-y += messages.o
  60. lib-y += mode_string.o
  61. lib-y += mtab_file.o
  62. lib-y += obscure.o
  63. lib-y += parse_mode.o
  64. lib-y += parse_config.o
  65. lib-y += perror_msg.o
  66. lib-y += perror_msg_and_die.o
  67. lib-y += perror_nomsg.o
  68. lib-y += perror_nomsg_and_die.o
  69. lib-y += pidfile.o
  70. lib-y += printable.o
  71. lib-y += print_flags.o
  72. lib-y += process_escape_sequence.o
  73. lib-y += procps.o
  74. lib-y += ptr_to_globals.o
  75. lib-y += read.o
  76. lib-y += read_key.o
  77. lib-y += recursive_action.o
  78. lib-y += remove_file.o
  79. lib-y += restricted_shell.o
  80. lib-y += run_shell.o
  81. lib-y += safe_gethostname.o
  82. lib-y += safe_poll.o
  83. lib-y += safe_strncpy.o
  84. lib-y += safe_write.o
  85. lib-y += setup_environment.o
  86. lib-y += sha1.o
  87. lib-y += signals.o
  88. lib-y += simplify_path.o
  89. lib-y += skip_whitespace.o
  90. lib-y += speed_table.o
  91. lib-y += str_tolower.o
  92. lib-y += strrstr.o
  93. lib-y += time.o
  94. lib-y += trim.o
  95. lib-y += u_signal_names.o
  96. lib-y += udp_io.o
  97. lib-y += uuencode.o
  98. lib-y += vdprintf.o
  99. lib-y += verror_msg.o
  100. lib-y += vfork_daemon_rexec.o
  101. lib-y += warn_ignoring_args.o
  102. lib-y += wfopen.o
  103. lib-y += wfopen_input.o
  104. lib-y += write.o
  105. lib-y += xatonum.o
  106. lib-y += xconnect.o
  107. lib-y += xfuncs.o
  108. lib-y += xfuncs_printf.o
  109. lib-y += xfunc_die.o
  110. lib-y += xgetcwd.o
  111. lib-y += xgethostbyname.o
  112. lib-y += xreadlink.o
  113. lib-y += xrealloc_vector.o
  114. # conditionally compiled objects:
  115. lib-$(CONFIG_FEATURE_MOUNT_LOOP) += loop.o
  116. lib-$(CONFIG_LOSETUP) += loop.o
  117. lib-$(CONFIG_FEATURE_MTAB_SUPPORT) += mtab.o
  118. lib-$(CONFIG_PASSWD) += pw_encrypt.o crypt_make_salt.o update_passwd.o
  119. lib-$(CONFIG_CHPASSWD) += pw_encrypt.o crypt_make_salt.o update_passwd.o
  120. lib-$(CONFIG_CRYPTPW) += pw_encrypt.o crypt_make_salt.o
  121. lib-$(CONFIG_SULOGIN) += pw_encrypt.o
  122. lib-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) += pw_encrypt.o
  123. lib-$(CONFIG_VLOCK) += pw_encrypt.o correct_password.o
  124. lib-$(CONFIG_SU) += pw_encrypt.o correct_password.o
  125. lib-$(CONFIG_LOGIN) += pw_encrypt.o correct_password.o
  126. lib-$(CONFIG_DF) += find_mount_point.o
  127. lib-$(CONFIG_MKFS_MINIX) += find_mount_point.o
  128. lib-$(CONFIG_SELINUX) += selinux_common.o
  129. lib-$(CONFIG_HWCLOCK) += rtc.o
  130. lib-$(CONFIG_RTCWAKE) += rtc.o
  131. lib-$(CONFIG_FEATURE_CHECK_NAMES) += die_if_bad_username.o
  132. # We shouldn't build xregcomp.c if we don't need it - this ensures we don't
  133. # require regex.h to be in the include dir even if we don't need it thereby
  134. # allowing us to build busybox even if uclibc regex support is disabled.
  135. lib-$(CONFIG_AWK) += xregcomp.o
  136. lib-$(CONFIG_SED) += xregcomp.o
  137. lib-$(CONFIG_GREP) += xregcomp.o
  138. lib-$(CONFIG_EXPR) += xregcomp.o
  139. lib-$(CONFIG_MDEV) += xregcomp.o
  140. lib-$(CONFIG_LESS) += xregcomp.o
  141. lib-$(CONFIG_PGREP) += xregcomp.o
  142. lib-$(CONFIG_PKILL) += xregcomp.o
  143. lib-$(CONFIG_DEVFSD) += xregcomp.o
  144. lib-$(CONFIG_FEATURE_FIND_REGEX) += xregcomp.o