Makefile.in 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 -DIS_IN_libintl $(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. ifeq ($(DOPIC),y)
  22. libintl-a-y := $(libintl_MOBJ:.o=.os)
  23. else
  24. libintl-a-y := $(libintl_MOBJ)
  25. endif
  26. libintl-so-y := $(libintl_MOBJ:.o=.os)
  27. CFLAGS-multi-y := $(libintl_DEF)
  28. libintl-multi-y := $(libintl_MSRC)
  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 += libintl_clean
  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. $(libintl_OUT)/libintl_so.a: $(libintl-so-y)
  39. $(Q)$(RM) $@
  40. $(do_strip)
  41. $(do_ar)
  42. $(top_builddir)lib/libintl.a: $(libintl-a-y)
  43. $(Q)$(INSTALL) -d $(dir $@)
  44. $(Q)$(RM) $@
  45. $(do_strip)
  46. $(do_ar)
  47. $(libintl_MOBJ): $(libintl_MSRC)
  48. $(compile.m)
  49. $(libintl_MOBJ:.o=.os): $(libintl_MSRC)
  50. $(compile.m)
  51. libintl_clean:
  52. $(RM) $(libintl_OUT)/*.{o,os,a}