1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- # Makefile.in for uClibc
- #
- # Copyright (C) 2000 by Lineo, inc.
- # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
- #
- # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- #
- CFLAGS-libdl := -DNOT_IN_libc -DIS_IN_libdl $(SSP_ALL_CFLAGS)
- CFLAGS-libdl +=-I$(top_builddir)ldso/include -I$(top_builddir)ldso/ldso
- CFLAGS-libdl += -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\"
- ifeq ($(SUPPORT_LD_DEBUG),y)
- CFLAGS-libdl += -D__SUPPORT_LD_DEBUG__
- endif
- LDFLAGS-libdl.so := $(LDFLAGS) -fini dl_cleanup
- LIBS-libdl.so := $(LIBS) $(top_builddir)lib/$(UCLIBC_LDSO)
- libdl_FULL_NAME := libdl-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
- libdl_DIR := $(top_srcdir)ldso/libdl
- libdl_OUT := $(top_builddir)ldso/libdl
- libdl_SRC := $(libdl_DIR)/libdl.c
- libdl_OBJ := $(patsubst $(libdl_DIR)/%.c,$(libdl_OUT)/%.o,$(libdl_SRC))
- resolve := $(top_builddir)ldso/ldso/$(TARGET_ARCH)/resolve.o
- libdl-a-y := $(libdl_OBJ) $(resolve)
- libdl-so-y := $(libdl_OUT)/libdl.oS
- lib-a-$(HAVE_SHARED) += $(top_builddir)lib/libdl.a
- lib-so-y += $(top_builddir)lib/libdl.so
- objclean-y += libdl_clean
- $(top_builddir)lib/libdl.so: $(libdl_OUT)/libdl_so.a ld-uClibc-y libc-y
- $(call link.so,$(libdl_FULL_NAME),$(MAJOR_VERSION))
- $(libdl_OUT)/libdl_so.a: $(libdl-so-y)
- $(Q)$(RM) $@
- $(do_strip)
- $(do_ar)
- ifeq ($(DOPIC),y)
- $(top_builddir)lib/libdl.a: $(libdl-a-y:.o=.os)
- else
- $(top_builddir)lib/libdl.a: $(libdl-a-y)
- endif
- $(Q)$(INSTALL) -d $(dir $@)
- $(Q)$(RM) $@
- $(do_strip)
- $(do_ar)
- libdl_clean:
- $(RM) $(libdl_OUT)/*.{o,os,a,oS}
|