aboutsummaryrefslogtreecommitdiff
path: root/debianutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-05 10:17:08 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-05 10:17:08 +0000
commit7d219aab70e6951ab82c27c202cac05016696723 (patch)
tree4c0679bfa391f71aee9b51505a5d3dc8f60a0cf7 /debianutils
parent8f8f268cfdecb4cabeb2e649a73afc7a485aeff5 (diff)
downloadbusybox-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.in28
-rw-r--r--debianutils/Kbuild13
-rw-r--r--debianutils/Makefile23
-rw-r--r--debianutils/Makefile.in33
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
6menu "Debian Utilities" 6menu "Debian Utilities"
7 7
8config CONFIG_MKTEMP 8config 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
14config CONFIG_PIPE_PROGRESS 14config 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
20config CONFIG_READLINK 20config 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
27config CONFIG_FEATURE_READLINK_FOLLOW 27config 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
34config CONFIG_RUN_PARTS 34config 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
49config CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS 49config 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
56config CONFIG_START_STOP_DAEMON 56config 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
64config CONFIG_FEATURE_START_STOP_DAEMON_FANCY 64config 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
73config CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS 73config 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
80config CONFIG_WHICH 80config 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
7lib-y:=
8lib-$(CONFIG_MKTEMP) += mktemp.o
9lib-$(CONFIG_PIPE_PROGRESS) += pipe_progress.o
10lib-$(CONFIG_READLINK) += readlink.o
11lib-$(CONFIG_RUN_PARTS) += run_parts.o
12lib-$(CONFIG_START_STOP_DAEMON) += start_stop_daemon.o
13lib-$(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
7ifndef top_srcdir
8top_srcdir=..
9endif
10ifndef top_builddir
11top_builddir=..
12endif
13srcdir=$(top_srcdir)/debianutils
14DEBIANUTILS_DIR:=./
15include $(top_srcdir)/Rules.mak
16include $(top_builddir)/.config
17include $(srcdir)/Makefile.in
18all: $(libraries-y)
19-include $(top_builddir)/.depend
20
21clean:
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
7DEBIANUTILS_AR:=debianutils.a
8ifndef $(DEBIANUTILS_DIR)
9DEBIANUTILS_DIR:=$(top_builddir)/debianutils/
10endif
11srcdir=$(top_srcdir)/debianutils
12
13DEBIANUTILS-y:=
14DEBIANUTILS-$(CONFIG_MKTEMP) += mktemp.o
15DEBIANUTILS-$(CONFIG_PIPE_PROGRESS) += pipe_progress.o
16DEBIANUTILS-$(CONFIG_READLINK) += readlink.o
17DEBIANUTILS-$(CONFIG_RUN_PARTS) += run_parts.o
18DEBIANUTILS-$(CONFIG_START_STOP_DAEMON) += start_stop_daemon.o
19DEBIANUTILS-$(CONFIG_WHICH) += which.o
20
21ifneq ($(strip $(DEBIANUTILS-y)),)
22libraries-y+=$(DEBIANUTILS_DIR)$(DEBIANUTILS_AR)
23endif
24DEBIANUTILS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(DEBIANUTILS-y))
25DEBIANUTILS_SRC-a:=$(wildcard $(srcdir)/*.c)
26APPLET_SRC-y+=$(DEBIANUTILS_SRC-y)
27APPLET_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)