4 # The Makefile fragment to include when compiling gcc et al for CRIS.
7 # The makefile macros etc. are included in the order found in the
8 # section "Target Fragment" in the gcc info-files (or the paper copy) of
9 # "Using and Porting GCC"
14 LIB2FUNCS_EXTRA = _udivsi3.c _divsi3.c _umodsi3.c _modsi3.c
15 CRIS_LIB1CSRC = $(srcdir)/config/cris/arit.c
17 FPBIT = tmplibgcc_fp_bit.c
20 dp-bit.c: $(srcdir)/config/fp-bit.c
21 echo '#define FLOAT_BIT_ORDER_MISMATCH' > dp-bit.c
22 cat $(srcdir)/config/fp-bit.c >> dp-bit.c
24 # Use another name to avoid confusing SUN make, if support for
25 # it is reinstated elsewhere. Prefixed with "tmplibgcc" means
26 # "make clean" will wipe it. We define a few L_ thingies
27 # because we can't select them individually through FPBIT_FUNCS;
29 tmplibgcc_fp_bit.c: $(srcdir)/config/fp-bit.c
30 echo '#define FLOAT_BIT_ORDER_MISMATCH' > $@
31 echo '#define FLOAT' >> $@
32 cat $(srcdir)/config/fp-bit.c >> $@
34 # The fixed-point arithmetic code is in one file, arit.c,
35 # similar to libgcc2.c (or the old libgcc1.c). We need to
36 # "split it up" with one file per define.
37 $(LIB2FUNCS_EXTRA): $(CRIS_LIB1CSRC)
38 name=`echo $@ | sed -e 's,.*/,,' | sed -e 's,.c$$,,'`; \
39 echo "#define L$$name" > tmp-$@ \
40 && echo '#include "$<"' >> tmp-$@ \