Makefile.in 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Makefile.in for uClibc
  2. #
  3. # Licensed under LGPL v2.1, see the file COPYING.LIB in this tarball for details.
  4. #
  5. LIB_NAME:=libdl
  6. # psm: I do not know if the order of includes is relevant
  7. # to be sure I added them first
  8. CFLAGS:=-I$(top_builddir)ldso/include -I$(top_builddir)ldso/ldso $(CFLAGS) $(SSP_ALL_CFLAGS)
  9. CFLAGS+=-DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\"
  10. ifeq ($(SUPPORT_LD_DEBUG),y)
  11. CFLAGS+=-D__SUPPORT_LD_DEBUG__
  12. endif
  13. # BEWARE!!! At least mips* will die if -O0 is used!!!
  14. ifeq ($(TARGET_ARCH),mips)
  15. CFLAGS:=$(CFLAGS:-O0=-O1)
  16. endif
  17. CFLAGS-.os=-DSHARED
  18. # we adapt CFLAGS, because libdl.a has an additional object
  19. ifeq ($(DOPIC),y)
  20. CFLAGS-.o=$(PICFLAG)
  21. resolv:=$(top_builddir)ldso/ldso/$(TARGET_ARCH)/resolve.os
  22. else
  23. resolv:=$(top_builddir)ldso/ldso/$(TARGET_ARCH)/resolve.o
  24. endif
  25. EXTRA_LINK_OPTS:=-fini dl_cleanup
  26. # we need for all cases a "full" libdl.a the pic version used to build libdl.so misses $(resolv)
  27. # because it is linked against ld.so
  28. DOPIC=n
  29. srcdir=$(top_srcdir)ldso/$(LIB_NAME)
  30. $(LIB_NAME)_DIR:=$(top_builddir)ldso/$(LIB_NAME)
  31. $(LIB_NAME)_SRC:=$(srcdir)/libdl.c
  32. $(LIB_NAME)_A_ADD:=$(resolv)
  33. libso-$(HAVE_SHARED)+=$(top_builddir)lib/$(LIB_NAME).so
  34. liba-$(HAVE_SHARED)+=$(top_builddir)lib/$(LIB_NAME).a
  35. libclean-y+=$(LIB_NAME)_clean
  36. include $(top_srcdir)Makefile.libs
  37. # !!! these lines have to come after including Makefile.libs !!!
  38. EXTRA_LINK_LIBS+=$(top_builddir)lib/$(UCLIBC_LDSO)