- fixes parallel builds (make -j)
[oweals/busybox.git] / init / Makefile.in
1 # Makefile for busybox
2 #
3 # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4 #
5 # Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7 srcdir=$(top_srcdir)/init
8 objdir=$(top_builddir)/init
9
10 INIT-$(CONFIG_HALT)                     += halt.o
11 INIT-$(CONFIG_INIT)                     += init.o
12 INIT-$(CONFIG_MESG)                     += mesg.o
13
14 ifeq ($(strip $(CONFIG_HALT)),y)
15 CONFIG_INIT_SHARED=y
16 else
17 ifeq ($(strip $(CONFIG_INIT)),y)
18 CONFIG_INIT_SHARED=y
19 else
20 CONFIG_INIT_SHARED=n
21 endif
22 endif
23
24 INIT-$(CONFIG_INIT_SHARED)        += init_shared.o
25
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)
30
31 init_OBJ:=  $(patsubst %,$(objdir)/%,$(INIT-y))
32