1 # Copyright (C) 2000, 2001, 2002, 2004, 2006,
2 # 2007, 2010 Free Software Foundation, Inc.
4 # This file is part of GCC.
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)
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.
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/>.
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
27 stublib.c: $(srcdir)/config/pa/stublib.c
29 cp $(srcdir)/config/pa/stublib.c .
31 rfi-stub.o: stublib.c $(GCC_PASSES)
32 $(GCC_FOR_TARGET) -c -O2 -DL_register_frame_info stublib.c \
35 dfi-stub.o: stublib.c $(GCC_PASSES)
36 $(GCC_FOR_TARGET) -c -O2 -DL_deregister_frame_info stublib.c \
39 cxaf-stub.o: stublib.c $(GCC_PASSES)
40 $(GCC_FOR_TARGET) -c -O2 -DL_cxa_finalize stublib.c \
43 jvrc-stub.o: stublib.c $(GCC_PASSES)
44 $(GCC_FOR_TARGET) -c -O2 -DL_Jv_RegisterClasses stublib.c \
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
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
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
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