Makefile.in 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. # link for backward compatibility
  40. $(call link.so,$(libintl_FULL_NAME),0)
  41. else
  42. $(top_builddir)lib/libintl.so: $(libintl_OUT)/libintl.oS | $(libc.depend)
  43. $(call linkm.so,$(libintl_FULL_NAME),$(ABI_VERSION))
  44. # link for backward compatibility
  45. $(call linkm.so,$(libintl_FULL_NAME),0)
  46. endif
  47. $(libintl_OUT)/libintl_so.a: $(libintl-so-y)
  48. $(Q)$(RM) $@
  49. $(do_ar)
  50. $(libintl_OUT)/libintl.oS: $(libintl_MSRC)
  51. $(Q)$(RM) $@
  52. $(compile-m)
  53. $(top_builddir)lib/libintl.a: $(libintl-a-y)
  54. $(Q)$(INSTALL) -d $(dir $@)
  55. $(Q)$(RM) $@
  56. $(do_ar)
  57. $(libintl_MOBJ): $(libintl_MSRC)
  58. $(compile.m)
  59. $(libintl_MOBJ:.o=.os): $(libintl_MSRC)
  60. $(compile.m)
  61. CLEAN_libintl:
  62. $(do_rm) $(addprefix $(libintl_OUT)/*., o os oS a)