]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/arm/t-pe-thumb
c75930c8c6b3cfa617c4793e01881c8168c12512
[thirdparty/gcc.git] / gcc / config / arm / t-pe-thumb
1 # Makefile fragment
2 # Copyright (c) 1998 Free Software Foundation
3
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
7
8 # These are really part of libgcc1, but this will cause them to be
9 # built correctly, so...
10
11 LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c
12
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
19
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
26
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
30
31 # Avoid building a duplicate set of libraries for the default endian-ness.
32 MULTILIB_OPTIONS = mthumb-interwork
33 MULTILIB_DIRNAMES = interwork
34
35 LIBGCC = stmp-multilib
36 INSTALL_LIBGCC = install-multilib