Makefile.in 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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_builddir)ldso/include -I$(top_builddir)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. LDFLAGS-libdl.so := $(LDFLAGS) -fini dl_cleanup
  15. LIBS-libdl.so := $(LIBS) $(top_builddir)lib/$(UCLIBC_LDSO)
  16. libdl_FULL_NAME := libdl-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).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. libdl-so-y := $(libdl_OUT)/libdl.oS
  24. lib-a-$(HAVE_SHARED) += $(top_builddir)lib/libdl.a
  25. lib-so-y += $(top_builddir)lib/libdl.so
  26. objclean-y += libdl_clean
  27. $(top_builddir)lib/libdl.so: $(libdl_OUT)/libdl_so.a ld-uClibc-y libc-y
  28. $(call link.so,$(libdl_FULL_NAME),$(MAJOR_VERSION))
  29. $(libdl_OUT)/libdl_so.a: $(libdl-so-y)
  30. $(Q)$(RM) $@
  31. $(do_strip)
  32. $(do_ar)
  33. ifeq ($(DOPIC),y)
  34. $(top_builddir)lib/libdl.a: $(libdl-a-y:.o=.os)
  35. else
  36. $(top_builddir)lib/libdl.a: $(libdl-a-y)
  37. endif
  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}