Makefile.in 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 += librt
  8. CFLAGS-librt := -DNOT_IN_libc -DIS_IN_librt $(SSP_ALL_CFLAGS)
  9. librt_DIR := $(top_srcdir)librt
  10. librt_OUT := $(top_builddir)librt
  11. librt_SRC := $(notdir $(wildcard $(librt_DIR)/*.c))
  12. librt_filter_SRC :=
  13. ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
  14. librt_filter_SRC += mq_notify.c timer_create.c timer_delete.c \
  15. timer_getoverr.c timer_gettime.c timer_settime.c
  16. else
  17. librt_filter_SRC += clock_nanosleep.c clock_getcpuclockid.c clock_gettime.c
  18. endif
  19. librt_filter_SRC += $(if $(UCLIBC_HAS_ADVANCED_REALTIME),, \
  20. spawn.c \
  21. spawn_faction_addclose.c \
  22. spawn_faction_adddup2.c \
  23. spawn_faction_addopen.c \
  24. spawn_faction_init.c)
  25. librt_filter_SRC += $(if $(UCLIBC_HAS_STUBS),,rt_stubs.c)
  26. librt_filter_SRC += $(if $(HAS_NO_THREADS),dso_handle.c)
  27. librt_SRC := $(filter-out $(librt_filter_SRC),$(librt_SRC))
  28. librt_OBJ := $(patsubst %.c,$(librt_OUT)/%.o,$(librt_SRC))
  29. ifeq ($(DOPIC),y)
  30. librt-a-y += $(librt_OBJ:.o=.os)
  31. else
  32. librt-a-y += $(librt_OBJ)
  33. endif
  34. librt-so-y += $(librt_OBJ:.o=.os)
  35. librt-dep-y := $(libc.depend)
  36. objclean-y += CLEAN_librt
  37. CLEAN_librt:
  38. $(do_rm) $(addprefix $(librt_OUT)/*., o os oS a)