diff options
Diffstat (limited to 'applets/Makefile.in')
-rw-r--r-- | applets/Makefile.in | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/applets/Makefile.in b/applets/Makefile.in index afd5cbeb9..e31bb6fd9 100644 --- a/applets/Makefile.in +++ b/applets/Makefile.in | |||
@@ -19,18 +19,19 @@ | |||
19 | 19 | ||
20 | APPLETS_AR:=applets.a | 20 | APPLETS_AR:=applets.a |
21 | ifndef $(APPLETS_DIR) | 21 | ifndef $(APPLETS_DIR) |
22 | APPLETS_DIR:=$(TOPDIR)applets/ | 22 | APPLETS_DIR:=$(top_builddir)/applets/ |
23 | endif | 23 | endif |
24 | srcdir=$(top_srcdir)/applets | ||
24 | 25 | ||
25 | APPLET_SRC:=applets.c busybox.c | 26 | APPLET_SRC:=applets.c busybox.c |
26 | APPLET_OBJ:= $(patsubst %.c,$(APPLETS_DIR)%.o, $(APPLET_SRC)) | 27 | APPLET_OBJ:= $(patsubst %.c,$(APPLETS_DIR)%.o, $(APPLET_SRC)) |
27 | 28 | ||
28 | |||
29 | |||
30 | libraries-y+=$(APPLETS_DIR)$(APPLETS_AR) | 29 | libraries-y+=$(APPLETS_DIR)$(APPLETS_AR) |
31 | 30 | ||
32 | $(APPLET_OBJ): $(TOPDIR).config | ||
33 | |||
34 | $(APPLETS_DIR)$(APPLETS_AR): $(APPLET_OBJ) | 31 | $(APPLETS_DIR)$(APPLETS_AR): $(APPLET_OBJ) |
35 | $(AR) -ro $@ $(APPLET_OBJ) | 32 | $(AR) -ro $@ $(APPLET_OBJ) |
36 | 33 | ||
34 | $(APPLET_OBJ): $(top_builddir)/.config | ||
35 | $(APPLET_OBJ): $(APPLETS_DIR)%.o: $(srcdir)/%.c | ||
36 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< | ||
37 | |||