1TARGET_LIBGCC2_CFLAGS = -fPIC -Dpa64=1 -DELF=1 -mlong-calls
2LIB2FUNCS_EXTRA = quadlib.c
3LIBGCCSTUB_OBJS = rfi-stub.o dfi-stub.o jvrc-stub.o cxaf-stub.o
4
5stublib.c: $(srcdir)/config/pa/stublib.c
6	rm -f stublib.c
7	cp $(srcdir)/config/pa/stublib.c .
8
9rfi-stub.o: stublib.c $(GCC_PASSES)
10	$(GCC_FOR_TARGET) -c -O2 -DL_register_frame_info stublib.c \
11	  -o rfi-stub.o
12
13dfi-stub.o: stublib.c $(GCC_PASSES)
14	$(GCC_FOR_TARGET) -c -O2 -DL_deregister_frame_info stublib.c \
15	  -o dfi-stub.o
16
17cxaf-stub.o: stublib.c $(GCC_PASSES)
18	$(GCC_FOR_TARGET) -c -O2 -DL_cxa_finalize stublib.c \
19	  -o cxaf-stub.o
20
21jvrc-stub.o: stublib.c $(GCC_PASSES)
22	$(GCC_FOR_TARGET) -c -O2 -DL_Jv_RegisterClasses stublib.c \
23	  -o jvrc-stub.o
24
25libgcc_stub.a: $(LIBGCCSTUB_OBJS)
26	-rm -rf libgcc_stub.a
27	$(AR) rc libgcc_stub.a $(LIBGCCSTUB_OBJS)
28	$(RANLIB) libgcc_stub.a
29