Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate.
[oweals/busybox.git] / init / Makefile.in
index c7d3cc4a45e5a7b889595a567c7637272d9d0811..a48ead446be5af5bc3b1270cc8c265f45908bc69 100644 (file)
@@ -14,8 +14,6 @@ INIT-y:=
 INIT-$(CONFIG_HALT)                    += halt.o
 INIT-$(CONFIG_INIT)                    += init.o
 INIT-$(CONFIG_MESG)                    += mesg.o
-INIT-$(CONFIG_POWEROFF)                        += poweroff.o
-INIT-$(CONFIG_REBOOT)                  += reboot.o
 
 ifeq ($(strip $(CONFIG_HALT)),y)
 CONFIG_INIT_SHARED=y
@@ -23,23 +21,15 @@ else
 ifeq ($(strip $(CONFIG_INIT)),y)
 CONFIG_INIT_SHARED=y
 else
-ifeq ($(strip $(CONFIG_POWEROFF)),y)
-CONFIG_INIT_SHARED=y
-else
-ifeq ($(strip $(CONFIG_REBOOT)),y)
-CONFIG_INIT_SHARED=y
-else
 CONFIG_INIT_SHARED=n
 endif
 endif
-endif
-endif
 
-ifeq ($(strip $(CONFIG_INIT_SHARED)),y)
 INIT-$(CONFIG_INIT_SHARED)        += init_shared.o
-endif
 
+ifneq ($(strip $(INIT-y)),)
 libraries-y+=$(INIT_DIR)$(INIT_AR)
+endif
 
 INIT_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(INIT-y))
 INIT_SRC-a:=$(wildcard $(srcdir)/*.c)