aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
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 391b4658c..02bcda93b 100644
--- a/applets/Makefile.in
+++ b/applets/Makefile.in
@@ -4,17 +4,23 @@
4# 4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball. 5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6 6
7srcdir:=$(top_srcdir)/applets 7APPLETS_AR:=applets.a
8objdir:=$(top_builddir)/applets 8ifndef $(APPLETS_DIR)
9APPLETS_DIR:=$(top_builddir)/applets/
10endif
11srcdir=$(top_srcdir)/applets
9 12
10APPLETS_SRC:= $(patsubst %,$(srcdir)/%,applets.c busybox.c version.c) 13APPLET_SRC:= $(patsubst %,$(srcdir)/%,applets.c busybox.c version.c)
14APPLET_OBJ:= $(patsubst $(srcdir)/%.c,$(APPLETS_DIR)%.o, $(APPLET_SRC))
11 15
12APPLET_SRC-y+=$(APPLETS_SRC) 16APPLET_SRC-y+=$(APPLET_SRC)
13APPLET_SRC-a+=$(APPLETS_SRC) 17APPLET_SRC-a+=$(APPLET_SRC)
14 18
15applets_OBJ:=$(patsubst $(srcdir)/%.c,$(objdir)/%.o,$(APPLETS_SRC)) 19libraries-y+=$(APPLETS_DIR)$(APPLETS_AR)
16 20
17$(applets_OBJ): $(objdir)/%.o: $(srcdir)/%.c 21$(APPLETS_DIR)$(APPLETS_AR): $(APPLET_OBJ)
18$(objdir)/applets.a: $(applets_OBJ) 22 $(do_ar)
19libraries-y:=$(libraries-y) $(objdir)/applets.a
20 23
24$(APPLET_OBJ): $(top_builddir)/.config
25$(APPLET_OBJ): $(APPLETS_DIR)%.o: $(srcdir)/%.c
26 $(compile.c)