1 # Copyright (C) 2000, 2001, 2002, 2004, 2006,
2 # 2007 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
24 stublib.c: $(srcdir)/config/pa/stublib.c
26 cp $(srcdir)/config/pa/stublib.c .
28 rfi-stub.o: stublib.c $(GCC_PASSES)
29 $(GCC_FOR_TARGET) -c -O2 -DL_register_frame_info stublib.c \
32 dfi-stub.o: stublib.c $(GCC_PASSES)
33 $(GCC_FOR_TARGET) -c -O2 -DL_deregister_frame_info stublib.c \
36 cxaf-stub.o: stublib.c $(GCC_PASSES)
37 $(GCC_FOR_TARGET) -c -O2 -DL_cxa_finalize stublib.c \
40 jvrc-stub.o: stublib.c $(GCC_PASSES)
41 $(GCC_FOR_TARGET) -c -O2 -DL_Jv_RegisterClasses stublib.c \
44 $(T)libgcc_stub.a: $(LIBGCCSTUB_OBJS)
45 -rm -rf $(T)libgcc_stub.a
46 $(AR) rc $(T)libgcc_stub.a $(LIBGCCSTUB_OBJS)
47 $(RANLIB) $(T)libgcc_stub.a