aboutsummaryrefslogtreecommitdiff
path: root/libpwdgrp
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-03-01 22:54:48 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-03-01 22:54:48 +0000
commit5d26126b9e8fd6c6f5098dbaa2e5b9e2901749bf (patch)
tree233c051da862595b6e473e832051708e2d9803cb /libpwdgrp
parent12c2429a4242a157217c5bc9673a531fa1e1de61 (diff)
downloadbusybox-w32-5d26126b9e8fd6c6f5098dbaa2e5b9e2901749bf.tar.gz
busybox-w32-5d26126b9e8fd6c6f5098dbaa2e5b9e2901749bf.tar.bz2
busybox-w32-5d26126b9e8fd6c6f5098dbaa2e5b9e2901749bf.zip
- fixes parallel builds (make -j)
- use less resources for the buildsystem itself
Diffstat (limited to 'libpwdgrp')
-rw-r--r--libpwdgrp/Makefile.in54
1 files changed, 23 insertions, 31 deletions
diff --git a/libpwdgrp/Makefile.in b/libpwdgrp/Makefile.in
index c74a768c1..93c4634a2 100644
--- a/libpwdgrp/Makefile.in
+++ b/libpwdgrp/Makefile.in
@@ -4,35 +4,28 @@
4# 4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball. 5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6 6
7LIBPWDGRP_AR:=libpwdgrp.a
8ifndef $(LIBPWDGRP_DIR)
9LIBPWDGRP_DIR:=$(top_builddir)/libpwdgrp
10endif
11srcdir=$(top_srcdir)/libpwdgrp 7srcdir=$(top_srcdir)/libpwdgrp
12 8objdir=$(top_builddir)/libpwdgrp
13LIBPWDGRP-obj:=$(LIBPWDGRP_DIR)/$(LIBPWDGRP_AR)
14LIBPWDGRP-pic:=$(LIBPWDGRP_DIR)/$(subst .a,-pic.o,$(LIBPWDGRP_AR))
15
16libraries-y+=$(LIBPWDGRP_DIR)/$(LIBPWDGRP_AR)
17libraries-m+=$(LIBPWDGRP-multi-pic)
18 9
19LIBPWDGRP_MSRC0:=$(srcdir)/pwd_grp.c 10LIBPWDGRP_MSRC0:=$(srcdir)/pwd_grp.c
20LIBPWDGRP_MOBJ0-$(CONFIG_USE_BB_PWD_GRP):= fgetpwent_r.o fgetgrent_r.o \ 11LIBPWDGRP_M0-$(CONFIG_USE_BB_PWD_GRP):= fgetpwent_r fgetgrent_r \
21 fgetpwent.o fgetgrent.o getpwnam_r.o getgrnam_r.o getpwuid_r.o \ 12 fgetpwent fgetgrent getpwnam_r getgrnam_r getpwuid_r \
22 getgrgid_r.o getpwuid.o getgrgid.o getpwnam.o getgrnam.o getpw.o \ 13 getgrgid_r getpwuid getgrgid getpwnam getgrnam getpw \
23 getpwent_r.o getgrent_r.o getpwent.o getgrent.o \ 14 getpwent_r getgrent_r getpwent getgrent \
24 initgroups.o putpwent.o putgrent.o 15 initgroups putpwent putgrent
25LIBPWDGRP_MOBJS0=$(patsubst %,$(LIBPWDGRP_DIR)/%, $(LIBPWDGRP_MOBJ0-y)) 16LIBPWDGRP_MOBJ0=$(patsubst %,$(objdir)/%$(om),$(LIBPWDGRP_M0-y))
17$(LIBPWDGRP_MOBJ0): $(LIBPWDGRP_MSRC0)
26 18
27LIBPWDGRP_MSRC1:=$(srcdir)/pwd_grp.c 19LIBPWDGRP_MSRC1:=$(srcdir)/pwd_grp.c
28LIBPWDGRP_MOBJ1-$(CONFIG_USE_BB_PWD_GRP):= __parsepwent.o __parsegrent.o \ 20LIBPWDGRP_M1-$(CONFIG_USE_BB_PWD_GRP):= __parsepwent __parsegrent \
29 __pgsreader.o fgetspent_r.o fgetspent.o sgetspent_r.o getspnam_r.o \ 21 __pgsreader fgetspent_r fgetspent sgetspent_r getspnam_r \
30 getspnam.o getspent_r.o getspent.o sgetspent.o \ 22 getspnam getspent_r getspent sgetspent \
31 putspent.o __parsespent.o # getspuid_r.o getspuid.o 23 putspent __parsespent # getspuid_r getspuid
32LIBPWDGRP_MOBJS1=$(patsubst %,$(LIBPWDGRP_DIR)/%, $(LIBPWDGRP_MOBJ1-y)) 24LIBPWDGRP_MOBJ1=$(patsubst %,$(objdir)/%$(om),$(LIBPWDGRP_M1-y))
25$(LIBPWDGRP_MOBJ1): $(LIBPWDGRP_MSRC1)
33 26
34LIBPWDGRP_DEFINE0-y:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(LIBPWDGRP_MOBJS0)))) 27LIBPWDGRP_DEFINE0-y:=$(patsubst %,-DL_%,$(LIBPWDGRP_M0-y))
35LIBPWDGRP_DEFINE1-y:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(LIBPWDGRP_MOBJS1)))) 28LIBPWDGRP_DEFINE1-y:=$(patsubst %,-DL_%,$(LIBPWDGRP_M1-y))
36 29
37LIBPWDGRP_SRC-y:=$(LIBPWDGRP_MSRC0) 30LIBPWDGRP_SRC-y:=$(LIBPWDGRP_MSRC0)
38 31
@@ -42,12 +35,11 @@ LIBRARY_SRC-a+=$(LIBPWDGRP_SRC-y)
42LIBRARY_DEFINE-y+=$(LIBPWDGRP_DEFINE0-y) $(LIBPWDGRP_DEFINE1-y) 35LIBRARY_DEFINE-y+=$(LIBPWDGRP_DEFINE0-y) $(LIBPWDGRP_DEFINE1-y)
43LIBRARY_DEFINE-a+=$(LIBPWDGRP_DEFINE0-y) $(LIBPWDGRP_DEFINE1-y) 36LIBRARY_DEFINE-a+=$(LIBPWDGRP_DEFINE0-y) $(LIBPWDGRP_DEFINE1-y)
44 37
38libpwdgrp_MOBJ$(os):=$(LIBPWDGRP_MOBJ0) $(LIBPWDGRP_MOBJ1)
45 39
46$(LIBPWDGRP_DIR)/$(LIBPWDGRP_AR): $(LIBPWDGRP_MOBJS0) $(LIBPWDGRP_MOBJS1) 40ifeq ($(om),.osm)
47 $(do_ar) 41# XXX FIXME:
48 42# also create a pattern for the non-shared case
49$(LIBPWDGRP_MOBJS0): $(LIBPWDGRP_MSRC0) 43$(LIBPWDGRP_MOBJ0:.osm=.om): $(LIBPWDGRP_MSRC0)
50 $(compile.c) -DL_$(notdir $*) 44$(LIBPWDGRP_MOBJ1:.osm=.om): $(LIBPWDGRP_MSRC1)
51 45endif
52$(LIBPWDGRP_MOBJS1): $(LIBPWDGRP_MSRC1)
53 $(compile.c) -DL_$(notdir $*)