aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/Makefile.in21
1 files changed, 14 insertions, 7 deletions
diff --git a/init/Makefile.in b/init/Makefile.in
index ef5eb1c58..a48ead446 100644
--- a/init/Makefile.in
+++ b/init/Makefile.in
@@ -4,9 +4,13 @@
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)/init 7INIT_AR:=init.a
8objdir:=$(top_builddir)/init 8ifndef $(INIT_DIR)
9INIT_DIR:=$(top_builddir)/init/
10endif
11srcdir=$(top_srcdir)/init
9 12
13INIT-y:=
10INIT-$(CONFIG_HALT) += halt.o 14INIT-$(CONFIG_HALT) += halt.o
11INIT-$(CONFIG_INIT) += init.o 15INIT-$(CONFIG_INIT) += init.o
12INIT-$(CONFIG_MESG) += mesg.o 16INIT-$(CONFIG_MESG) += mesg.o
@@ -23,14 +27,17 @@ endif
23 27
24INIT-$(CONFIG_INIT_SHARED) += init_shared.o 28INIT-$(CONFIG_INIT_SHARED) += init_shared.o
25 29
30ifneq ($(strip $(INIT-y)),)
31libraries-y+=$(INIT_DIR)$(INIT_AR)
32endif
33
26INIT_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(INIT-y)) 34INIT_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(INIT-y))
27INIT_SRC-a:=$(wildcard $(srcdir)/*.c) 35INIT_SRC-a:=$(wildcard $(srcdir)/*.c)
28APPLET_SRC-y+=$(INIT_SRC-y) 36APPLET_SRC-y+=$(INIT_SRC-y)
29APPLET_SRC-a+=$(INIT_SRC-a) 37APPLET_SRC-a+=$(INIT_SRC-a)
30 38
31init_OBJ:= $(patsubst %,$(objdir)/%,$(INIT-y)) 39$(INIT_DIR)$(INIT_AR): $(patsubst %,$(INIT_DIR)%, $(INIT-y))
32 40 $(do_ar)
33$(init_OBJ): $(objdir)/%.o: $(srcdir)/%.c
34$(objdir)/init.a: $(init_OBJ)
35libraries-y:=$(libraries-y) $(objdir)/init.a
36 41
42$(INIT_DIR)%.o: $(srcdir)/%.c
43 $(compile.c)