Makefile.in 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 += libintl
  8. CFLAGS-libintl := -DNOT_IN_libc -DIS_IN_libintl $(SSP_ALL_CFLAGS)
  9. LDFLAGS-libintl.so := $(LDFLAGS)
  10. LIBS-libintl.so := $(LIBS)
  11. libintl_FULL_NAME := libintl-$(VERSION).so
  12. MOBJ := \
  13. gettext.o ngettext.o dgettext.o dcgettext.o dngettext.o dcngettext.o \
  14. textdomain.o bindtextdomain.o bind_textdomain_codeset.o \
  15. _nl_expand_alias.o _nl_msg_cat_cntr.o # glibc-isms
  16. libintl_DIR := $(top_srcdir)libintl
  17. libintl_OUT := $(top_builddir)libintl
  18. libintl_MSRC := $(libintl_DIR)/intl.c
  19. libintl_MOBJ := $(patsubst %.o,$(libintl_OUT)/%.o,$(MOBJ))
  20. ifneq ($(DOMULTI),n)
  21. CFLAGS-libintl += $(patsubst %,-DL_%,$(subst .o,,$(notdir $(libintl_MOBJ))))
  22. endif
  23. ifeq ($(DOPIC),y)
  24. libintl-a-y := $(libintl_MOBJ:.o=.os)
  25. else
  26. libintl-a-y := $(libintl_MOBJ)
  27. endif
  28. libintl-so-y := $(libintl_MOBJ:.o=.os)
  29. lib-a-$(UCLIBC_HAS_GETTEXT_AWARENESS) += $(top_builddir)lib/libintl.a
  30. lib-so-$(UCLIBC_HAS_GETTEXT_AWARENESS) += $(top_builddir)lib/libintl.so
  31. objclean-y += CLEAN_libintl
  32. ifeq ($(DOMULTI),n)
  33. ifeq ($(DOPIC),y)
  34. $(top_builddir)lib/libintl.so: $(top_builddir)lib/libintl.a $(libc.depend)
  35. else
  36. $(top_builddir)lib/libintl.so: $(libintl_OUT)/libintl_so.a $(libc.depend)
  37. endif
  38. $(call link.so,$(libintl_FULL_NAME),$(ABI_VERSION))
  39. else
  40. $(top_builddir)lib/libintl.so: $(libintl_OUT)/libintl.oS | $(libc.depend)
  41. $(call linkm.so,$(libintl_FULL_NAME),$(ABI_VERSION))
  42. endif
  43. $(libintl_OUT)/libintl_so.a: $(libintl-so-y)
  44. $(Q)$(RM) $@
  45. $(do_ar)
  46. $(libintl_OUT)/libintl.oS: $(libintl_MSRC)
  47. $(Q)$(RM) $@
  48. $(compile-m)
  49. $(top_builddir)lib/libintl.a: $(libintl-a-y)
  50. $(Q)$(INSTALL) -d $(dir $@)
  51. $(Q)$(RM) $@
  52. $(do_ar)
  53. $(libintl_MOBJ): $(libintl_MSRC)
  54. $(compile.m)
  55. $(libintl_MOBJ:.o=.os): $(libintl_MSRC)
  56. $(compile.m)
  57. CLEAN_libintl:
  58. $(do_rm) $(addprefix $(libintl_OUT)/*., o os oS a)