Makefile.in 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. # 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. MSRC:=wchar.c
  19. MOBJ:= btowc.o wctob.o mbsinit.o mbrlen.o mbrtowc.o wcrtomb.o mbsrtowcs.o \
  20. wcsrtombs.o _wchar_utf8sntowcs.o _wchar_wcsntoutf8s.o \
  21. __mbsnrtowcs.o __wcsnrtombs.o wcwidth.o wcswidth.o
  22. ifeq ($(UCLIBC_HAS_LOCALE),y)
  23. MOBJ+=iconv.o
  24. endif
  25. MISC_WCHAR_DIR:=$(top_srcdir)libc/misc/wchar
  26. MISC_WCHAR_OUT:=$(top_builddir)libc/misc/wchar
  27. MISC_WCHAR_MSRC:=$(MISC_WCHAR_DIR)/$(MSRC)
  28. MISC_WCHAR_MOBJ:=$(patsubst %.o,$(MISC_WCHAR_OUT)/%.o,$(MOBJ))
  29. MISC_WCHAR_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_WCHAR_MOBJ))))
  30. $(MISC_WCHAR_MOBJ): $(MISC_WCHAR_MSRC)
  31. $(compile.m)
  32. $(MISC_WCHAR_MOBJ:.o=.os): $(MISC_WCHAR_MSRC)
  33. $(compile.m)
  34. libc-a-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCHAR_MOBJ)
  35. libc-so-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCHAR_MOBJ:.o=.os)
  36. CFLAGS-multi-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCHAR_DEF)
  37. libc-multi-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCHAR_MSRC)
  38. objclean-y+=misc_wchar_objclean
  39. misc_wchar_objclean:
  40. $(RM) $(MISC_WCHAR_OUT)/*.{o,os}