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 libraries-y+=$(INIT_DIR)$(INIT_AR)
32 INIT_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(INIT-y))
33 INIT_SRC-a:=$(wildcard $(srcdir)/*.c)
34 APPLET_SRC-y+=$(INIT_SRC-y)
35 APPLET_SRC-a+=$(INIT_SRC-a)
37 $(INIT_DIR)$(INIT_AR): $(patsubst %,$(INIT_DIR)%, $(INIT-y))
40 $(INIT_DIR)%.o: $(srcdir)/%.c