Makefile.in 1.5 KB

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