summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads_db/Makefile.in
blob: 8a95e402a4047f73ee73207e3c26bf62c7a669bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Makefile for uClibc's pthread library
#
# Licensed under LGPL v2.1, see the file COPYING.LIB in this tarball for details.
#

#CFLAGS+=$(SSP_ALL_CFLAGS)

PT_MAJOR_VERSION:=$(MAJOR_VERSION)
# Get the thread include dependencies and shared object name
CFLAGS+=$(PTINC) -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

LIB_NAME:=libthread_db
srcdir=$(top_srcdir)libpthread/linuxthreads_db
$(LIB_NAME)_DIR:=$(top_builddir)libpthread/linuxthreads_db
MAJOR_VERSION:=1

libso-$(PTHREADS_DEBUG_SUPPORT)+=$(top_builddir)lib/$(LIB_NAME).so
liba-$(PTHREADS_DEBUG_SUPPORT)+=$(top_builddir)lib/$(LIB_NAME).a
libclean-y+=$(LIB_NAME)_clean

include $(top_srcdir)Makefile.libs