Makefile.in 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. MSRC:=time.c
  9. MOBJ:= asctime.o asctime_r.o clock.o ctime.o ctime_r.o gmtime.o gmtime_r.o \
  10. localtime.o localtime_r.o mktime.o strftime.o strptime.o tzset.o \
  11. _time_t2tm.o __time_tm.o _time_mktime.o dysize.o timegm.o \
  12. _time_mktime_tzi.o _time_localtime_tzi.o
  13. MOBJx=
  14. ifeq ($(UCLIBC_HAS_FLOATS),y)
  15. MOBJ+=difftime.o
  16. endif
  17. ifeq ($(UCLIBC_HAS_XLOCALE),y)
  18. MOBJx+=strftime_l.o strptime_l.o
  19. endif
  20. ifeq ($(UCLIBC_HAS_WCHAR),y)
  21. MOBJ+=wcsftime.o
  22. ifeq ($(UCLIBC_HAS_XLOCALE),y)
  23. MOBJx+=wcsftime_l.o
  24. endif
  25. endif
  26. CSRC:=adjtime.c ftime.c
  27. MISC_TIME_DIR:=$(top_srcdir)libc/misc/time
  28. MISC_TIME_OUT:=$(top_builddir)libc/misc/time
  29. MISC_TIME_NO_MULTI:=strftime.o
  30. MISC_TIME_SRC:=$(patsubst %.c,$(MISC_TIME_DIR)/%.c,$(CSRC))
  31. MISC_TIME_OBJ:=$(patsubst %.c,$(MISC_TIME_OUT)/%.o,$(CSRC))
  32. MISC_TIME_MSRC:=$(patsubst %.c,$(MISC_TIME_DIR)/%.c,$(MSRC))
  33. MISC_TIME_MOBJ:=$(patsubst %.o,$(MISC_TIME_OUT)/%.o,$(MOBJ))
  34. MISC_TIME_MOBJx=$(patsubst %.o,$(MISC_TIME_OUT)/%.o,$(MOBJx))
  35. MISC_TIME_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(filter-out $(MISC_TIME_OUT)/$(MISC_TIME_NO_MULTI),$(MISC_TIME_MOBJ)))))
  36. MISC_TIME_OBJS:=$(MISC_TIME_OBJ) $(MISC_TIME_MOBJ)
  37. $(MISC_TIME_MOBJ) $(MISC_TIME_MOBJ:.o=.os): $(MISC_TIME_MSRC)
  38. $(compile.m)
  39. $(MISC_TIME_MOBJx) $(MISC_TIME_MOBJx:.o=.os): $(MISC_TIME_MSRC)
  40. $(compile.m) -D__UCLIBC_DO_XLOCALE
  41. libc-a-y+=$(MISC_TIME_OBJS)
  42. libc-a-$(UCLIBC_HAS_XLOCALE)+=$(MISC_TIME_MOBJx)
  43. libc-a-pic-y+=$(MISC_TIME_OBJS:.o=.os)
  44. libc-a-pic-$(UCLIBC_HAS_XLOCALE)+=$(MISC_TIME_MOBJx:.o=.os)
  45. libc-so-y+=$(MISC_TIME_OBJS:.o=.os)
  46. libc-so-$(UCLIBC_HAS_XLOCALE)+=$(MISC_TIME_MOBJx:.o=.os)
  47. CFLAGS-multi-y+=$(MISC_TIME_DEF)
  48. libc-multi-y+=$(MISC_TIME_MSRC)
  49. libc-nomulti-y+=$(MISC_TIME_OUT)/$(MISC_TIME_NO_MULTI)
  50. libc-nomulti-$(UCLIBC_HAS_XLOCALE)+=$(MISC_TIME_MOBJx)
  51. objclean-y+=misc_time_objclean
  52. misc_time_objclean:
  53. $(RM) $(MISC_TIME_OUT)/*.{o,os}