1 ## Target part of the Makefile
3 LIB1ASMSRC = bfin/lib1funcs.asm
4 LIB1ASMFUNCS = _divsi3 _udivsi3 _umodsi3 _modsi3 _umulsi3_highpart
5 LIB1ASMFUNCS += _smulsi3_highpart
10 dp-bit.c: $(srcdir)/config/fp-bit.c
11 cat $(srcdir)/config/fp-bit.c > dp-bit.c
13 fp-bit.c: $(srcdir)/config/fp-bit.c
14 echo '#define FLOAT' > fp-bit.c
15 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
17 CRTSTUFF_T_CFLAGS = -fpic
18 TARGET_LIBGCC2_CFLAGS = -fpic
20 MULTILIB_OPTIONS=mcpu=bf532-none/mcpu=bf532-0.3
21 MULTILIB_DIRNAMES=bf532-none bf532-0.3
22 MULTILIB_MATCHES=mcpu?bf532-none=mcpu?bf561
23 MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf531-none mcpu?bf532-none=mcpu?bf533-none mcpu?bf532-none=mcpu?bf534-none mcpu?bf532-none=mcpu?bf536-none mcpu?bf532-none=mcpu?bf537-none mcpu?bf532-none=mcpu?bf561-none mcpu?bf532-none=mcpu?bf561-0.5
24 MULTILIB_MATCHES+=mcpu?bf532-0.3=mcpu?bf531-0.4 mcpu?bf532-0.3=mcpu?bf531-0.3 mcpu?bf532-0.3=mcpu?bf532-0.4 mcpu?bf532-0.3=mcpu?bf533-0.4 mcpu?bf532-0.3=mcpu?bf533-0.3 mcpu?bf532-0.3=mcpu?bf534-0.2 mcpu?bf532-0.3=mcpu?bf534-0.1 mcpu?bf532-0.3=mcpu?bf536-0.2 mcpu?bf532-0.3=mcpu?bf536-0.1 mcpu?bf532-0.3=mcpu?bf537-0.2 mcpu?bf532-0.3=mcpu?bf537-0.1 mcpu?bf532-0.3=mcpu?bf561-0.3 mcpu?bf532-0.3=mcpu?bf561-0.2 mcpu?bf532-0.3=mcpu?bf531-any mcpu?bf532-0.3=mcpu?bf532-any mcpu?bf532-0.3=mcpu?bf533-any mcpu?bf532-0.3=mcpu?bf534-any mcpu?bf532-0.3=mcpu?bf536-any mcpu?bf532-0.3=mcpu?bf537-any mcpu?bf532-0.3=mcpu?bf561-any
26 # Assemble startup files.
27 $(T)crti.o: $(srcdir)/config/bfin/crti.s $(GCC_PASSES)
28 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
29 -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/bfin/crti.s
31 $(T)crtn.o: $(srcdir)/config/bfin/crtn.s $(GCC_PASSES)
32 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
33 -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/bfin/crtn.s
35 SHLIB_MAPFILES=$(srcdir)/config/bfin/libgcc-bfin.ver
37 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crtbeginS.o crtendS.o crti.o crtn.o
39 # This rule uses MULTILIB_MATCHES to generate a definition of
40 # SYSROOT_SUFFIX_SPEC.
41 linux-sysroot-suffix.h: $(srcdir)/config/bfin/print-sysroot-suffix.sh
42 $(SHELL) $(srcdir)/config/bfin/print-sysroot-suffix.sh \
43 "$(SYSTEM_HEADER_DIR)/../.." "$(MULTILIB_MATCHES)" \
44 "$(MULTILIB_OPTIONS)" > $@