summaryrefslogtreecommitdiffhomepage
path: root/applets/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'applets/Makefile.in')
-rw-r--r--applets/Makefile.in20
1 files changed, 5 insertions, 15 deletions
diff --git a/applets/Makefile.in b/applets/Makefile.in
index 02bcda93b..64aefc017 100644
--- a/applets/Makefile.in
+++ b/applets/Makefile.in
@@ -4,23 +4,13 @@
#
# Licensed under the GPL v2, see the file LICENSE in this tarball.
-APPLETS_AR:=applets.a
-ifndef $(APPLETS_DIR)
-APPLETS_DIR:=$(top_builddir)/applets/
-endif
srcdir=$(top_srcdir)/applets
+objdir=$(top_builddir)/applets
-APPLET_SRC:= $(patsubst %,$(srcdir)/%,applets.c busybox.c version.c)
-APPLET_OBJ:= $(patsubst $(srcdir)/%.c,$(APPLETS_DIR)%.o, $(APPLET_SRC))
+APPLETS_SRC:= $(patsubst %,$(srcdir)/%,applets.c busybox.c version.c)
-APPLET_SRC-y+=$(APPLET_SRC)
-APPLET_SRC-a+=$(APPLET_SRC)
+APPLET_SRC-y+=$(APPLETS_SRC)
+APPLET_SRC-a+=$(APPLETS_SRC)
-libraries-y+=$(APPLETS_DIR)$(APPLETS_AR)
+applets_OBJ:=$(patsubst $(srcdir)/%.c,$(objdir)/%.o,$(APPLETS_SRC))
-$(APPLETS_DIR)$(APPLETS_AR): $(APPLET_OBJ)
- $(do_ar)
-
-$(APPLET_OBJ): $(top_builddir)/.config
-$(APPLET_OBJ): $(APPLETS_DIR)%.o: $(srcdir)/%.c
- $(compile.c)