2002-06-05 02:15:46 +05:30
|
|
|
# Makefile for busybox
|
|
|
|
#
|
2005-09-24 11:31:57 +05:30
|
|
|
# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
|
2002-06-05 02:15:46 +05:30
|
|
|
#
|
2005-09-24 11:31:57 +05:30
|
|
|
# Licensed under the GPL v2, see the file LICENSE in this tarball.
|
2002-06-05 02:15:46 +05:30
|
|
|
|
2006-03-09 14:33:37 +05:30
|
|
|
srcdir:=$(top_srcdir)/libpwdgrp
|
|
|
|
objdir:=$(top_builddir)/libpwdgrp
|
2004-07-15 18:23:49 +05:30
|
|
|
|
2004-10-08 13:16:08 +05:30
|
|
|
LIBPWDGRP_MSRC0:=$(srcdir)/pwd_grp.c
|
2006-03-02 04:24:48 +05:30
|
|
|
LIBPWDGRP_M0-$(CONFIG_USE_BB_PWD_GRP):= fgetpwent_r fgetgrent_r \
|
|
|
|
fgetpwent fgetgrent getpwnam_r getgrnam_r getpwuid_r \
|
|
|
|
getgrgid_r getpwuid getgrgid getpwnam getgrnam getpw \
|
|
|
|
getpwent_r getgrent_r getpwent getgrent \
|
|
|
|
initgroups putpwent putgrent
|
|
|
|
LIBPWDGRP_MOBJ0=$(patsubst %,$(objdir)/%$(om),$(LIBPWDGRP_M0-y))
|
|
|
|
$(LIBPWDGRP_MOBJ0): $(LIBPWDGRP_MSRC0)
|
2004-07-15 18:23:49 +05:30
|
|
|
|
2004-10-08 13:16:08 +05:30
|
|
|
LIBPWDGRP_MSRC1:=$(srcdir)/pwd_grp.c
|
2006-03-02 04:24:48 +05:30
|
|
|
LIBPWDGRP_M1-$(CONFIG_USE_BB_PWD_GRP):= __parsepwent __parsegrent \
|
|
|
|
__pgsreader fgetspent_r fgetspent sgetspent_r getspnam_r \
|
|
|
|
getspnam getspent_r getspent sgetspent \
|
|
|
|
putspent __parsespent # getspuid_r getspuid
|
|
|
|
LIBPWDGRP_MOBJ1=$(patsubst %,$(objdir)/%$(om),$(LIBPWDGRP_M1-y))
|
|
|
|
$(LIBPWDGRP_MOBJ1): $(LIBPWDGRP_MSRC1)
|
2006-01-15 19:34:57 +05:30
|
|
|
|
2006-03-02 04:24:48 +05:30
|
|
|
LIBPWDGRP_DEFINE0-y:=$(patsubst %,-DL_%,$(LIBPWDGRP_M0-y))
|
|
|
|
LIBPWDGRP_DEFINE1-y:=$(patsubst %,-DL_%,$(LIBPWDGRP_M1-y))
|
2006-01-15 19:34:57 +05:30
|
|
|
|
|
|
|
LIBPWDGRP_SRC-y:=$(LIBPWDGRP_MSRC0)
|
|
|
|
|
|
|
|
LIBRARY_SRC-y+=$(LIBPWDGRP_SRC-y)
|
|
|
|
LIBRARY_SRC-a+=$(LIBPWDGRP_SRC-y)
|
|
|
|
|
|
|
|
LIBRARY_DEFINE-y+=$(LIBPWDGRP_DEFINE0-y) $(LIBPWDGRP_DEFINE1-y)
|
|
|
|
LIBRARY_DEFINE-a+=$(LIBPWDGRP_DEFINE0-y) $(LIBPWDGRP_DEFINE1-y)
|
2002-06-05 02:15:46 +05:30
|
|
|
|
2006-03-02 04:24:48 +05:30
|
|
|
libpwdgrp_MOBJ$(os):=$(LIBPWDGRP_MOBJ0) $(LIBPWDGRP_MOBJ1)
|
2002-06-05 02:15:46 +05:30
|
|
|
|
2006-03-02 04:24:48 +05:30
|
|
|
ifeq ($(om),.osm)
|
|
|
|
# XXX FIXME:
|
|
|
|
# also create a pattern for the non-shared case
|
|
|
|
$(LIBPWDGRP_MOBJ0:.osm=.om): $(LIBPWDGRP_MSRC0)
|
|
|
|
$(LIBPWDGRP_MOBJ1:.osm=.om): $(LIBPWDGRP_MSRC1)
|
|
|
|
endif
|
2006-03-09 14:33:37 +05:30
|
|
|
|
|
|
|
$(objdir)/libpwdgrp.a: $(libpwdgrp_MOBJ$(os))
|
|
|
|
libraries-y:=$(libraries-y) $(objdir)/libpwdgrp.a
|
|
|
|
|