diff options
Diffstat (limited to 'applets')
-rw-r--r-- | applets/Kbuild | 9 | ||||
-rw-r--r-- | applets/Makefile | 23 | ||||
-rw-r--r-- | applets/Makefile.in | 26 | ||||
-rw-r--r-- | applets/applets.c | 2 |
4 files changed, 9 insertions, 51 deletions
diff --git a/applets/Kbuild b/applets/Kbuild new file mode 100644 index 000000000..04932eec4 --- /dev/null +++ b/applets/Kbuild | |||
@@ -0,0 +1,9 @@ | |||
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 | obj-y:= | ||
8 | obj-y += applets.o | ||
9 | obj-y += busybox.o | ||
diff --git a/applets/Makefile b/applets/Makefile deleted file mode 100644 index 0d892f5e5..000000000 --- a/applets/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)/applets | ||
14 | APPLETS_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/applets/Makefile.in b/applets/Makefile.in deleted file mode 100644 index 05580b9b4..000000000 --- a/applets/Makefile.in +++ /dev/null | |||
@@ -1,26 +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 | APPLETS_AR:=applets.a | ||
8 | ifndef $(APPLETS_DIR) | ||
9 | APPLETS_DIR:=$(top_builddir)/applets/ | ||
10 | endif | ||
11 | srcdir=$(top_srcdir)/applets | ||
12 | |||
13 | APPLET_SRC:= $(patsubst %,$(srcdir)/%,applets.c busybox.c) | ||
14 | APPLET_OBJ:= $(patsubst $(srcdir)/%.c,$(APPLETS_DIR)%.o, $(APPLET_SRC)) | ||
15 | |||
16 | APPLET_SRC-y+=$(APPLET_SRC) | ||
17 | APPLET_SRC-a+=$(APPLET_SRC) | ||
18 | |||
19 | libraries-y+=$(APPLETS_DIR)$(APPLETS_AR) | ||
20 | |||
21 | $(APPLETS_DIR)$(APPLETS_AR): $(APPLET_OBJ) | ||
22 | $(do_ar) | ||
23 | |||
24 | $(APPLET_OBJ): $(top_builddir)/.config | ||
25 | $(APPLET_OBJ): $(APPLETS_DIR)%.o: $(srcdir)/%.c | ||
26 | $(compile.c) | ||
diff --git a/applets/applets.c b/applets/applets.c index d615ffcd8..b1f580953 100644 --- a/applets/applets.c +++ b/applets/applets.c | |||
@@ -42,8 +42,6 @@ const size_t NUM_APPLETS = (sizeof (applets) / sizeof (struct BB_applet) - 1); | |||
42 | #ifdef CONFIG_FEATURE_SUID_CONFIG | 42 | #ifdef CONFIG_FEATURE_SUID_CONFIG |
43 | 43 | ||
44 | #include <ctype.h> | 44 | #include <ctype.h> |
45 | #include "pwd_.h" | ||
46 | #include "grp_.h" | ||
47 | 45 | ||
48 | #define CONFIG_FILE "/etc/busybox.conf" | 46 | #define CONFIG_FILE "/etc/busybox.conf" |
49 | 47 | ||