Makefile.in 872 B

123456789101112131415161718192021222324252627282930
  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-y := $(notdir $(wildcard $(PWDGRP_DIR)/*.c))
  11. CSRC- := pwd_grp.c pwd_grp_internal.c # multi-source and helper
  12. CSRC-$(UCLIBC_HAS_SHADOW) += fgetspent_r.c fgetspent.c getspent_r.c getspent.c \
  13. getspnam_r.c getspnam.c lckpwdf.c putspent.c \
  14. sgetspent_r.c sgetspent.c __parsespent.c
  15. # getspuid_r.c getspuid.c
  16. CSRC-y := $(filter-out $(CSRC-),$(CSRC-y))
  17. PWDGRP_SRC := $(patsubst %.c,$(PWDGRP_DIR)/%.c,$(CSRC-y))
  18. PWDGRP_OBJ := $(patsubst %.c,$(PWDGRP_OUT)/%.o,$(CSRC-y))
  19. libc-y += $(PWDGRP_OBJ)
  20. objclean-y += CLEAN_libc/pwd_grp
  21. CLEAN_libc/pwd_grp:
  22. $(do_rm) $(addprefix $(PWDGRP_OUT)/*., o os)