projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate.
[oweals/busybox.git]
/
init
/
Makefile.in
diff --git
a/init/Makefile.in
b/init/Makefile.in
index 5b3d9eaf0ff79cc65bf2150be4dc4d8be77c6ef1..a48ead446be5af5bc3b1270cc8c265f45908bc69 100644
(file)
--- a/
init/Makefile.in
+++ b/
init/Makefile.in
@@
-14,36
+14,30
@@
INIT-y:=
INIT-$(CONFIG_HALT) += halt.o
INIT-$(CONFIG_INIT) += init.o
INIT-$(CONFIG_MESG) += mesg.o
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 ($(
CONFIG_HALT),
y)
+ifeq ($(
strip $(CONFIG_HALT)),
y)
CONFIG_INIT_SHARED=y
else
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)
+ifeq ($(strip $(CONFIG_INIT)),y)
CONFIG_INIT_SHARED=y
else
CONFIG_INIT_SHARED=n
endif
endif
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
INIT-$(CONFIG_INIT_SHARED) += init_shared.o
-endif
+ifneq ($(strip $(INIT-y)),)
libraries-y+=$(INIT_DIR)$(INIT_AR)
libraries-y+=$(INIT_DIR)$(INIT_AR)
+endif
+
+INIT_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(INIT-y))
+INIT_SRC-a:=$(wildcard $(srcdir)/*.c)
+APPLET_SRC-y+=$(INIT_SRC-y)
+APPLET_SRC-a+=$(INIT_SRC-a)
$(INIT_DIR)$(INIT_AR): $(patsubst %,$(INIT_DIR)%, $(INIT-y))
$(INIT_DIR)$(INIT_AR): $(patsubst %,$(INIT_DIR)%, $(INIT-y))
- $(
AR) $(ARFLAGS) $@ $(patsubst %,$(INIT_DIR)%, $(INIT-y)
)
+ $(
do_ar
)
$(INIT_DIR)%.o: $(srcdir)/%.c
$(INIT_DIR)%.o: $(srcdir)/%.c
- $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
-
+ $(compile.c)