aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rw-r--r--applets/Kbuild9
-rw-r--r--applets/Makefile23
-rw-r--r--applets/Makefile.in26
-rw-r--r--applets/applets.c2
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
7obj-y:=
8obj-y += applets.o
9obj-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
7ifndef top_srcdir
8top_srcdir=..
9endif
10ifndef top_builddir
11top_builddir=..
12endif
13srcdir=$(top_srcdir)/applets
14APPLETS_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/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
7APPLETS_AR:=applets.a
8ifndef $(APPLETS_DIR)
9APPLETS_DIR:=$(top_builddir)/applets/
10endif
11srcdir=$(top_srcdir)/applets
12
13APPLET_SRC:= $(patsubst %,$(srcdir)/%,applets.c busybox.c)
14APPLET_OBJ:= $(patsubst $(srcdir)/%.c,$(APPLETS_DIR)%.o, $(APPLET_SRC))
15
16APPLET_SRC-y+=$(APPLET_SRC)
17APPLET_SRC-a+=$(APPLET_SRC)
18
19libraries-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