Makefile.in 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000 by Lineo, inc.
  4. # Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  5. #
  6. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. #
  8. # The stdio and time related wide functions are now built in the normal
  9. # directories.
  10. #
  11. # stdio:
  12. # fwide fgetwc getwchar fgetws fputwc putwchar fputws ungetwc
  13. # getwc (fgetwc alias) getwc_unlocked (fgetwc_unlocked alias)
  14. # putwc (fputwc alias) putwc_unlocked (fputwc_unlocked alias)
  15. # time:
  16. # wcsftime
  17. #
  18. # multi source wchar.c
  19. CSRC := btowc.c wctob.c mbsinit.c mbrlen.c mbrtowc.c wcrtomb.c mbsrtowcs.c \
  20. wcsrtombs.c _wchar_utf8sntowcs.c _wchar_wcsntoutf8s.c \
  21. mbsnrtowcs.c wcsnrtombs.c wcwidth.c wcswidth.c
  22. ifeq ($(UCLIBC_HAS_LOCALE),y)
  23. CSRC += iconv.c
  24. endif
  25. MISC_WCHAR_DIR := $(top_srcdir)libc/misc/wchar
  26. MISC_WCHAR_OUT := $(top_builddir)libc/misc/wchar
  27. MISC_WCHAR_SRC := $(patsubst %.c,$(MISC_WCHAR_DIR)/%.c,$(CSRC))
  28. MISC_WCHAR_OBJ := $(patsubst %.c,$(MISC_WCHAR_OUT)/%.o,$(CSRC))
  29. libc-$(UCLIBC_HAS_WCHAR) += $(MISC_WCHAR_OBJ)
  30. objclean-y += misc_wchar_objclean
  31. misc_wchar_objclean:
  32. $(RM) $(MISC_WCHAR_OUT)/*.{o,os}