3 # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
5 # Licensed under the GPL v2, see the file LICENSE in this tarball.
9 INIT_DIR:=$(top_builddir)/init/
11 srcdir=$(top_srcdir)/init
14 INIT-$(CONFIG_HALT) += halt.o
15 INIT-$(CONFIG_INIT) += init.o
16 INIT-$(CONFIG_MESG) += mesg.o
18 ifeq ($(strip $(CONFIG_HALT)),y)
21 ifeq ($(strip $(CONFIG_INIT)),y)
28 INIT-$(CONFIG_INIT_SHARED) += init_shared.o
30 ifneq ($(strip $(INIT-y)),)
31 libraries-y+=$(INIT_DIR)$(INIT_AR)
34 INIT_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(INIT-y))
35 INIT_SRC-a:=$(wildcard $(srcdir)/*.c)
36 APPLET_SRC-y+=$(INIT_SRC-y)
37 APPLET_SRC-a+=$(INIT_SRC-a)
39 $(INIT_DIR)$(INIT_AR): $(patsubst %,$(INIT_DIR)%, $(INIT-y))
42 $(INIT_DIR)%.o: $(srcdir)/%.c