summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--Rules.mak11
-rw-r--r--applets/Makefile.in2
-rw-r--r--applets/applets.c11
-rw-r--r--applets/usage.c10
5 files changed, 12 insertions, 23 deletions
diff --git a/Makefile b/Makefile
index 99c1ced..7a83370 100644
--- a/Makefile
+++ b/Makefile
@@ -141,7 +141,6 @@ scripts/split-include: scripts/split-include.c
`find . -name \*.c -print` >> .depend;
scripts/mkdep -I include -- \
`find . -name \*.h -print` >> .hdepend;
- $(MAKE) $(patsubst %,_sfdep_%,$(DIRS)) _FASTDEP_ALL_SUB_DIRS="$(DIRS)" ;
depend dep: include/config.h .depend
diff --git a/Rules.mak b/Rules.mak
index 5e0a5e6..4a1a1bd 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -192,17 +192,6 @@ CFLAGS += $(CFLAGS_EXTRA)
%.o: %.c
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
-ifdef _FASTDEP_ALL_SUB_DIRS
-fastdep: dummy
- $(TOPDIR)scripts/mkdep $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -- $(wildcard *.[chS]) > .depend
-ifdef ALL_SUB_DIRS
- $(MAKE) $(patsubst %,_sfdep_%,$(ALL_SUB_DIRS)) _FASTDEP_ALL_SUB_DIRS="$(ALL_SUB_DIRS)"
-endif
-
-$(patsubst %,_sfdep_%,$(_FASTDEP_ALL_SUB_DIRS)):
- $(MAKE) -C $(patsubst _sfdep_%,%,$@) fastdep
-endif
-
.PHONY: dummy
diff --git a/applets/Makefile.in b/applets/Makefile.in
index 79582e0..afd5cbe 100644
--- a/applets/Makefile.in
+++ b/applets/Makefile.in
@@ -22,7 +22,7 @@ ifndef $(APPLETS_DIR)
APPLETS_DIR:=$(TOPDIR)applets/
endif
-APPLET_SRC:=applets.c busybox.c usage.c
+APPLET_SRC:=applets.c busybox.c
APPLET_OBJ:= $(patsubst %.c,$(APPLETS_DIR)%.o, $(APPLET_SRC))
diff --git a/applets/applets.c b/applets/applets.c
index 7d8adfb..d370e6a 100644
--- a/applets/applets.c
+++ b/applets/applets.c
@@ -32,11 +32,22 @@
#include <assert.h>
#include "busybox.h"
+const char usage_messages[] =
+
+#define MAKE_USAGE
+#include "usage.h"
+
+#include "applets.h"
+
+;
+
+#undef MAKE_USAGE
#undef APPLET
#undef APPLET_NOUSAGE
#undef PROTOTYPES
#include "applets.h"
+
static struct BB_applet *applet_using;
/* The -1 arises because of the {0,NULL,0,-1} entry above. */
diff --git a/applets/usage.c b/applets/usage.c
deleted file mode 100644
index dfea1f9..0000000
--- a/applets/usage.c
+++ /dev/null
@@ -1,10 +0,0 @@
-#include "busybox.h"
-
-const char usage_messages[] =
-
-#define MAKE_USAGE
-#include "usage.h"
-
-#include "applets.h"
-
-;