diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-05 10:17:08 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-05 10:17:08 +0000 |
commit | 7d219aab70e6951ab82c27c202cac05016696723 (patch) | |
tree | 4c0679bfa391f71aee9b51505a5d3dc8f60a0cf7 /debianutils | |
parent | 8f8f268cfdecb4cabeb2e649a73afc7a485aeff5 (diff) | |
download | busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.tar.gz busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.tar.bz2 busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.zip |
build system overhaul
Diffstat (limited to 'debianutils')
-rw-r--r-- | debianutils/Config.in | 28 | ||||
-rw-r--r-- | debianutils/Kbuild | 13 | ||||
-rw-r--r-- | debianutils/Makefile | 23 | ||||
-rw-r--r-- | debianutils/Makefile.in | 33 |
4 files changed, 27 insertions, 70 deletions
diff --git a/debianutils/Config.in b/debianutils/Config.in index 3dd2ef61b..3d85999ff 100644 --- a/debianutils/Config.in +++ b/debianutils/Config.in | |||
@@ -5,33 +5,33 @@ | |||
5 | 5 | ||
6 | menu "Debian Utilities" | 6 | menu "Debian Utilities" |
7 | 7 | ||
8 | config CONFIG_MKTEMP | 8 | config MKTEMP |
9 | bool "mktemp" | 9 | bool "mktemp" |
10 | default n | 10 | default n |
11 | help | 11 | help |
12 | mktemp is used to create unique temporary files | 12 | mktemp is used to create unique temporary files |
13 | 13 | ||
14 | config CONFIG_PIPE_PROGRESS | 14 | config PIPE_PROGRESS |
15 | bool "pipe_progress" | 15 | bool "pipe_progress" |
16 | default n | 16 | default n |
17 | help | 17 | help |
18 | Display a dot to indicate pipe activity. | 18 | Display a dot to indicate pipe activity. |
19 | 19 | ||
20 | config CONFIG_READLINK | 20 | config READLINK |
21 | bool "readlink" | 21 | bool "readlink" |
22 | default n | 22 | default n |
23 | help | 23 | help |
24 | This program reads a symbolic link and returns the name | 24 | This program reads a symbolic link and returns the name |
25 | of the file it points to | 25 | of the file it points to |
26 | 26 | ||
27 | config CONFIG_FEATURE_READLINK_FOLLOW | 27 | config FEATURE_READLINK_FOLLOW |
28 | bool "Enable canonicalization by following all symlinks (-f)" | 28 | bool "Enable canonicalization by following all symlinks (-f)" |
29 | default n | 29 | default n |
30 | depends on CONFIG_READLINK | 30 | depends on READLINK |
31 | help | 31 | help |
32 | Enable the readlink option (-f). | 32 | Enable the readlink option (-f). |
33 | 33 | ||
34 | config CONFIG_RUN_PARTS | 34 | config RUN_PARTS |
35 | bool "run-parts" | 35 | bool "run-parts" |
36 | default n | 36 | default n |
37 | help | 37 | help |
@@ -46,14 +46,14 @@ config CONFIG_RUN_PARTS | |||
46 | Unless you know that run-parts is used in some of your scripts | 46 | Unless you know that run-parts is used in some of your scripts |
47 | you can safely say N here. | 47 | you can safely say N here. |
48 | 48 | ||
49 | config CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS | 49 | config FEATURE_RUN_PARTS_LONG_OPTIONS |
50 | bool "Enable long options" | 50 | bool "Enable long options" |
51 | default n | 51 | default n |
52 | depends on CONFIG_RUN_PARTS && CONFIG_GETOPT_LONG | 52 | depends on RUN_PARTS && GETOPT_LONG |
53 | help | 53 | help |
54 | Support long options for the run-parts applet. | 54 | Support long options for the run-parts applet. |
55 | 55 | ||
56 | config CONFIG_START_STOP_DAEMON | 56 | config START_STOP_DAEMON |
57 | bool "start-stop-daemon" | 57 | bool "start-stop-daemon" |
58 | default y | 58 | default y |
59 | help | 59 | help |
@@ -61,23 +61,23 @@ config CONFIG_START_STOP_DAEMON | |||
61 | termination of system-level processes, usually the ones | 61 | termination of system-level processes, usually the ones |
62 | started during the startup of the system. | 62 | started during the startup of the system. |
63 | 63 | ||
64 | config CONFIG_FEATURE_START_STOP_DAEMON_FANCY | 64 | config FEATURE_START_STOP_DAEMON_FANCY |
65 | bool "Support additional arguments" | 65 | bool "Support additional arguments" |
66 | default y | 66 | default y |
67 | depends on CONFIG_START_STOP_DAEMON | 67 | depends on START_STOP_DAEMON |
68 | help | 68 | help |
69 | Support additional arguments. | 69 | Support additional arguments. |
70 | -o|--oknodo ignored since we exit with 0 anyway | 70 | -o|--oknodo ignored since we exit with 0 anyway |
71 | -v|--verbose | 71 | -v|--verbose |
72 | 72 | ||
73 | config CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS | 73 | config FEATURE_START_STOP_DAEMON_LONG_OPTIONS |
74 | bool "Enable long options" | 74 | bool "Enable long options" |
75 | default n | 75 | default n |
76 | depends on CONFIG_START_STOP_DAEMON && CONFIG_GETOPT_LONG | 76 | depends on START_STOP_DAEMON && GETOPT_LONG |
77 | help | 77 | help |
78 | Support long options for the start-stop-daemon applet. | 78 | Support long options for the start-stop-daemon applet. |
79 | 79 | ||
80 | config CONFIG_WHICH | 80 | config WHICH |
81 | bool "which" | 81 | bool "which" |
82 | default n | 82 | default n |
83 | help | 83 | help |
diff --git a/debianutils/Kbuild b/debianutils/Kbuild new file mode 100644 index 000000000..99df6a536 --- /dev/null +++ b/debianutils/Kbuild | |||
@@ -0,0 +1,13 @@ | |||
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 | |||
7 | lib-y:= | ||
8 | lib-$(CONFIG_MKTEMP) += mktemp.o | ||
9 | lib-$(CONFIG_PIPE_PROGRESS) += pipe_progress.o | ||
10 | lib-$(CONFIG_READLINK) += readlink.o | ||
11 | lib-$(CONFIG_RUN_PARTS) += run_parts.o | ||
12 | lib-$(CONFIG_START_STOP_DAEMON) += start_stop_daemon.o | ||
13 | lib-$(CONFIG_WHICH) += which.o | ||
diff --git a/debianutils/Makefile b/debianutils/Makefile deleted file mode 100644 index 3d240b7bc..000000000 --- a/debianutils/Makefile +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
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 | |||
7 | ifndef top_srcdir | ||
8 | top_srcdir=.. | ||
9 | endif | ||
10 | ifndef top_builddir | ||
11 | top_builddir=.. | ||
12 | endif | ||
13 | srcdir=$(top_srcdir)/debianutils | ||
14 | DEBIANUTILS_DIR:=./ | ||
15 | include $(top_srcdir)/Rules.mak | ||
16 | include $(top_builddir)/.config | ||
17 | include $(srcdir)/Makefile.in | ||
18 | all: $(libraries-y) | ||
19 | -include $(top_builddir)/.depend | ||
20 | |||
21 | clean: | ||
22 | rm -f *.o *.a $(AR_TARGET) | ||
23 | |||
diff --git a/debianutils/Makefile.in b/debianutils/Makefile.in deleted file mode 100644 index 2983565b8..000000000 --- a/debianutils/Makefile.in +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
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 | |||
7 | DEBIANUTILS_AR:=debianutils.a | ||
8 | ifndef $(DEBIANUTILS_DIR) | ||
9 | DEBIANUTILS_DIR:=$(top_builddir)/debianutils/ | ||
10 | endif | ||
11 | srcdir=$(top_srcdir)/debianutils | ||
12 | |||
13 | DEBIANUTILS-y:= | ||
14 | DEBIANUTILS-$(CONFIG_MKTEMP) += mktemp.o | ||
15 | DEBIANUTILS-$(CONFIG_PIPE_PROGRESS) += pipe_progress.o | ||
16 | DEBIANUTILS-$(CONFIG_READLINK) += readlink.o | ||
17 | DEBIANUTILS-$(CONFIG_RUN_PARTS) += run_parts.o | ||
18 | DEBIANUTILS-$(CONFIG_START_STOP_DAEMON) += start_stop_daemon.o | ||
19 | DEBIANUTILS-$(CONFIG_WHICH) += which.o | ||
20 | |||
21 | ifneq ($(strip $(DEBIANUTILS-y)),) | ||
22 | libraries-y+=$(DEBIANUTILS_DIR)$(DEBIANUTILS_AR) | ||
23 | endif | ||
24 | DEBIANUTILS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(DEBIANUTILS-y)) | ||
25 | DEBIANUTILS_SRC-a:=$(wildcard $(srcdir)/*.c) | ||
26 | APPLET_SRC-y+=$(DEBIANUTILS_SRC-y) | ||
27 | APPLET_SRC-a+=$(DEBIANUTILS_SRC-a) | ||
28 | |||
29 | $(DEBIANUTILS_DIR)$(DEBIANUTILS_AR): $(patsubst %,$(DEBIANUTILS_DIR)%, $(DEBIANUTILS-y)) | ||
30 | $(do_ar) | ||
31 | |||
32 | $(DEBIANUTILS_DIR)%.o: $(srcdir)/%.c | ||
33 | $(compile.c) | ||