Makefile.in 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2005 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-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
  11. librt_DIR := $(top_srcdir)librt
  12. librt_OUT := $(top_builddir)librt
  13. librt_SRC := $(wildcard $(librt_DIR)/*.c)
  14. librt_OBJ := $(patsubst $(librt_DIR)/%.c,$(librt_OUT)/%.o,$(librt_SRC))
  15. librt-a-y := $(librt_OBJ)
  16. librt-so-y := $(librt_OBJ:.o=.os)
  17. librt-multi-y += $(librt_SRC)
  18. lib-a-y += $(top_builddir)lib/librt.a
  19. lib-so-y += $(top_builddir)lib/librt.so
  20. objclean-y += librt_clean
  21. $(top_builddir)lib/librt.so: $(librt_OUT)/librt_so.a libc-y
  22. $(call link.so,$(librt_FULL_NAME),$(MAJOR_VERSION))
  23. $(librt_OUT)/librt_so.a: $(librt-so-y)
  24. $(Q)$(RM) $@
  25. $(do_strip)
  26. $(do_ar)
  27. ifeq ($(DOPIC),y)
  28. $(top_builddir)lib/librt.a: $(librt-a-y:.o=.os)
  29. else
  30. $(top_builddir)lib/librt.a: $(librt-a-y)
  31. endif
  32. $(Q)$(INSTALL) -d $(dir $@)
  33. $(Q)$(RM) $@
  34. $(do_strip)
  35. $(do_ar)
  36. librt_clean:
  37. $(RM) $(librt_OUT)/*.{o,os,a}