diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-03-01 22:54:48 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-03-01 22:54:48 +0000 |
commit | 5d26126b9e8fd6c6f5098dbaa2e5b9e2901749bf (patch) | |
tree | 233c051da862595b6e473e832051708e2d9803cb /libpwdgrp | |
parent | 12c2429a4242a157217c5bc9673a531fa1e1de61 (diff) | |
download | busybox-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.in | 54 |
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 | ||
7 | LIBPWDGRP_AR:=libpwdgrp.a | ||
8 | ifndef $(LIBPWDGRP_DIR) | ||
9 | LIBPWDGRP_DIR:=$(top_builddir)/libpwdgrp | ||
10 | endif | ||
11 | srcdir=$(top_srcdir)/libpwdgrp | 7 | srcdir=$(top_srcdir)/libpwdgrp |
12 | 8 | objdir=$(top_builddir)/libpwdgrp | |
13 | LIBPWDGRP-obj:=$(LIBPWDGRP_DIR)/$(LIBPWDGRP_AR) | ||
14 | LIBPWDGRP-pic:=$(LIBPWDGRP_DIR)/$(subst .a,-pic.o,$(LIBPWDGRP_AR)) | ||
15 | |||
16 | libraries-y+=$(LIBPWDGRP_DIR)/$(LIBPWDGRP_AR) | ||
17 | libraries-m+=$(LIBPWDGRP-multi-pic) | ||
18 | 9 | ||
19 | LIBPWDGRP_MSRC0:=$(srcdir)/pwd_grp.c | 10 | LIBPWDGRP_MSRC0:=$(srcdir)/pwd_grp.c |
20 | LIBPWDGRP_MOBJ0-$(CONFIG_USE_BB_PWD_GRP):= fgetpwent_r.o fgetgrent_r.o \ | 11 | LIBPWDGRP_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 |
25 | LIBPWDGRP_MOBJS0=$(patsubst %,$(LIBPWDGRP_DIR)/%, $(LIBPWDGRP_MOBJ0-y)) | 16 | LIBPWDGRP_MOBJ0=$(patsubst %,$(objdir)/%$(om),$(LIBPWDGRP_M0-y)) |
17 | $(LIBPWDGRP_MOBJ0): $(LIBPWDGRP_MSRC0) | ||
26 | 18 | ||
27 | LIBPWDGRP_MSRC1:=$(srcdir)/pwd_grp.c | 19 | LIBPWDGRP_MSRC1:=$(srcdir)/pwd_grp.c |
28 | LIBPWDGRP_MOBJ1-$(CONFIG_USE_BB_PWD_GRP):= __parsepwent.o __parsegrent.o \ | 20 | LIBPWDGRP_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 |
32 | LIBPWDGRP_MOBJS1=$(patsubst %,$(LIBPWDGRP_DIR)/%, $(LIBPWDGRP_MOBJ1-y)) | 24 | LIBPWDGRP_MOBJ1=$(patsubst %,$(objdir)/%$(om),$(LIBPWDGRP_M1-y)) |
25 | $(LIBPWDGRP_MOBJ1): $(LIBPWDGRP_MSRC1) | ||
33 | 26 | ||
34 | LIBPWDGRP_DEFINE0-y:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(LIBPWDGRP_MOBJS0)))) | 27 | LIBPWDGRP_DEFINE0-y:=$(patsubst %,-DL_%,$(LIBPWDGRP_M0-y)) |
35 | LIBPWDGRP_DEFINE1-y:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(LIBPWDGRP_MOBJS1)))) | 28 | LIBPWDGRP_DEFINE1-y:=$(patsubst %,-DL_%,$(LIBPWDGRP_M1-y)) |
36 | 29 | ||
37 | LIBPWDGRP_SRC-y:=$(LIBPWDGRP_MSRC0) | 30 | LIBPWDGRP_SRC-y:=$(LIBPWDGRP_MSRC0) |
38 | 31 | ||
@@ -42,12 +35,11 @@ LIBRARY_SRC-a+=$(LIBPWDGRP_SRC-y) | |||
42 | LIBRARY_DEFINE-y+=$(LIBPWDGRP_DEFINE0-y) $(LIBPWDGRP_DEFINE1-y) | 35 | LIBRARY_DEFINE-y+=$(LIBPWDGRP_DEFINE0-y) $(LIBPWDGRP_DEFINE1-y) |
43 | LIBRARY_DEFINE-a+=$(LIBPWDGRP_DEFINE0-y) $(LIBPWDGRP_DEFINE1-y) | 36 | LIBRARY_DEFINE-a+=$(LIBPWDGRP_DEFINE0-y) $(LIBPWDGRP_DEFINE1-y) |
44 | 37 | ||
38 | libpwdgrp_MOBJ$(os):=$(LIBPWDGRP_MOBJ0) $(LIBPWDGRP_MOBJ1) | ||
45 | 39 | ||
46 | $(LIBPWDGRP_DIR)/$(LIBPWDGRP_AR): $(LIBPWDGRP_MOBJS0) $(LIBPWDGRP_MOBJS1) | 40 | ifeq ($(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 | 45 | endif | |
52 | $(LIBPWDGRP_MOBJS1): $(LIBPWDGRP_MSRC1) | ||
53 | $(compile.c) -DL_$(notdir $*) | ||