1LIBGCCSTUB_OBJS = rfi-stub.o dfi-stub.o ritm-stub.o ditm-stub.o \
2	jvrc-stub.o cxaf-stub.o \
3	pthread_default_stacksize_np-stub.o \
4	pthread_mutex_lock-stub.o \
5	pthread_mutex_unlock-stub.o \
6	pthread_once-stub.o
7
8rfi-stub.o: $(srcdir)/config/pa/stublib.c
9	$(gcc_compile) -c -O2 -DL_register_frame_info $<
10
11dfi-stub.o: $(srcdir)/config/pa/stublib.c
12	$(gcc_compile) -c -O2 -DL_deregister_frame_info $<
13
14ritm-stub.o: $(srcdir)/config/pa/stublib.c
15	$(gcc_compile) -c -O2 -DL_ITM_registerTMCloneTable $<
16
17ditm-stub.o: $(srcdir)/config/pa/stublib.c
18	$(gcc_compile) -c -O2 -DL_ITM_deregisterTMCloneTable $<
19
20cxaf-stub.o: $(srcdir)/config/pa/stublib.c
21	$(gcc_compile) -c -O2 -DL_cxa_finalize $<
22
23jvrc-stub.o: $(srcdir)/config/pa/stublib.c
24	$(gcc_compile) -c -O2 -DL_Jv_RegisterClasses $<
25
26pthread_default_stacksize_np-stub.o: $(srcdir)/config/pa/stublib.c
27	$(gcc_compile) -c -O2 -DL_pthread_default_stacksize_np $<
28
29pthread_mutex_lock-stub.o: $(srcdir)/config/pa/stublib.c
30	$(gcc_compile) -c -O2 -DL_pthread_mutex_lock $<
31
32pthread_mutex_unlock-stub.o: $(srcdir)/config/pa/stublib.c
33	$(gcc_compile) -c -O2 -DL_pthread_mutex_unlock $<
34
35pthread_once-stub.o: $(srcdir)/config/pa/stublib.c
36	$(gcc_compile) -c -O2 -DL_pthread_once $<
37
38libgcc_stub.a: $(LIBGCCSTUB_OBJS)
39	-rm -rf $@
40	$(AR) rc $@ $(LIBGCCSTUB_OBJS)
41	$(RANLIB) $@
42