X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=init%2FMakefile.in;h=a48ead446be5af5bc3b1270cc8c265f45908bc69;hb=5d8843e451c01d8abfe6b5be772637310e9e581e;hp=c7d3cc4a45e5a7b889595a567c7637272d9d0811;hpb=b38673fb9fee63303cc6b7d4923ea0dd7cf7310a;p=oweals%2Fbusybox.git diff --git a/init/Makefile.in b/init/Makefile.in index c7d3cc4a4..a48ead446 100644 --- a/init/Makefile.in +++ b/init/Makefile.in @@ -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)