summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-03-13 19:04:00 +0000
committerBernhard Reutner-Fischer2006-03-13 19:04:00 +0000
commitdf10094870c28cc0c6c5577c9aa03b8ede9cb8a6 (patch)
tree49493696039b285aa751a5bc884fc70c9c85e878 /applets
parentc5b1d4d6b14f22b5e2f7ae42eb01bf2746b8001c (diff)
downloadbusybox-df10094870c28cc0c6c5577c9aa03b8ede9cb8a6.zip
busybox-df10094870c28cc0c6c5577c9aa03b8ede9cb8a6.tar.gz
- revert back to r14406
Diffstat (limited to 'applets')
-rw-r--r--applets/Makefile.in24
1 files changed, 15 insertions, 9 deletions
diff --git a/applets/Makefile.in b/applets/Makefile.in
index 391b465..02bcda9 100644
--- a/applets/Makefile.in
+++ b/applets/Makefile.in
@@ -4,17 +4,23 @@
#
# Licensed under the GPL v2, see the file LICENSE in this tarball.
-srcdir:=$(top_srcdir)/applets
-objdir:=$(top_builddir)/applets
+APPLETS_AR:=applets.a
+ifndef $(APPLETS_DIR)
+APPLETS_DIR:=$(top_builddir)/applets/
+endif
+srcdir=$(top_srcdir)/applets
-APPLETS_SRC:= $(patsubst %,$(srcdir)/%,applets.c busybox.c version.c)
+APPLET_SRC:= $(patsubst %,$(srcdir)/%,applets.c busybox.c version.c)
+APPLET_OBJ:= $(patsubst $(srcdir)/%.c,$(APPLETS_DIR)%.o, $(APPLET_SRC))
-APPLET_SRC-y+=$(APPLETS_SRC)
-APPLET_SRC-a+=$(APPLETS_SRC)
+APPLET_SRC-y+=$(APPLET_SRC)
+APPLET_SRC-a+=$(APPLET_SRC)
-applets_OBJ:=$(patsubst $(srcdir)/%.c,$(objdir)/%.o,$(APPLETS_SRC))
+libraries-y+=$(APPLETS_DIR)$(APPLETS_AR)
-$(applets_OBJ): $(objdir)/%.o: $(srcdir)/%.c
-$(objdir)/applets.a: $(applets_OBJ)
-libraries-y:=$(libraries-y) $(objdir)/applets.a
+$(APPLETS_DIR)$(APPLETS_AR): $(APPLET_OBJ)
+ $(do_ar)
+$(APPLET_OBJ): $(top_builddir)/.config
+$(APPLET_OBJ): $(APPLETS_DIR)%.o: $(srcdir)/%.c
+ $(compile.c)