OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [libpthread/] [linuxthreads/] [Makefile] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
# Makefile for uClibc's pthread library
2
#
3
# Copyright (C) 2002 Erik Andersen 
4
# Copyright (C) 2003 Paul Mundt 
5
#
6
# This program is free software; you can redistribute it and/or modify it under
7
# the terms of the GNU Library General Public License as published by the Free
8
# Software Foundation; either version 2 of the License, or (at your option) any
9
# later version.
10
#
11
# This program is distributed in the hope that it will be useful, but WITHOUT
12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more
14
# details.
15
#
16
# You should have received a copy of the GNU Library General Public License
17
# along with this program; if not, write to the Free Software Foundation, Inc.,
18
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
# Makefile for uClibc
20
 
21
TOPDIR=../../
22
include $(TOPDIR)Rules.mak
23
 
24
DIRS = sysdeps
25
 
26
#Adjust the soname version to avoid namespace collisions with glibc's libpthread
27
LIBPTHREAD:=../libpthread.a
28
ifeq ($(strip $(TARGET_ARCH)),sparc)
29
SYSDEPS_DIR:=$(TARGET_ARCH)/sparc32
30
else
31
SYSDEPS_DIR:=$(TARGET_ARCH)
32
endif
33
#This stuff will not compile without at least -O1
34
CFLAGS :=$(CFLAGS:-O0=-O1)
35
 
36
 
37
# set up system dependencies include dirs (NOTE: order matters!)
38
PTDIR = $(TOPDIR)libpthread/linuxthreads/
39
SYSDEPINC = -I$(PTDIR)sysdeps/unix/sysv/linux \
40
            -I$(PTDIR)sysdeps/pthread \
41
            -I$(PTDIR)sysdeps/unix/sysv \
42
            -I$(PTDIR)sysdeps/unix/unix \
43
            -I$(PTDIR)sysdeps/$(TARGET_ARCH) \
44
            -I$(PTDIR)sysdeps \
45
            -I$(TOPDIR)libc/sysdeps/linux/$(TARGET_ARCH)
46
CFLAGS += $(SYSDEPINC)
47
 
48
CSRC=attr.c cancel.c condvar.c errno.c events.c join.c lockfile.c manager.c \
49
        mutex.c oldsemaphore.c pt-machine.c ptfork.c pthread.c \
50
        ptlongjmp.c rwlock.c semaphore.c signals.c specific.c spinlock.c \
51
        wrapsyscall.c
52
 
53
ifeq ($(UCLIBC_HAS_XLOCALE),y)
54
        CSRC += locale.c
55
endif
56
 
57
COBJS=$(patsubst %.c,%.o, $(CSRC))
58
OBJS=$(COBJS)
59
 
60
all: $(OBJS) $(LIBPTHREAD)
61
 
62
$(LIBPTHREAD): ar-target subdirs
63
 
64
ar-target: $(OBJS)
65
        $(AR) $(ARFLAGS) $(LIBPTHREAD) $(OBJS)
66
 
67
$(COBJS): %.o : %.c
68
        $(CC) $(CFLAGS) -c $< -o $@
69
ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y)
70
        $(STRIPTOOL) -X --strip-debug -R .note -R .comment $*.o
71
else
72
        $(STRIPTOOL) -x -R .note -R .comment $*.o
73
endif
74
 
75
clean: subdirs_clean
76
        $(RM) *.[oa] *~ core
77
 
78
subdirs: $(patsubst %, _dir_%, $(DIRS))
79
subdirs_clean: $(patsubst %, _dirclean_%, $(DIRS))
80
 
81
$(patsubst %, _dir_%, $(DIRS)) : dummy
82
        $(MAKE) -C $(patsubst _dir_%, %, $@)
83
 
84
$(patsubst %, _dirclean_%, $(DIRS)) : dummy
85
        $(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
86
 
87
.PHONY: dummy subdirs
88
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.