Makefile.in 870 B

1234567891011121314151617181920212223242526272829303132
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000 by Lineo, inc.
  4. # Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  5. #
  6. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. #
  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 ($(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_objclean
  24. pwdgrp_objclean:
  25. $(RM) $(PWDGRP_OUT)/*.{o,os}