aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2009-04-22 22:03:40 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2009-04-23 04:44:33 +1000
commitd791e72dc28009f36da26703fc007e40cfa79414 (patch)
tree3564d4897dbc688a4d736faf04a613b488214612
parent943f901342dc85741b1a7e84758c0f50a964c68d (diff)
downloadbusybox-w32-d791e72dc28009f36da26703fc007e40cfa79414.tar.gz
busybox-w32-d791e72dc28009f36da26703fc007e40cfa79414.tar.bz2
busybox-w32-d791e72dc28009f36da26703fc007e40cfa79414.zip
Kbuild/Config.in: add CONFIG_MINGW and imported files to build system
-rw-r--r--Config.in5
-rw-r--r--libbb/Kbuild51
-rw-r--r--libpwdgrp/Kbuild2
3 files changed, 41 insertions, 17 deletions
diff --git a/Config.in b/Config.in
index a04e11b5c..3c5699c32 100644
--- a/Config.in
+++ b/Config.in
@@ -37,6 +37,11 @@ config DESKTOP
37 Select this only if you plan to use busybox on full-blown 37 Select this only if you plan to use busybox on full-blown
38 desktop machine with common Linux distro, not on an embedded box. 38 desktop machine with common Linux distro, not on an embedded box.
39 39
40config MINGW32
41 bool "Enable Windows native port"
42 default n
43 help
44 Enable MinGW port
40choice 45choice
41 prompt "Buffer allocation policy" 46 prompt "Buffer allocation policy"
42 default FEATURE_BUFFERS_USE_MALLOC 47 default FEATURE_BUFFERS_USE_MALLOC
diff --git a/libbb/Kbuild b/libbb/Kbuild
index e562f3222..4c8f542fc 100644
--- a/libbb/Kbuild
+++ b/libbb/Kbuild
@@ -6,12 +6,29 @@
6 6
7lib-y:= 7lib-y:=
8 8
9lib-y += ask_confirmation.o 9ifndef CONFIG_MINGW32
10lib-y += bb_askpass.o 10lib-y += bb_askpass.o
11lib-y += bb_do_delay.o
12lib-y += bb_pwd.o 11lib-y += bb_pwd.o
13lib-y += bb_strtonum.o
14lib-y += change_identity.o 12lib-y += change_identity.o
13lib-y += create_icmp6_socket.o
14lib-y += create_icmp_socket.o
15lib-y += device_open.o
16lib-y += inet_common.o
17lib-y += kernel_version.o
18lib-y += login.o
19lib-y += makedev.o
20lib-y += match_fstype.o
21lib-y += setup_environment.o
22lib-y += speed_table.o
23lib-y += vfork_daemon_rexec.o
24lib-y += vinfo_msg.o
25lib-y += xconnect.o
26lib-y += xgethostbyname.o
27endif
28
29lib-y += ask_confirmation.o
30lib-y += bb_do_delay.o
31lib-y += bb_strtonum.o
15lib-y += chomp.o 32lib-y += chomp.o
16lib-y += compare_string_array.o 33lib-y += compare_string_array.o
17lib-y += concat_path_file.o 34lib-y += concat_path_file.o
@@ -19,10 +36,7 @@ lib-y += concat_subpath_file.o
19lib-y += copy_file.o 36lib-y += copy_file.o
20lib-y += copyfd.o 37lib-y += copyfd.o
21lib-y += crc32.o 38lib-y += crc32.o
22lib-y += create_icmp6_socket.o
23lib-y += create_icmp_socket.o
24lib-y += default_error_retval.o 39lib-y += default_error_retval.o
25lib-y += device_open.o
26lib-y += dump.o 40lib-y += dump.o
27lib-y += error_msg.o 41lib-y += error_msg.o
28lib-y += error_msg_and_die.o 42lib-y += error_msg_and_die.o
@@ -40,18 +54,13 @@ lib-y += getopt32.o
40lib-y += herror_msg.o 54lib-y += herror_msg.o
41lib-y += herror_msg_and_die.o 55lib-y += herror_msg_and_die.o
42lib-y += human_readable.o 56lib-y += human_readable.o
43lib-y += inet_common.o
44lib-y += info_msg.o 57lib-y += info_msg.o
45lib-y += inode_hash.o 58lib-y += inode_hash.o
46lib-y += isdirectory.o 59lib-y += isdirectory.o
47lib-y += kernel_version.o
48lib-y += last_char_is.o 60lib-y += last_char_is.o
49lib-y += lineedit.o 61lib-y += lineedit.o
50lib-y += llist.o 62lib-y += llist.o
51lib-y += login.o
52lib-y += make_directory.o 63lib-y += make_directory.o
53lib-y += makedev.o
54lib-y += match_fstype.o
55lib-y += md5.o 64lib-y += md5.o
56lib-y += messages.o 65lib-y += messages.o
57lib-y += mode_string.o 66lib-y += mode_string.o
@@ -72,11 +81,9 @@ lib-y += restricted_shell.o
72lib-y += run_shell.o 81lib-y += run_shell.o
73lib-y += safe_strncpy.o 82lib-y += safe_strncpy.o
74lib-y += safe_write.o 83lib-y += safe_write.o
75lib-y += setup_environment.o
76lib-y += sha1.o 84lib-y += sha1.o
77lib-y += simplify_path.o 85lib-y += simplify_path.o
78lib-y += skip_whitespace.o 86lib-y += skip_whitespace.o
79lib-y += speed_table.o
80lib-y += str_tolower.o 87lib-y += str_tolower.o
81lib-y += trim.o 88lib-y += trim.o
82lib-y += u_signal_names.o 89lib-y += u_signal_names.o
@@ -84,18 +91,14 @@ lib-y += udp_io.o
84lib-y += uuencode.o 91lib-y += uuencode.o
85lib-y += vdprintf.o 92lib-y += vdprintf.o
86lib-y += verror_msg.o 93lib-y += verror_msg.o
87lib-y += vfork_daemon_rexec.o
88lib-y += vherror_msg.o 94lib-y += vherror_msg.o
89lib-y += vinfo_msg.o
90lib-y += vperror_msg.o 95lib-y += vperror_msg.o
91lib-y += warn_ignoring_args.o 96lib-y += warn_ignoring_args.o
92lib-y += wfopen.o 97lib-y += wfopen.o
93lib-y += wfopen_input.o 98lib-y += wfopen_input.o
94lib-y += xatonum.o 99lib-y += xatonum.o
95lib-y += xconnect.o
96lib-y += xfuncs.o 100lib-y += xfuncs.o
97lib-y += xgetcwd.o 101lib-y += xgetcwd.o
98lib-y += xgethostbyname.o
99lib-y += xreadlink.o 102lib-y += xreadlink.o
100 103
101# conditionally compiled objects: 104# conditionally compiled objects:
@@ -124,3 +127,17 @@ lib-$(CONFIG_EXPR) += xregcomp.o
124lib-$(CONFIG_MDEV) += xregcomp.o 127lib-$(CONFIG_MDEV) += xregcomp.o
125lib-$(CONFIG_LESS) += xregcomp.o 128lib-$(CONFIG_LESS) += xregcomp.o
126lib-$(CONFIG_DEVFSD) += xregcomp.o 129lib-$(CONFIG_DEVFSD) += xregcomp.o
130
131lib-$(CONFIG_MINGW32) += git.o
132lib-$(CONFIG_MINGW32) += fnmatch.o
133lib-$(CONFIG_MINGW32) += mingw.o
134lib-$(CONFIG_MINGW32) += quote.o
135lib-$(CONFIG_MINGW32) += regex.o
136lib-$(CONFIG_MINGW32) += run-command.o
137lib-$(CONFIG_MINGW32) += setenv.o
138lib-$(CONFIG_MINGW32) += strbuf.o
139lib-$(CONFIG_MINGW32) += strlcpy.o
140lib-$(CONFIG_MINGW32) += trace.o
141lib-$(CONFIG_MINGW32) += usage.o
142lib-$(CONFIG_MINGW32) += winansi.o
143lib-$(CONFIG_MINGW32) += write_or_die.o
diff --git a/libpwdgrp/Kbuild b/libpwdgrp/Kbuild
index f9f1ddbf3..1fbdfcab5 100644
--- a/libpwdgrp/Kbuild
+++ b/libpwdgrp/Kbuild
@@ -4,6 +4,8 @@
4# 4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball. 5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6 6
7ifndef CONFIG_MINGW32
7lib-y := uidgid_get.o 8lib-y := uidgid_get.o
9endif
8 10
9lib-$(CONFIG_USE_BB_PWD_GRP) += pwd_grp.o 11lib-$(CONFIG_USE_BB_PWD_GRP) += pwd_grp.o