Makefile.in 1.7 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. # psm: I do not know if the order of includes is relevant
  9. # to be sure I added them first, Jocke please cleanup if needed
  10. CFLAGS:=-I$(top_builddir)ldso/include -I$(top_builddir)ldso/ldso $(CFLAGS) $(SSP_ALL_CFLAGS)
  11. CFLAGS+=-DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\"
  12. ifeq ($(SUPPORT_LD_DEBUG),y)
  13. CFLAGS+=-D__SUPPORT_LD_DEBUG__
  14. endif
  15. # BEWARE!!! At least mips* will die if -O0 is used!!!
  16. ifeq ($(TARGET_ARCH),mips)
  17. CFLAGS:=$(CFLAGS:-O0=-O1)
  18. endif
  19. # we need special .oS file created, do not enable this
  20. DOMULTI=n
  21. LIB_NAME:=libdl
  22. EXTRA_LINK_OPTS:=-fini dl_cleanup
  23. # keep in sync w/ Makerules
  24. EXTRA_LINK_LIBS:=$(top_builddir)libc/misc/internals/interp.os $(top_builddir)lib/libc.so $(LIBGCC) $(top_builddir)lib/$(UCLIBC_LDSO)
  25. libdl_DIR:=$(top_srcdir)ldso/libdl
  26. libdl_OUT:=$(top_builddir)ldso/libdl
  27. libdl_SRC:=$(libdl_DIR)/libdl.c
  28. libdl_OBJ:=$(patsubst $(libdl_DIR)/%.c,$(libdl_OUT)/%.o,$(libdl_SRC))
  29. # use other suffixes, so that it does not pick up the multi rule from Makerules
  30. $(libdl_OUT)/libdl.oS: $(libdl_DIR)/libdl.c
  31. $(compile.c) -DSHARED
  32. resolve:=$(top_builddir)ldso/ldso/$(TARGET_ARCH)/resolve.o
  33. libdl-a-$(HAVE_SHARED):=$(libdl_OBJ) $(resolve)
  34. libdl-a-pic-$(HAVE_SHARED):=$(libdl_OBJ:.o=.os) $(resolve:.o=.os)
  35. libdl-so-$(HAVE_SHARED):=$(libdl_OBJ:.o=.oS)
  36. # do not disable this
  37. libdl-multi-$(HAVE_SHARED):=$(libdl_SRC)
  38. objclean-y+=libdl_clean libdl_extra_clean
  39. libdl_extra_clean:
  40. $(RM) $(libdl_OUT)/*.oS
  41. lib-a-$(HAVE_SHARED)+=$(top_builddir)lib/libdl.a
  42. lib-a-pic-$(HAVE_SHARED)+=$(top_builddir)lib/libdl.a
  43. lib-so-$(HAVE_SHARED)+=$(top_builddir)lib/libdl.so