Makefile.in 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. MOBJ := \
  10. gettext.o ngettext.o dgettext.o dcgettext.o dngettext.o dcngettext.o \
  11. textdomain.o bindtextdomain.o bind_textdomain_codeset.o \
  12. _nl_expand_alias.o _nl_msg_cat_cntr.o # glibc-isms
  13. libintl_DIR := $(top_srcdir)libintl
  14. libintl_OUT := $(top_builddir)libintl
  15. libintl_MSRC := $(libintl_DIR)/intl.c
  16. libintl_MOBJ := $(patsubst %.o,$(libintl_OUT)/%.o,$(MOBJ))
  17. ifeq ($(DOPIC),y)
  18. libintl-a-y := $(libintl_MOBJ:.o=.os)
  19. else
  20. libintl-a-y := $(libintl_MOBJ)
  21. endif
  22. libintl-so-y := $(libintl_MOBJ:.o=.os)
  23. objclean-y += CLEAN_libintl
  24. $(libintl_OUT)/libintl.oS: $(libintl_MSRC)
  25. $(Q)$(RM) $@
  26. $(compile-m)
  27. $(libintl_MOBJ): $(libintl_MSRC)
  28. $(compile.m)
  29. $(libintl_MOBJ:.o=.os): $(libintl_MSRC)
  30. $(compile.m)
  31. CLEAN_libintl:
  32. $(do_rm) $(addprefix $(libintl_OUT)/*., o os oS a)