diff options
Diffstat (limited to 'libpwdgrp')
-rw-r--r-- | libpwdgrp/Makefile.in | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/libpwdgrp/Makefile.in b/libpwdgrp/Makefile.in index 99674804c..550611681 100644 --- a/libpwdgrp/Makefile.in +++ b/libpwdgrp/Makefile.in | |||
@@ -6,10 +6,15 @@ | |||
6 | 6 | ||
7 | LIBPWDGRP_AR:=libpwdgrp.a | 7 | LIBPWDGRP_AR:=libpwdgrp.a |
8 | ifndef $(LIBPWDGRP_DIR) | 8 | ifndef $(LIBPWDGRP_DIR) |
9 | LIBPWDGRP_DIR:=$(top_builddir)/libpwdgrp/ | 9 | LIBPWDGRP_DIR:=$(top_builddir)/libpwdgrp |
10 | endif | 10 | endif |
11 | srcdir=$(top_srcdir)/libpwdgrp | 11 | srcdir=$(top_srcdir)/libpwdgrp |
12 | 12 | ||
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) | ||
13 | 18 | ||
14 | LIBPWDGRP_MSRC0:=$(srcdir)/pwd_grp.c | 19 | LIBPWDGRP_MSRC0:=$(srcdir)/pwd_grp.c |
15 | LIBPWDGRP_MOBJ0-$(CONFIG_USE_BB_PWD_GRP):= fgetpwent_r.o fgetgrent_r.o \ | 20 | LIBPWDGRP_MOBJ0-$(CONFIG_USE_BB_PWD_GRP):= fgetpwent_r.o fgetgrent_r.o \ |
@@ -17,19 +22,29 @@ LIBPWDGRP_MOBJ0-$(CONFIG_USE_BB_PWD_GRP):= fgetpwent_r.o fgetgrent_r.o \ | |||
17 | getgrgid_r.o getpwuid.o getgrgid.o getpwnam.o getgrnam.o getpw.o \ | 22 | getgrgid_r.o getpwuid.o getgrgid.o getpwnam.o getgrnam.o getpw.o \ |
18 | getpwent_r.o getgrent_r.o getpwent.o getgrent.o \ | 23 | getpwent_r.o getgrent_r.o getpwent.o getgrent.o \ |
19 | initgroups.o putpwent.o putgrent.o | 24 | initgroups.o putpwent.o putgrent.o |
20 | LIBPWDGRP_MOBJS0=$(patsubst %,$(LIBPWDGRP_DIR)%, $(LIBPWDGRP_MOBJ0-y)) | 25 | LIBPWDGRP_MOBJS0=$(patsubst %,$(LIBPWDGRP_DIR)/%, $(LIBPWDGRP_MOBJ0-y)) |
21 | 26 | ||
22 | LIBPWDGRP_MSRC1:=$(srcdir)/pwd_grp.c | 27 | LIBPWDGRP_MSRC1:=$(srcdir)/pwd_grp.c |
23 | LIBPWDGRP_MOBJ1-$(CONFIG_USE_BB_PWD_GRP):= __parsepwent.o __parsegrent.o \ | 28 | LIBPWDGRP_MOBJ1-$(CONFIG_USE_BB_PWD_GRP):= __parsepwent.o __parsegrent.o \ |
24 | __pgsreader.o fgetspent_r.o fgetspent.o sgetspent_r.o getspnam_r.o \ | 29 | __pgsreader.o fgetspent_r.o fgetspent.o sgetspent_r.o getspnam_r.o \ |
25 | getspnam.o getspent_r.o getspent.o sgetspent.o \ | 30 | getspnam.o getspent_r.o getspent.o sgetspent.o \ |
26 | putspent.o __parsespent.o # getspuid_r.o getspuid.o | 31 | putspent.o __parsespent.o # getspuid_r.o getspuid.o |
27 | LIBPWDGRP_MOBJS1=$(patsubst %,$(LIBPWDGRP_DIR)%, $(LIBPWDGRP_MOBJ1-y)) | 32 | LIBPWDGRP_MOBJS1=$(patsubst %,$(LIBPWDGRP_DIR)/%, $(LIBPWDGRP_MOBJ1-y)) |
33 | |||
34 | LIBPWDGRP_DEFINE0-y:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(LIBPWDGRP_MOBJS0)))) | ||
35 | LIBPWDGRP_DEFINE1-y:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(LIBPWDGRP_MOBJS1)))) | ||
36 | |||
37 | LIBPWDGRP_SRC-y:=$(LIBPWDGRP_MSRC0) | ||
38 | |||
39 | LIBRARY_SRC-y+=$(LIBPWDGRP_SRC-y) | ||
40 | LIBRARY_SRC-a+=$(LIBPWDGRP_SRC-y) | ||
41 | |||
42 | LIBRARY_DEFINE-y+=$(LIBPWDGRP_DEFINE0-y) $(LIBPWDGRP_DEFINE1-y) | ||
43 | LIBRARY_DEFINE-a+=$(LIBPWDGRP_DEFINE0-y) $(LIBPWDGRP_DEFINE1-y) | ||
28 | 44 | ||
29 | libraries-y+=$(LIBPWDGRP_DIR)$(LIBPWDGRP_AR) | ||
30 | 45 | ||
31 | $(LIBPWDGRP_DIR)$(LIBPWDGRP_AR): $(LIBPWDGRP_MOBJS0) $(LIBPWDGRP_MOBJS1) | 46 | $(LIBPWDGRP_DIR)/$(LIBPWDGRP_AR): $(LIBPWDGRP_MOBJS0) $(LIBPWDGRP_MOBJS1) |
32 | $(AR) $(ARFLAGS) $@ $(LIBPWDGRP_MOBJS0) $(LIBPWDGRP_MOBJS1) | 47 | $(AR) $(ARFLAGS) $(@) $(^) |
33 | 48 | ||
34 | $(LIBPWDGRP_MOBJS0): $(LIBPWDGRP_MSRC0) | 49 | $(LIBPWDGRP_MOBJS0): $(LIBPWDGRP_MSRC0) |
35 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -DL_$(notdir $*) -c $< -o $@ | 50 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -DL_$(notdir $*) -c $< -o $@ |