diff options
Diffstat (limited to 'applets')
-rw-r--r-- | applets/Makefile.in | 24 |
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 | ||
7 | srcdir:=$(top_srcdir)/applets | 7 | APPLETS_AR:=applets.a |
8 | objdir:=$(top_builddir)/applets | 8 | ifndef $(APPLETS_DIR) |
9 | APPLETS_DIR:=$(top_builddir)/applets/ | ||
10 | endif | ||
11 | srcdir=$(top_srcdir)/applets | ||
9 | 12 | ||
10 | APPLETS_SRC:= $(patsubst %,$(srcdir)/%,applets.c busybox.c version.c) | 13 | APPLET_SRC:= $(patsubst %,$(srcdir)/%,applets.c busybox.c version.c) |
14 | APPLET_OBJ:= $(patsubst $(srcdir)/%.c,$(APPLETS_DIR)%.o, $(APPLET_SRC)) | ||
11 | 15 | ||
12 | APPLET_SRC-y+=$(APPLETS_SRC) | 16 | APPLET_SRC-y+=$(APPLET_SRC) |
13 | APPLET_SRC-a+=$(APPLETS_SRC) | 17 | APPLET_SRC-a+=$(APPLET_SRC) |
14 | 18 | ||
15 | applets_OBJ:=$(patsubst $(srcdir)/%.c,$(objdir)/%.o,$(APPLETS_SRC)) | 19 | libraries-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) |
19 | libraries-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) | ||