1# Makefile for uClibc 2# 3# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org> 4# 5# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. 6# 7 8subdirs += libc/pwd_grp 9 10PWDGRP_DIR := $(top_srcdir)libc/pwd_grp 11PWDGRP_OUT := $(top_builddir)libc/pwd_grp 12 13CSRC-y := $(notdir $(wildcard $(PWDGRP_DIR)/*.c)) 14CSRC- := pwd_grp.c pwd_grp_internal.c # multi-source and helper 15CSRC-$(UCLIBC_HAS_SHADOW) += fgetspent_r.c fgetspent.c getspent_r.c getspent.c \ 16 getspnam_r.c getspnam.c lckpwdf.c putspent.c \ 17 sgetspent_r.c sgetspent.c __parsespent.c 18# getspuid_r.c getspuid.c 19 20CSRC-y := $(filter-out $(CSRC-),$(CSRC-y)) 21 22PWDGRP_SRC := $(patsubst %.c,$(PWDGRP_DIR)/%.c,$(CSRC-y)) 23PWDGRP_OBJ := $(patsubst %.c,$(PWDGRP_OUT)/%.o,$(CSRC-y)) 24 25libc-y += $(PWDGRP_OBJ) 26 27objclean-y += CLEAN_libc/pwd_grp 28 29CLEAN_libc/pwd_grp: 30 $(do_rm) $(addprefix $(PWDGRP_OUT)/*., o os) 31