Makefile.in 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Makefile.in for uClibc
  2. #
  3. # Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. subdirs += ldso/libdl
  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. CFLAGS-$(SUPPORT_LD_DEBUG)-ldso/libdl := -D__SUPPORT_LD_DEBUG__
  12. CFLAGS-libdl.c := -DLDSO_ELFINTERP=\"$(TARGET_ARCH)/elfinterp.c\"
  13. LDFLAGS-$(UCLIBC_FORMAT_DSBT_ELF)-libdl.so := -Wl,--dsbt-index=3
  14. LDFLAGS-libdl.so := $(LDFLAGS)
  15. LIBS-libdl.so := $(LIBS) $(ldso)
  16. libdl_DIR := $(top_srcdir)ldso/libdl
  17. libdl_OUT := $(top_builddir)ldso/libdl
  18. libdl_SRC := $(libdl_DIR)/libdl.c
  19. libdl_OBJ := $(patsubst $(libdl_DIR)/%.c,$(libdl_OUT)/%.o,$(libdl_SRC))
  20. resolve := $(top_builddir)ldso/ldso/$(TARGET_ARCH)/resolve.o
  21. libdl-a-y := $(libdl_OBJ) $(resolve)
  22. ifeq ($(DOPIC),y)
  23. libdl-a-y := $(libdl-a-y:.o=.os)
  24. endif
  25. libdl-so-y := $(libdl_OUT)/libdl.oS
  26. objclean-y += CLEAN_ldso/libdl
  27. CLEAN_ldso/libdl:
  28. $(do_rm) $(addprefix $(libdl_OUT)/*., o os oS a)