Makefile.in 851 B

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