0
|
1 #
|
|
2 # t-cris
|
|
3 #
|
|
4 # The Makefile fragment to include when compiling gcc et al for CRIS.
|
|
5 #
|
|
6 #
|
|
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"
|
|
10
|
|
11 LIB2FUNCS_EXTRA = _udivsi3.c _divsi3.c _umodsi3.c _modsi3.c
|
|
12 CRIS_LIB1CSRC = $(srcdir)/config/cris/arit.c
|
|
13
|
|
14 FPBIT = tmplibgcc_fp_bit.c
|
|
15 DPBIT = dp-bit.c
|
|
16
|
|
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
|
|
20
|
|
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;
|
|
25 # see above.
|
|
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 >> $@
|
|
30
|
|
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-$@ \
|
|
38 && mv -f tmp-$@ $@
|
|
39
|
|
40 $(out_object_file): gt-cris.h
|
|
41 gt-cris.h : s-gtype ; @true
|