OSDN Git Service

fixup my copyright notice, trim stale remnants of older notices which
[uclinux-h8/uClibc.git] / libc / pwd_grp / Makefile.in
1 # Makefile for uClibc
2 #
3 # Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
4 #
5 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
6 #
7
8 PWDGRP_DIR := $(top_srcdir)libc/pwd_grp
9 PWDGRP_OUT := $(top_builddir)libc/pwd_grp
10
11 CSRC := $(notdir $(wildcard $(PWDGRP_DIR)/*.c))
12 CSRC := $(filter-out pwd_grp.c pwd_grp_internal.c,$(CSRC))
13
14 ifneq ($(HAS_SHADOW),y)
15 SHADOW_CSRC := \
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))
21 endif
22
23 PWDGRP_SRC := $(patsubst %.c,$(PWDGRP_DIR)/%.c,$(CSRC))
24 PWDGRP_OBJ := $(patsubst %.c,$(PWDGRP_OUT)/%.o,$(CSRC))
25
26 libc-y += $(PWDGRP_OBJ)
27
28 objclean-y += pwdgrp_objclean
29
30 pwdgrp_objclean:
31         $(RM) $(PWDGRP_OUT)/*.{o,os}