diff options
Diffstat (limited to 'urunlevel/runlevel/Makefile.in')
-rw-r--r-- | urunlevel/runlevel/Makefile.in | 75 |
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 | |||
20 | RUNLEVEL_AR:=runlevel.a | ||
21 | ifndef $(RUNLEVEL_DIR) | ||
22 | RUNLEVEL_DIR:=$(top_builddir)/runlevel/ | ||
23 | endif | ||
24 | srcdir=$(top_srcdir)/runlevel | ||
25 | |||
26 | RUNLEVEL-y:= | ||
27 | RUNLEVEL-$(CONFIG_BOOT_NAMED) += boot_named.o | ||
28 | RUNLEVEL-$(CONFIG_BOOT_PORTMAP) += boot_portmap.o | ||
29 | RUNLEVEL-$(CONFIG_BOOT_SYSLOG) += boot_syslog.o | ||
30 | RUNLEVEL-$(CONFIG_BOOT_TIME) += boot_time.o | ||
31 | RUNLEVEL-$(CONFIG_INSTALL_INITD) += install_initd.o | ||
32 | RUNLEVEL-$(CONFIG_KILLPROC) += killproc.o | ||
33 | RUNLEVEL-$(CONFIG_LOCAL_FS) += local_fs.o | ||
34 | RUNLEVEL-$(CONFIG_LOG_FAILURE_MSG) += log_failure_msg.o | ||
35 | RUNLEVEL-$(CONFIG_LOG_SUCCESS_MSG) += log_success_msg.o | ||
36 | RUNLEVEL-$(CONFIG_LOG_WARNING_MSG) += log_warning_msg.o | ||
37 | RUNLEVEL-$(CONFIG_NETWORK) += network.o | ||
38 | RUNLEVEL-$(CONFIG_PIDOFPROC) += pidofproc.o | ||
39 | RUNLEVEL-$(CONFIG_RC) += rc.o | ||
40 | RUNLEVEL-$(CONFIG_REMOTE_FS) += remote_fs.o | ||
41 | RUNLEVEL-$(CONFIG_REMOVE_INITD) += remove_initd.o | ||
42 | RUNLEVEL-$(CONFIG_START_DAEMON) += start_daemon.o | ||
43 | RUNLEVEL-$(CONFIG_UDHCPC_SCRIPT) += udhcpc_script.o | ||
44 | |||
45 | |||
46 | #ifeq ($(CONFIG_HALT), y) | ||
47 | CONFIG_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 | |||
64 | ifeq ($(CONFIG_RUNLEVEL_SHARED), y) | ||
65 | RUNLEVEL-$(CONFIG_RUNLEVEL_SHARED) += lib_init_d.o | ||
66 | endif | ||
67 | |||
68 | libraries-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 | |||