12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- # Makefile for uClibc
- #
- # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
- #
- # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- #
- #CFLAGS+=$(SSP_ALL_CFLAGS)
- PT_MAJOR_VERSION:=$(MAJOR_VERSION)
- # Get the thread include dependencies and shared object name
- CFLAGS+=-DLIBPTHREAD_SO="\"libpthread.so.$(PT_MAJOR_VERSION)\""
- # Remove any -z defs since this lib will have undefined symbols
- LDFLAGS:=$(subst -z defs,,$(LDFLAGS)) --warn-unresolved-symbols
- ifeq ($(PTHREADS_DEBUG_SUPPORT),y)
- STRIP_FLAGS:=-X --strip-debug -R .note -R .comment
- endif
- DOMULTI=n
- LIB_NAME:=libthread_db
- libthread_db_FULL_NAME:=$(LIB_NAME)-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
- MAJOR_VERSION:=1
- libthread_db_DIR:=$(top_srcdir)libpthread/linuxthreads_db
- libthread_db_OUT:=$(top_builddir)libpthread/linuxthreads_db
- libthread_db_SRC:=$(wildcard $(libthread_db_DIR)/*.c)
- libthread_db_OBJ:=$(patsubst $(libthread_db_DIR)/%.c,$(libthread_db_OUT)/%.o,$(libthread_db_SRC))
- libthread_db-a-$(PTHREADS_DEBUG_SUPPORT)+=$(libthread_db_OBJ)
- libthread_db-so-$(PTHREADS_DEBUG_SUPPORT)+=$(libthread_db_OBJ:.o=.os)
- libthread_db-multi-$(PTHREADS_DEBUG_SUPPORT)+=$(libthread_db_SRC)
- objclean-y+=libthread_db_clean
- lib-a-$(PTHREADS_DEBUG_SUPPORT)+=$(top_builddir)lib/libthread_db.a
- lib-so-$(PTHREADS_DEBUG_SUPPORT)+=$(top_builddir)lib/libthread_db.so
|