Makefile.in 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. CFLAGS-librt := -DNOT_IN_libc -DIS_IN_librt $(SSP_ALL_CFLAGS)
  8. LDFLAGS-librt.so := $(LDFLAGS)
  9. LIBS-librt.so := $(LIBS)
  10. librt_FULL_NAME := librt-$(VERSION).so
  11. librt_DIR := $(top_srcdir)librt
  12. librt_OUT := $(top_builddir)librt
  13. ifeq ($(UCLIBC_HAS_REALTIME),y)
  14. librt_SRC := $(wildcard $(librt_DIR)/*.c)
  15. librt_OBJ := $(patsubst $(librt_DIR)/%.c,$(librt_OUT)/%.o,$(librt_SRC))
  16. ifeq ($(DOPIC),y)
  17. librt-a-y += $(librt_OBJ:.o=.os)
  18. else
  19. librt-a-y += $(librt_OBJ)
  20. endif
  21. librt-so-y += $(librt_OBJ:.o=.os)
  22. lib-a-y += $(top_builddir)lib/librt.a
  23. lib-so-y += $(top_builddir)lib/librt.so
  24. endif
  25. ifeq ($(DOPIC),y)
  26. $(top_builddir)lib/librt.so: $(top_builddir)lib/librt.a $(libc.depend)
  27. else
  28. $(top_builddir)lib/librt.so: $(librt_OUT)/librt_so.a $(libc.depend)
  29. endif
  30. $(call link.so,$(librt_FULL_NAME),$(MAJOR_VERSION))
  31. $(librt_OUT)/librt_so.a: $(librt-so-y)
  32. $(Q)$(RM) $@
  33. $(do_ar)
  34. $(top_builddir)lib/librt.a: $(librt-a-y)
  35. $(Q)$(INSTALL) -d $(dir $@)
  36. $(Q)$(RM) $@
  37. $(do_ar)
  38. objclean-y += librt_clean
  39. librt_clean:
  40. $(do_rm) $(addprefix $(librt_OUT)/*., o os a)