Makefile.in 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. # The stdio and time related wide functions are now built in the normal
  8. # directories.
  9. #
  10. # stdio:
  11. # fwide fgetwc getwchar fgetws fputwc putwchar fputws ungetwc
  12. # getwc (fgetwc alias) getwc_unlocked (fgetwc_unlocked alias)
  13. # putwc (fputwc alias) putwc_unlocked (fputwc_unlocked alias)
  14. # time:
  15. # wcsftime
  16. #
  17. subdirs += libc/misc/wchar
  18. # multi source wchar.c
  19. CSRC-y := 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. CSRC-$(UCLIBC_HAS_LOCALE) += iconv.c
  23. MISC_WCHAR_DIR := $(top_srcdir)libc/misc/wchar
  24. MISC_WCHAR_OUT := $(top_builddir)libc/misc/wchar
  25. MISC_WCHAR_SRC := $(patsubst %.c,$(MISC_WCHAR_DIR)/%.c,$(CSRC-y))
  26. MISC_WCHAR_OBJ := $(patsubst %.c,$(MISC_WCHAR_OUT)/%.o,$(CSRC-y))
  27. libc-$(UCLIBC_HAS_WCHAR) += $(MISC_WCHAR_OBJ)
  28. objclean-y += CLEAN_libc/misc/wchar
  29. CLEAN_libc/misc/wchar:
  30. $(do_rm) $(addprefix $(MISC_WCHAR_OUT)/*., o os)