3 # Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
5 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
8 PWDGRP_DIR := $(top_srcdir)libc/pwd_grp
9 PWDGRP_OUT := $(top_builddir)libc/pwd_grp
11 CSRC := $(notdir $(wildcard $(PWDGRP_DIR)/*.c))
12 CSRC := $(filter-out pwd_grp.c pwd_grp_internal.c,$(CSRC))
14 ifneq ($(HAS_SHADOW),y)
16 fgetspent_r.c fgetspent.c getspent_r.c getspent.c \
17 getspnam_r.c getspnam.c lckpwdf.c putspent.c \
18 sgetspent_r.c sgetspent.c __parsespent.c
19 # getspuid_r.c getspuid.c
20 CSRC := $(filter-out $(SHADOW_CSRC),$(CSRC))
23 PWDGRP_SRC := $(patsubst %.c,$(PWDGRP_DIR)/%.c,$(CSRC))
24 PWDGRP_OBJ := $(patsubst %.c,$(PWDGRP_OUT)/%.o,$(CSRC))
26 libc-y += $(PWDGRP_OBJ)
28 objclean-y += pwdgrp_objclean
31 $(RM) $(PWDGRP_OUT)/*.{o,os}