summaryrefslogtreecommitdiff
path: root/applets
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 /applets
parent12c2429a4242a157217c5bc9673a531fa1e1de61 (diff)
downloadbusybox-5d26126b9e8fd6c6f5098dbaa2e5b9e2901749bf.zip
busybox-5d26126b9e8fd6c6f5098dbaa2e5b9e2901749bf.tar.gz
- fixes parallel builds (make -j)
- use less resources for the buildsystem itself
Diffstat (limited to 'applets')
-rw-r--r--applets/Makefile.in20
-rwxr-xr-xapplets/install.sh3
2 files changed, 7 insertions, 16 deletions
diff --git a/applets/Makefile.in b/applets/Makefile.in
index 02bcda9..64aefc0 100644
--- a/applets/Makefile.in
+++ b/applets/Makefile.in
@@ -4,23 +4,13 @@
#
# Licensed under the GPL v2, see the file LICENSE in this tarball.
-APPLETS_AR:=applets.a
-ifndef $(APPLETS_DIR)
-APPLETS_DIR:=$(top_builddir)/applets/
-endif
srcdir=$(top_srcdir)/applets
+objdir=$(top_builddir)/applets
-APPLET_SRC:= $(patsubst %,$(srcdir)/%,applets.c busybox.c version.c)
-APPLET_OBJ:= $(patsubst $(srcdir)/%.c,$(APPLETS_DIR)%.o, $(APPLET_SRC))
+APPLETS_SRC:= $(patsubst %,$(srcdir)/%,applets.c busybox.c version.c)
-APPLET_SRC-y+=$(APPLET_SRC)
-APPLET_SRC-a+=$(APPLET_SRC)
+APPLET_SRC-y+=$(APPLETS_SRC)
+APPLET_SRC-a+=$(APPLETS_SRC)
-libraries-y+=$(APPLETS_DIR)$(APPLETS_AR)
+applets_OBJ:=$(patsubst $(srcdir)/%.c,$(objdir)/%.o,$(APPLETS_SRC))
-$(APPLETS_DIR)$(APPLETS_AR): $(APPLET_OBJ)
- $(do_ar)
-
-$(APPLET_OBJ): $(top_builddir)/.config
-$(APPLET_OBJ): $(APPLETS_DIR)%.o: $(srcdir)/%.c
- $(compile.c)
diff --git a/applets/install.sh b/applets/install.sh
index 2c643f2..0173e7a 100755
--- a/applets/install.sh
+++ b/applets/install.sh
@@ -28,7 +28,8 @@ if [ "$DO_INSTALL_LIBS" != "n" ]; then
for i in $DO_INSTALL_LIBS; do
rm -f $prefix/$libdir/$i || exit 1
if [ -f $i ]; then
- install -m 644 $i $prefix/$libdir/ || exit 1
+ cp -a $i $prefix/$libdir/ || exit 1
+ chmod 0644 $prefix/$libdir/$i || exit 1
fi
done
fi