summaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-03-01 22:54:48 +0000
committerBernhard Reutner-Fischer2006-03-01 22:54:48 +0000
commit5d26126b9e8fd6c6f5098dbaa2e5b9e2901749bf (patch)
tree233c051da862595b6e473e832051708e2d9803cb /miscutils
parent12c2429a4242a157217c5bc9673a531fa1e1de61 (diff)
downloadbusybox-5d26126b9e8fd6c6f5098dbaa2e5b9e2901749bf.zip
busybox-5d26126b9e8fd6c6f5098dbaa2e5b9e2901749bf.tar.gz
- fixes parallel builds (make -j)
- use less resources for the buildsystem itself
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/Makefile.in27
1 files changed, 9 insertions, 18 deletions
diff --git a/miscutils/Makefile.in b/miscutils/Makefile.in
index a0b6b72..e431f48 100644
--- a/miscutils/Makefile.in
+++ b/miscutils/Makefile.in
@@ -4,13 +4,9 @@
#
# Licensed under the GPL v2, see the file LICENSE in this tarball.
-MISCUTILS_AR:=miscutils.a
-ifndef $(MISCUTILS_DIR)
-MISCUTILS_DIR:=$(top_builddir)/miscutils/
-endif
srcdir=$(top_srcdir)/miscutils
+objdir=$(top_builddir)/miscutils
-MISCUTILS-y:=
MISCUTILS-$(CONFIG_ADJTIMEX) += adjtimex.o
MISCUTILS-$(CONFIG_CROND) += crond.o
MISCUTILS-$(CONFIG_CRONTAB) += crontab.o
@@ -31,8 +27,13 @@ MISCUTILS-$(CONFIG_STRINGS) += strings.o
MISCUTILS-$(CONFIG_TIME) += time.o
MISCUTILS-$(CONFIG_WATCHDOG) += watchdog.o
-ifneq ($(strip $(MISCUTILS-y)),)
-libraries-y+=$(MISCUTILS_DIR)$(MISCUTILS_AR)
+needlibm-y:=
+needlibm-$(CONFIG_DC) := y
+ifeq ($(needlibm-m),y)
+needlibm-y:=y
+endif
+ifeq ($(needlibm-y),y)
+ LIBRARIES := $(filter-out -lm,$(LIBRARIES)) -lm
endif
MISCUTILS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(MISCUTILS-y))
@@ -40,15 +41,5 @@ MISCUTILS_SRC-a:=$(wildcard $(srcdir)/*.c)
APPLET_SRC-y+=$(MISCUTILS_SRC-y)
APPLET_SRC-a+=$(MISCUTILS_SRC-a)
-needlibm-y:=
-needlibm-$(CONFIG_DC) := y
-
-ifeq ($(needlibm-y),y)
- LIBRARIES := -lm $(filter-out -lm,$(LIBRARIES))
-endif
-
-$(MISCUTILS_DIR)$(MISCUTILS_AR): $(patsubst %,$(MISCUTILS_DIR)%, $(MISCUTILS-y))
- $(do_ar)
+miscutils_OBJ:= $(patsubst %,$(objdir)/%,$(MISCUTILS-y))
-$(MISCUTILS_DIR)%.o: $(srcdir)/%.c
- $(compile.c)