Makefile.in 876 B

123456789101112131415161718192021222324252627282930313233
  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. subdirs += libc/pwd_grp
  8. PWDGRP_DIR := $(top_srcdir)libc/pwd_grp
  9. PWDGRP_OUT := $(top_builddir)libc/pwd_grp
  10. CSRC := $(notdir $(wildcard $(PWDGRP_DIR)/*.c))
  11. CSRC := $(filter-out pwd_grp.c pwd_grp_internal.c,$(CSRC))
  12. ifneq ($(UCLIBC_HAS_SHADOW),y)
  13. SHADOW_CSRC := \
  14. fgetspent_r.c fgetspent.c getspent_r.c getspent.c \
  15. getspnam_r.c getspnam.c lckpwdf.c putspent.c \
  16. sgetspent_r.c sgetspent.c __parsespent.c
  17. # getspuid_r.c getspuid.c
  18. CSRC := $(filter-out $(SHADOW_CSRC),$(CSRC))
  19. endif
  20. PWDGRP_SRC := $(patsubst %.c,$(PWDGRP_DIR)/%.c,$(CSRC))
  21. PWDGRP_OBJ := $(patsubst %.c,$(PWDGRP_OUT)/%.o,$(CSRC))
  22. libc-y += $(PWDGRP_OBJ)
  23. objclean-y += pwdgrp_clean
  24. pwdgrp_clean:
  25. $(do_rm) $(addprefix $(PWDGRP_OUT)/*., o os)