OSDN Git Service

PR boehm-gc/34544
[pf3gnuchains/gcc-fork.git] / gcc / config / pa / t-pa64
1 # Copyright (C) 2000, 2001, 2002, 2004, 2006,
2 # 2007, 2010 Free Software Foundation, Inc.
3 #
4 # This file is part of GCC.
5 #
6 # GCC is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
9 # any later version.
10 #
11 # GCC is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with GCC; see the file COPYING3.  If not see
18 # <http://www.gnu.org/licenses/>.
19
20 TARGET_LIBGCC2_CFLAGS = -fPIC -Dpa64=1 -DELF=1 -mlong-calls
21 LIB2FUNCS_EXTRA = quadlib.c
22 LIBGCCSTUB_OBJS = rfi-stub.o dfi-stub.o jvrc-stub.o cxaf-stub.o \
23         pthread_default_stacksize_np-stub.o \
24         pthread_mutex_lock-stub.o \
25         pthread_mutex_unlock-stub.o
26
27 stublib.c: $(srcdir)/config/pa/stublib.c
28         rm -f stublib.c
29         cp $(srcdir)/config/pa/stublib.c .
30
31 rfi-stub.o: stublib.c $(GCC_PASSES)
32         $(GCC_FOR_TARGET) -c -O2 -DL_register_frame_info stublib.c \
33           -o rfi-stub.o
34
35 dfi-stub.o: stublib.c $(GCC_PASSES)
36         $(GCC_FOR_TARGET) -c -O2 -DL_deregister_frame_info stublib.c \
37           -o dfi-stub.o
38
39 cxaf-stub.o: stublib.c $(GCC_PASSES)
40         $(GCC_FOR_TARGET) -c -O2 -DL_cxa_finalize stublib.c \
41           -o cxaf-stub.o
42
43 jvrc-stub.o: stublib.c $(GCC_PASSES)
44         $(GCC_FOR_TARGET) -c -O2 -DL_Jv_RegisterClasses stublib.c \
45           -o jvrc-stub.o
46
47 pthread_default_stacksize_np-stub.o: stublib.c $(GCC_PASSES)
48         $(GCC_FOR_TARGET) -c -O2 -DL_pthread_default_stacksize_np stublib.c \
49           -o pthread_default_stacksize_np-stub.o
50
51 pthread_mutex_lock-stub.o: stublib.c $(GCC_PASSES)
52         $(GCC_FOR_TARGET) -c -O2 -DL_pthread_mutex_lock stublib.c \
53           -o pthread_mutex_lock-stub.o
54
55 pthread_mutex_unlock-stub.o: stublib.c $(GCC_PASSES)
56         $(GCC_FOR_TARGET) -c -O2 -DL_pthread_mutex_unlock stublib.c \
57           -o pthread_mutex_unlock-stub.o
58
59 $(T)libgcc_stub.a: $(LIBGCCSTUB_OBJS)
60         -rm -rf $(T)libgcc_stub.a
61         $(AR) rc $(T)libgcc_stub.a $(LIBGCCSTUB_OBJS)
62         $(RANLIB) $(T)libgcc_stub.a