Makefile.in 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Makefile.in for uClibc
  2. #
  3. # Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. CFLAGS-libdl := -DNOT_IN_libc -DIS_IN_libdl $(SSP_ALL_CFLAGS)
  8. CFLAGS-libdl += -I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) -I$(top_srcdir)ldso/include -I$(top_srcdir)ldso/ldso
  9. CFLAGS-libdl += -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\"
  10. ifeq ($(SUPPORT_LD_DEBUG),y)
  11. CFLAGS-libdl += -D__SUPPORT_LD_DEBUG__
  12. endif
  13. CFLAGS-libdl.c := -DLDSO_ELFINTERP=\"$(TARGET_ARCH)/elfinterp.c\"
  14. LDFLAGS-libdl.so := $(LDFLAGS) -Wl,-fini,dl_cleanup
  15. LIBS-libdl.so := $(LIBS) $(ldso)
  16. libdl_FULL_NAME := libdl-$(VERSION).so
  17. libdl_DIR := $(top_srcdir)ldso/libdl
  18. libdl_OUT := $(top_builddir)ldso/libdl
  19. libdl_SRC := $(libdl_DIR)/libdl.c
  20. libdl_OBJ := $(patsubst $(libdl_DIR)/%.c,$(libdl_OUT)/%.o,$(libdl_SRC))
  21. resolve := $(top_builddir)ldso/ldso/$(TARGET_ARCH)/resolve.o
  22. libdl-a-y := $(libdl_OBJ) $(resolve)
  23. ifeq ($(DOPIC),y)
  24. libdl-a-y := $(libdl-a-y:.o=.os)
  25. endif
  26. libdl-so-y := $(libdl_OUT)/libdl.oS
  27. lib-a-$(HAVE_SHARED) += $(top_builddir)lib/libdl.a
  28. lib-so-y += $(top_builddir)lib/libdl.so
  29. objclean-y += libdl_clean
  30. $(top_builddir)lib/libdl.so: $(libdl_OUT)/libdl_so.a $(libc)
  31. $(call link.so,$(libdl_FULL_NAME),$(MAJOR_VERSION))
  32. $(libdl_OUT)/libdl_so.a: $(libdl-so-y)
  33. $(Q)$(RM) $@
  34. $(do_strip)
  35. $(do_ar)
  36. $(top_builddir)lib/libdl.a: $(libdl-a-y)
  37. $(Q)$(INSTALL) -d $(dir $@)
  38. $(Q)$(RM) $@
  39. $(do_strip)
  40. $(do_ar)
  41. libdl_clean:
  42. $(RM) $(libdl_OUT)/*.{o,os,a,oS}