Makefile.in 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Makefile for busybox
  2. #
  3. # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
  4. #
  5. # Licensed under the GPL v2, see the file LICENSE in this tarball.
  6. LIBPWDGRP_AR:=libpwdgrp.a
  7. ifndef $(LIBPWDGRP_DIR)
  8. LIBPWDGRP_DIR:=$(top_builddir)/libpwdgrp
  9. endif
  10. srcdir=$(top_srcdir)/libpwdgrp
  11. LIBPWDGRP-obj:=$(LIBPWDGRP_DIR)/$(LIBPWDGRP_AR)
  12. libraries-y+=$(LIBPWDGRP_DIR)/$(LIBPWDGRP_AR)
  13. LIBPWDGRP_MSRC0:=$(srcdir)/pwd_grp.c
  14. LIBPWDGRP_MOBJ0-$(CONFIG_USE_BB_PWD_GRP):= fgetpwent_r.o fgetgrent_r.o \
  15. fgetpwent.o fgetgrent.o getpwnam_r.o getgrnam_r.o getpwuid_r.o \
  16. getgrgid_r.o getpwuid.o getgrgid.o getpwnam.o getgrnam.o getpw.o \
  17. getpwent_r.o getgrent_r.o getpwent.o getgrent.o \
  18. initgroups.o putpwent.o putgrent.o
  19. LIBPWDGRP_MOBJS0=$(patsubst %,$(LIBPWDGRP_DIR)/%, $(LIBPWDGRP_MOBJ0-y))
  20. LIBPWDGRP_MSRC1:=$(srcdir)/pwd_grp.c
  21. LIBPWDGRP_MOBJ1-$(CONFIG_USE_BB_PWD_GRP):= __parsepwent.o __parsegrent.o \
  22. __pgsreader.o fgetspent_r.o fgetspent.o sgetspent_r.o getspnam_r.o \
  23. getspnam.o getspent_r.o getspent.o sgetspent.o \
  24. putspent.o __parsespent.o # getspuid_r.o getspuid.o
  25. LIBPWDGRP_MOBJS1=$(patsubst %,$(LIBPWDGRP_DIR)/%, $(LIBPWDGRP_MOBJ1-y))
  26. LIBPWDGRP_DEFINE0-y:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(LIBPWDGRP_MOBJS0))))
  27. LIBPWDGRP_DEFINE1-y:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(LIBPWDGRP_MOBJS1))))
  28. LIBPWDGRP_SRC-y:=$(LIBPWDGRP_MSRC0)
  29. LIBRARY_SRC-y+=$(LIBPWDGRP_SRC-y)
  30. LIBRARY_SRC-a+=$(LIBPWDGRP_SRC-y)
  31. LIBRARY_DEFINE-y+=$(LIBPWDGRP_DEFINE0-y) $(LIBPWDGRP_DEFINE1-y)
  32. LIBRARY_DEFINE-a+=$(LIBPWDGRP_DEFINE0-y) $(LIBPWDGRP_DEFINE1-y)
  33. $(LIBPWDGRP_DIR)/$(LIBPWDGRP_AR): $(LIBPWDGRP_MOBJS0) $(LIBPWDGRP_MOBJS1)
  34. $(do_ar)
  35. $(LIBPWDGRP_MOBJS0): $(LIBPWDGRP_MSRC0)
  36. $(compile.c) -DL_$(notdir $*)
  37. $(LIBPWDGRP_MOBJS1): $(LIBPWDGRP_MSRC1)
  38. $(compile.c) -DL_$(notdir $*)