Makefile.in 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. # can't combine .c w/ .S
  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. resolve:=$(top_builddir)ldso/ldso/$(TARGET_ARCH)/resolve.o
  30. libdl-a-$(HAVE_SHARED):=$(libdl_OBJ)
  31. libdl-static-$(HAVE_SHARED):=$(resolve)
  32. libdl-shared-$(HAVE_SHARED):=$(libdl_OUT)/libdl.oS
  33. objclean-y+=libdl_clean libdl_extra_clean
  34. libdl_extra_clean:
  35. $(RM) $(libdl_OUT)/*.oS
  36. lib-a-$(HAVE_SHARED)+=$(top_builddir)lib/libdl.a
  37. lib-so-$(HAVE_SHARED)+=$(top_builddir)lib/libdl.so