Makefile.in 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.depend)
  31. $(call link.so,$(libdl_FULL_NAME),$(MAJOR_VERSION))
  32. $(libdl_OUT)/libdl_so.a: $(libdl-so-y)
  33. $(Q)$(RM) $@
  34. $(do_ar)
  35. $(top_builddir)lib/libdl.a: $(libdl-a-y)
  36. $(Q)$(INSTALL) -d $(dir $@)
  37. $(Q)$(RM) $@
  38. $(do_ar)
  39. libdl_clean:
  40. $(RM) $(libdl_OUT)/*.{o,os,a,oS}