2 # Copyright (c) 1998 Free Software Foundation
4 CROSS_LIBGCC1 = libgcc1-asm.a
5 LIB1ASMSRC = arm/lib1thumb.asm
6 LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _call_via_rX _interwork_call_via_rX
8 # These are really part of libgcc1, but this will cause them to be
9 # built correctly, so...
11 LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c
13 fp-bit.c: $(srcdir)/config/fp-bit.c
14 echo '#define FLOAT' > fp-bit.c
15 echo '#ifndef __ARMEB__' >> fp-bit.c
16 echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
17 echo '#endif' >> fp-bit.c
18 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
20 dp-bit.c: $(srcdir)/config/fp-bit.c
21 echo '#ifndef __ARMEB__' > dp-bit.c
22 echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c
23 echo '#define FLOAT_WORD_ORDER_MISMATCH' >> dp-bit.c
24 echo '#endif' >> dp-bit.c
25 cat $(srcdir)/config/fp-bit.c >> dp-bit.c
27 # Rule to build Psion specific GCC functions.
28 pe.o: $(srcdir)/config/arm/pe.c
29 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/arm/pe.c
31 # Avoid building a duplicate set of libraries for the default endian-ness.
32 MULTILIB_OPTIONS = mthumb-interwork
33 MULTILIB_DIRNAMES = interwork
35 LIBGCC = stmp-multilib
36 INSTALL_LIBGCC = install-multilib