No longer needed
[oweals/busybox.git] / init / Makefile.in
index cd3ead839d1ce6767de648d013ea47bf37ce9cde..6264710db244c59b2215396d9a69a27831f7228f 100644 (file)
@@ -1,6 +1,6 @@
 # Makefile for busybox
 #
-# Copyright (C) 1999-2002 Erik Andersen <andersee@debian.org>
+# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -28,8 +28,28 @@ INIT-$(CONFIG_INIT)                  += init.o
 INIT-$(CONFIG_MESG)                    += mesg.o
 INIT-$(CONFIG_POWEROFF)                        += poweroff.o
 INIT-$(CONFIG_REBOOT)                  += reboot.o
-INIT-$(CONFIG_START_STOP_DAEMON)       += start_stop_daemon.o
-INIT-$(CONFIG_RUN_PARTS)               += run_parts.o
+
+ifeq ($(CONFIG_HALT), y)
+CONFIG_INIT_SHARED=y
+else
+ifeq ($(CONFIG_INIT), y)
+CONFIG_INIT_SHARED=y
+else
+ifeq ($(CONFIG_POWEROFF), y)
+CONFIG_INIT_SHARED=y
+else
+ifeq ($(CONFIG_REBOOT), y)
+CONFIG_INIT_SHARED=y
+else
+CONFIG_INIT_SHARED=n
+endif
+endif
+endif
+endif
+
+ifeq ($(CONFIG_INIT_SHARED), y)
+INIT-$(CONFIG_INIT_SHARED)        += init_shared.o
+endif
 
 libraries-y+=$(INIT_DIR)$(INIT_AR)