3 # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
5 # Licensed under the GPL v2, see the file LICENSE in this tarball.
7 srcdir=$(top_srcdir)/init
8 objdir=$(top_builddir)/init
10 INIT-$(CONFIG_HALT) += halt.o
11 INIT-$(CONFIG_INIT) += init.o
12 INIT-$(CONFIG_MESG) += mesg.o
14 ifeq ($(strip $(CONFIG_HALT)),y)
17 ifeq ($(strip $(CONFIG_INIT)),y)
24 INIT-$(CONFIG_INIT_SHARED) += init_shared.o
26 INIT_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(INIT-y))
27 INIT_SRC-a:=$(wildcard $(srcdir)/*.c)
28 APPLET_SRC-y+=$(INIT_SRC-y)
29 APPLET_SRC-a+=$(INIT_SRC-a)
31 init_OBJ:= $(patsubst %,$(objdir)/%,$(INIT-y))