Makefile.in 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. CFLAGS-libintl := -DNOT_IN_libc -DIS_IN_libintl $(SSP_ALL_CFLAGS)
  8. LDFLAGS-libintl.so := $(LDFLAGS)
  9. LIBS-libintl.so := $(LIBS)
  10. libintl_FULL_NAME := libintl-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
  11. MOBJ := \
  12. gettext.o ngettext.o dgettext.o dcgettext.o dngettext.o dcngettext.o \
  13. textdomain.o bindtextdomain.o bind_textdomain_codeset.o \
  14. _nl_expand_alias.o _nl_msg_cat_cntr.o # glibc-isms
  15. libintl_DIR := $(top_srcdir)libintl
  16. libintl_OUT := $(top_builddir)libintl
  17. libintl_MSRC := $(libintl_DIR)/intl.c
  18. libintl_MOBJ := $(patsubst %.o,$(libintl_OUT)/%.o,$(MOBJ))
  19. ifneq ($(DOMULTI),n)
  20. CFLAGS-libintl += $(patsubst %,-DL_%,$(subst .o,,$(notdir $(libintl_MOBJ))))
  21. endif
  22. ifeq ($(DOPIC),y)
  23. libintl-a-y := $(libintl_MOBJ:.o=.os)
  24. else
  25. libintl-a-y := $(libintl_MOBJ)
  26. endif
  27. libintl-so-y := $(libintl_MOBJ:.o=.os)
  28. lib-a-$(UCLIBC_HAS_GETTEXT_AWARENESS) += $(top_builddir)lib/libintl.a
  29. lib-so-$(UCLIBC_HAS_GETTEXT_AWARENESS) += $(top_builddir)lib/libintl.so
  30. objclean-y += libintl_clean
  31. ifeq ($(DOMULTI),n)
  32. ifeq ($(DOPIC),y)
  33. $(top_builddir)lib/libintl.so: $(top_builddir)lib/libintl.a $(libc)
  34. else
  35. $(top_builddir)lib/libintl.so: $(libintl_OUT)/libintl_so.a $(libc)
  36. endif
  37. $(call link.so,$(libintl_FULL_NAME),$(MAJOR_VERSION))
  38. else
  39. $(top_builddir)lib/libintl.so: $(libintl_OUT)/libintl.oS | $(libc)
  40. $(call linkm.so,$(libintl_FULL_NAME),$(MAJOR_VERSION))
  41. endif
  42. $(libintl_OUT)/libintl_so.a: $(libintl-so-y)
  43. $(Q)$(RM) $@
  44. $(do_strip)
  45. $(do_ar)
  46. $(libintl_OUT)/libintl.oS: $(libintl_MSRC)
  47. $(Q)$(RM) $@
  48. $(compile-m)
  49. $(do_t_strip)
  50. $(top_builddir)lib/libintl.a: $(libintl-a-y)
  51. $(Q)$(INSTALL) -d $(dir $@)
  52. $(Q)$(RM) $@
  53. $(do_strip)
  54. $(do_ar)
  55. $(libintl_MOBJ): $(libintl_MSRC)
  56. $(compile.m)
  57. $(libintl_MOBJ:.o=.os): $(libintl_MSRC)
  58. $(compile.m)
  59. libintl_clean:
  60. $(RM) $(libintl_OUT)/*.{o,os,a}