Makefile.in 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. CFLAGS-libintl := -DNOT_IN_libc $(SSP_ALL_CFLAGS)
  9. LDFLAGS-libintl.so := $(LDFLAGS)
  10. LIBS-libintl.so := $(LIBS)
  11. libintl_FULL_NAME := libintl-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).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. libintl_DEF := $(patsubst %,-DL_%,$(subst .o,,$(notdir $(libintl_MOBJ))))
  21. libintl-a-y := $(libintl_MOBJ)
  22. libintl-so-y := $(libintl_MOBJ:.o=.os)
  23. CFLAGS-multi-y := $(libintl_DEF)
  24. libintl-multi-y := $(libintl_MSRC)
  25. lib-a-$(UCLIBC_HAS_GETTEXT_AWARENESS) += $(top_builddir)lib/libintl.a
  26. lib-so-$(UCLIBC_HAS_GETTEXT_AWARENESS) += $(top_builddir)lib/libintl.so
  27. objclean-y += libintl_clean
  28. $(top_builddir)lib/libintl.so: $(libintl_OUT)/libintl_so.a libc-y
  29. $(call link.so,$(libintl_FULL_NAME),$(MAJOR_VERSION))
  30. $(libintl_OUT)/libintl_so.a: $(libintl-so-y)
  31. $(Q)$(RM) $@
  32. $(do_strip)
  33. $(do_ar)
  34. ifeq ($(DOPIC),y)
  35. $(top_builddir)lib/libintl.a: $(libintl-a-y:.o=.os)
  36. else
  37. $(top_builddir)lib/libintl.a: $(libintl-a-y)
  38. endif
  39. $(Q)$(INSTALL) -d $(dir $@)
  40. $(Q)$(RM) $@
  41. $(do_strip)
  42. $(do_ar)
  43. $(libintl_MOBJ): $(libintl_MSRC)
  44. $(compile.m)
  45. $(libintl_MOBJ:.o=.os): $(libintl_MSRC)
  46. $(compile.m)
  47. libintl_clean:
  48. $(RM) $(libintl_OUT)/*.{o,os,a}