Makefile.in 1.0 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. CSRC := adjtime.c ftime.c
  9. # multi source time.c
  10. CSRC += asctime.c asctime_r.c clock.c ctime.c ctime_r.c gmtime.c gmtime_r.c \
  11. localtime.c localtime_r.c mktime.c strftime.c strptime.c tzset.c \
  12. _time_t2tm.c __time_tm.c _time_mktime.c dysize.c timegm.c \
  13. _time_mktime_tzi.c _time_localtime_tzi.c
  14. ifeq ($(UCLIBC_HAS_FLOATS),y)
  15. CSRC += difftime.c
  16. endif
  17. ifeq ($(UCLIBC_HAS_XLOCALE),y)
  18. CSRC += strftime_l.c strptime_l.c
  19. endif
  20. ifeq ($(UCLIBC_HAS_WCHAR),y)
  21. CSRC += wcsftime.c
  22. ifeq ($(UCLIBC_HAS_XLOCALE),y)
  23. CSRC += wcsftime_l.c
  24. endif
  25. endif
  26. MISC_TIME_DIR := $(top_srcdir)libc/misc/time
  27. MISC_TIME_OUT := $(top_builddir)libc/misc/time
  28. MISC_TIME_SRC := $(patsubst %.c,$(MISC_TIME_DIR)/%.c,$(CSRC))
  29. MISC_TIME_OBJ := $(patsubst %.c,$(MISC_TIME_OUT)/%.o,$(CSRC))
  30. libc-y += $(MISC_TIME_OBJ)
  31. objclean-y += misc_time_objclean
  32. misc_time_objclean:
  33. $(RM) $(MISC_TIME_OUT)/*.{o,os}