Makefile.in 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000 by Lineo, inc.
  4. # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  5. #
  6. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. #
  8. MSRC:=pwd_grp.c
  9. MOBJ:= fgetpwent_r.o fgetgrent_r.o fgetpwent.o fgetgrent.o \
  10. getpwnam_r.o getgrnam_r.o getpwuid_r.o getgrgid_r.o \
  11. getpwuid.o getgrgid.o getpwnam.o getgrnam.o getpw.o \
  12. getpwent_r.o getgrent_r.o getpwent.o getgrent.o \
  13. initgroups.o putpwent.o putgrent.o \
  14. __parsepwent.o __parsegrent.o __pgsreader.o
  15. ifeq ($(HAS_SHADOW),y)
  16. MOBJ+= fgetspent_r.o fgetspent.o sgetspent_r.o getspnam_r.o \
  17. getspnam.o getspent_r.o getspent.o sgetspent.o \
  18. putspent.o __parsespent.o # getspuid_r.o getspuid.o
  19. endif
  20. PWDGRP_DIR:=$(top_srcdir)libc/pwd_grp
  21. PWDGRP_OUT:=$(top_builddir)libc/pwd_grp
  22. PWDGRP_MSRC:=$(PWDGRP_DIR)/$(MSRC)
  23. PWDGRP_MOBJ:=$(patsubst %.o,$(PWDGRP_OUT)/%.o,$(MOBJ))
  24. PWDGRP_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(PWDGRP_MOBJ))))
  25. $(PWDGRP_MOBJ) $(PWDGRP_MOBJ:.o=.os): $(PWDGRP_MSRC)
  26. $(compile.m)
  27. libc-a-y+=$(PWDGRP_MOBJ)
  28. libc-a-$(HAS_SHADOW)+=$(PWDGRP_OUT)/lckpwdf.o
  29. libc-a-pic-y+=$(PWDGRP_MOBJ:.o=.os)
  30. libc-a-pic-$(HAS_SHADOW)+=$(PWDGRP_OUT)/lckpwdf.os
  31. libc-so-y+=$(PWDGRP_MOBJ:.o=.os)
  32. libc-so-$(HAS_SHADOW)+=$(PWDGRP_OUT)/lckpwdf.os
  33. CFLAGS-multi-y+=$(PWDGRP_DEF)
  34. libc-multi-y+=$(PWDGRP_MSRC)
  35. libc-multi-$(HAS_SHADOW)+=$(PWDGRP_DIR)/lckpwdf.c
  36. objclean-y+=pwdgrp_objclean
  37. pwdgrp_objclean:
  38. $(RM) $(PWDGRP_OUT)/*.{o,os}