Makefile.in 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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 += libc/misc/time
  8. CSRC-y := adjtime.c
  9. CSRC-$(UCLIBC_SUSV3_LEGACY) += ftime.c
  10. # multi source time.c
  11. CSRC-y += asctime.c asctime_r.c clock.c ctime.c ctime_r.c gmtime.c gmtime_r.c \
  12. localtime.c localtime_r.c mktime.c strftime.c strptime.c tzset.c \
  13. _time_t2tm.c __time_tm.c _time_mktime.c dysize.c timegm.c \
  14. _time_mktime_tzi.c _time_localtime_tzi.c
  15. CSRC-$(UCLIBC_HAS_FLOATS) += difftime.c
  16. CSRC-$(UCLIBC_HAS_XLOCALE) += strftime_l.c strptime_l.c
  17. CSRC-$(UCLIBC_HAS_WCHAR) += wcsftime.c
  18. CSRC-$(if $(findstring yy,$(UCLIBC_HAS_WCHAR)$(UCLIBC_HAS_XLOCALE)),y) += \
  19. wcsftime_l.c
  20. MISC_TIME_DIR := $(top_srcdir)libc/misc/time
  21. MISC_TIME_OUT := $(top_builddir)libc/misc/time
  22. MISC_TIME_SRC := $(patsubst %.c,$(MISC_TIME_DIR)/%.c,$(CSRC-y))
  23. MISC_TIME_OBJ := $(patsubst %.c,$(MISC_TIME_OUT)/%.o,$(CSRC-y))
  24. libc-y += $(MISC_TIME_OBJ)
  25. objclean-y += CLEAN_libc/misc/time
  26. CLEAN_libc/misc/time:
  27. $(do_rm) $(addprefix $(MISC_TIME_OUT)/*., o os)