summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads_db/Makefile.in
blob: 0a5c5a578937ee90ccadef54a0f900cfb0848904 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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

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