Makefile.in 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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-so-y+=$(PWDGRP_MOBJ:.o=.os)
  30. libc-so-$(HAS_SHADOW)+=$(PWDGRP_OUT)/lckpwdf.os
  31. CFLAGS-multi-y+=$(PWDGRP_DEF)
  32. libc-multi-y+=$(PWDGRP_MSRC)
  33. libc-multi-$(HAS_SHADOW)+=$(PWDGRP_DIR)/lckpwdf.c
  34. objclean-y+=pwdgrp_objclean
  35. pwdgrp_objclean:
  36. $(RM) $(PWDGRP_OUT)/*.{o,os}