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"
11 LIB2FUNCS_EXTRA = _udivsi3.c _divsi3.c _umodsi3.c _modsi3.c
12 CRIS_LIB1CSRC = $(srcdir)/config/cris/arit.c
14 FPBIT = tmplibgcc_fp_bit.c
17 dp-bit.c: $(srcdir)/config/fp-bit.c
18 echo '#define FLOAT_BIT_ORDER_MISMATCH' > dp-bit.c
19 cat $(srcdir)/config/fp-bit.c >> dp-bit.c
21 # Use another name to avoid confusing SUN make, if support for
22 # it is reinstated elsewhere. Prefixed with "tmplibgcc" means
23 # "make clean" will wipe it. We define a few L_ thingies
24 # because we can't select them individually through FPBIT_FUNCS;
26 tmplibgcc_fp_bit.c: $(srcdir)/config/fp-bit.c
27 echo '#define FLOAT_BIT_ORDER_MISMATCH' > $@
28 echo '#define FLOAT' >> $@
29 cat $(srcdir)/config/fp-bit.c >> $@
31 # The fixed-point arithmetic code is in one file, arit.c,
32 # similar to libgcc2.c (or the old libgcc1.c). We need to
33 # "split it up" with one file per define.
34 $(LIB2FUNCS_EXTRA): $(CRIS_LIB1CSRC)
35 name=`echo $@ | sed -e 's,.*/,,' | sed -e 's,.c$$,,'`; \
36 echo "#define L$$name" > tmp-$@ \
37 && echo '#include "$<"' >> tmp-$@ \
40 $(out_object_file): gt-cris.h
41 gt-cris.h : s-gtype ; @true