summaryrefslogtreecommitdiffstats
path: root/urunlevel/runlevel/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'urunlevel/runlevel/Makefile.in')
-rw-r--r--urunlevel/runlevel/Makefile.in75
1 files changed, 75 insertions, 0 deletions
diff --git a/urunlevel/runlevel/Makefile.in b/urunlevel/runlevel/Makefile.in
new file mode 100644
index 0000000..787dd18
--- /dev/null
+++ b/urunlevel/runlevel/Makefile.in
@@ -0,0 +1,75 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18#
19
20RUNLEVEL_AR:=runlevel.a
21ifndef $(RUNLEVEL_DIR)
22RUNLEVEL_DIR:=$(top_builddir)/runlevel/
23endif
24srcdir=$(top_srcdir)/runlevel
25
26RUNLEVEL-y:=
27RUNLEVEL-$(CONFIG_BOOT_NAMED) += boot_named.o
28RUNLEVEL-$(CONFIG_BOOT_PORTMAP) += boot_portmap.o
29RUNLEVEL-$(CONFIG_BOOT_SYSLOG) += boot_syslog.o
30RUNLEVEL-$(CONFIG_BOOT_TIME) += boot_time.o
31RUNLEVEL-$(CONFIG_INSTALL_INITD) += install_initd.o
32RUNLEVEL-$(CONFIG_KILLPROC) += killproc.o
33RUNLEVEL-$(CONFIG_LOCAL_FS) += local_fs.o
34RUNLEVEL-$(CONFIG_LOG_FAILURE_MSG) += log_failure_msg.o
35RUNLEVEL-$(CONFIG_LOG_SUCCESS_MSG) += log_success_msg.o
36RUNLEVEL-$(CONFIG_LOG_WARNING_MSG) += log_warning_msg.o
37RUNLEVEL-$(CONFIG_NETWORK) += network.o
38RUNLEVEL-$(CONFIG_PIDOFPROC) += pidofproc.o
39RUNLEVEL-$(CONFIG_RC) += rc.o
40RUNLEVEL-$(CONFIG_REMOTE_FS) += remote_fs.o
41RUNLEVEL-$(CONFIG_REMOVE_INITD) += remove_initd.o
42RUNLEVEL-$(CONFIG_START_DAEMON) += start_daemon.o
43RUNLEVEL-$(CONFIG_UDHCPC_SCRIPT) += udhcpc_script.o
44
45
46#ifeq ($(CONFIG_HALT), y)
47CONFIG_RUNLEVEL_SHARED=y
48#else
49#ifeq ($(CONFIG_INIT), y)
50#CONFIG_RUNLEVEL_SHARED=y
51#else
52#ifeq ($(CONFIG_POWEROFF), y)
53#CONFIG_RUNLEVEL_SHARED=y
54#else
55#ifeq ($(CONFIG_REBOOT), y)
56#CONFIG_RUNLEVEL_SHARED=y
57#else
58#CONFIG_RUNLEVEL_SHARED=n
59#endif
60#endif
61#endif
62#endif
63
64ifeq ($(CONFIG_RUNLEVEL_SHARED), y)
65RUNLEVEL-$(CONFIG_RUNLEVEL_SHARED) += lib_init_d.o
66endif
67
68libraries-y+=$(RUNLEVEL_DIR)$(RUNLEVEL_AR)
69
70$(RUNLEVEL_DIR)$(RUNLEVEL_AR): $(patsubst %,$(RUNLEVEL_DIR)%, $(RUNLEVEL-y))
71 $(AR) -ro $@ $(patsubst %,$(RUNLEVEL_DIR)%, $(RUNLEVEL-y))
72
73$(RUNLEVEL_DIR)%.o: $(srcdir)/%.c
74 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
75